Newsfeeds

OPTASY: Reservoir or Decoupling Drupal Made Easy for Anyone: Non-Drupal Developers and Editors

Planet Drupal - 9 May 2018 - 12:55am
Reservoir or Decoupling Drupal Made Easy for Anyone: Non-Drupal Developers and Editors admin Wed, 05/09/2018 - 07:55

Here's how the ideal decoupling Drupal scenario looks like:

Stripping Drupal to its essential role, that of a robust and flexible content repository, with no Drupal expertise needed. Then using it to back your front-end with; one that you'd be free to build by leveraging any modern (JavaScript) technology of your choice.

… a Drupal back-end content store that would still preserve all its content editing and managing functionalities, needless to add.

Luckily, this is no longer “daydreaming”. Not since Reservoir, the headless Drupal distribution, has been available. 

Here are some of its “promises” or well-known challenges, if you prefer, that this distribution's geared at solving:
 

Categories: Drupal

Business of Gaming Retail: Delegating Tasks

RPGNet - 9 May 2018 - 12:00am
A Key to FLGS Growth
Categories: Game Theory & Design

Valuebound: E-Commerce Solutions and Third-Party Integration Options within Drupal Ecosystem

Planet Drupal - 8 May 2018 - 9:45pm

Drupal has several options and solutions to develop different types of websites including e-commerce portals. Drupalers have redefined the way e-commerce sites used to operate by developing a range of plugins and modules for high-end security, tailored web content, third-party integration, and other utilities. These modules primarily aim at enhancing end users experience, providing a user-friendly interface, flexibility, and reliability.

There are several e-commerce options within Drupal along with options to integrate third-party APIs, which I’ll discuss in a later section. Let’s first discuss the options…

Categories: Drupal

PreviousNext: Making your Drupal 8 kernel tests fail when there is an exception during cron

Planet Drupal - 8 May 2018 - 7:39pm

Several times in the past I've been caught out by Drupal's cron handler silently catching exceptions during tests.

Your test fails, and there is no clue as to why.

Read on to find out how to shine some light on this, by making your kernel tests fail on any exception during cron.

by Lee Rowlands / 9 May 2018

If you're running cron during a kernel test and expecting something to happen, but it doesn't - it can be hard to debug why.

Ordinarily an uncaught exception during a test will cause PHPUnit to fail, and you can pinpoint the issue.

However, if you're running cron in the test this may not be the case.

This is because, by default Drupal's cron handler catches all exceptions and silently logs them. This is colloquially known as Pokemon exception handling.

The act of logging an exception is not enough to fail a test.

So your test skips the exception and carries on, failing in other ways unexpectedly.

This is exacerbated by the fact that PHP Unit throws an exception for warnings. So the slightest issue in your code will cause it to halt execution. In an ordinary scenario, this exception causes the test to fail. But the pokemon catch block in the Cron class prevents that, and your test continues in a weird state.

This is the code in question in the cron handler

<?php try { $queue_worker->processItem($item->data); $queue->deleteItem($item); } // ... catch (\Exception $e) { // In case of any other kind of exception, log it and leave the item // in the queue to be processed again later. watchdog_exception('cron', $e); }

So how do you make this fail your test? In the end, it's quite simple.

Firstly, you make your test a logger and use the handy trait to do the bulk of the work.

You only need to implement the log method, as the trait takes care of handling all other methods.

In this case, watchdog_exception logs exceptions as RfcLogLevel::ERROR. The log levels are integers, from most severe to least severe. So in this implementation we tell PHP Unit to fail the test with any messages logged where the severity is ERROR or worse.

use \Drupal\KernelTests\KernelTestBase; use Psr\Log\LoggerInterface; use Drupal\Core\Logger\RfcLoggerTrait; use Drupal\Core\Logger\RfcLogLevel; class MyTest extends KernelTestBase implements LoggerInterface { use RfcLoggerTrait; /**    * {@inheritdoc}    */   public function log($level, $message, array $context = []) {     if ($level <= RfcLogLevel::ERROR) {       $this->fail(strtr($message, $context));     }   } }

Then in your setUp method, you register your test as a logger.

$this->container->get('logger.factory')->addLogger($this);

And that's it - now any errors that are logged will cause the test to fail.

If you think we should do this by default, please comment on this core issue.

Tagged Drupal 8, Drupal Development, Drupal testing, PSR-3
Categories: Drupal

Jagex lays plans to shut down its decade-old game portal FunOrb

Social/Online Games - Gamasutra - 8 May 2018 - 4:37pm

British game dev Jagex announced plans today to shut down its longstanding online game portal FunOrb, citing the increasing difficulties of providing its library of browser games in a playable state. ...

Categories: Game Theory & Design

core::2050 Sci-Fi RPG Up On Kickstarter

Tabletop Gaming News - 8 May 2018 - 2:00pm
Hacking computer system. Laser rifles. Flying cars. Elves. Monks. Bards. You usually see the first trio mixed together, but not so often with the last three. code::2050 looks to change that. The core::2050 book for the game is a setting book and set of rules to bring 5th edition to a cyberpunk dystopian world. The […]
Categories: Game Theory & Design

Palantir: Retheming Palantir.net for Our Audience

Planet Drupal - 8 May 2018 - 1:47pm
Retheming Palantir.net for Our Audience brandt Tue, 05/08/2018 - 15:47 Alex Brandt May 8, 2018

The new www.palantir.net is a decoupled instance of Drupal 8 that allows us greater flexibility to feature content that is most relevant to our site visitors.

When we first migrated our website (https://www.palantir.net) from Drupal 7 to Drupal 8 in the summer of 2016, it was an exciting time for our marketing team. From an editorial perspective, Drupal 8 is a much easier to use interface than D7, and it instantly allowed us greater flexibility with our content.

However, even though we now had a more flexible site, we still felt like the digital experience for our audience missed a few marks. We quickly established a list of goals for phase two of the redesign, and these goals were related to both the overall digital experience and internal business goals.

The Overall Digital Experience

With the next iteration of our site, we wanted to focus on making the site more intuitive for visitors and also surface content in a way that was most beneficial to them. Would future clients prefer to filter case studies by service category or industry? What were visitors hoping or expecting to find on the homepage? What kind of information about Palantir were potential new hires trying to find?

These questions informed the following goals for the site:

  • To be simple and easy to use by having meaningful (and working) filters, allowing users to filter by industry, and curating collections around topics that most interest our audience.
  • To inspire applicants by demonstrating solid work, showcasing our cultural story, and making it easy to find career information.
  • To tell the story of Palantir with crisper messaging, improved visuals, and better storytelling throughout via weaving client testimonials with staff stories and case studies.
  • To be future forward by creating a visual theme with a timeless solution.
Business Goals

We also had a few items we wanted to address that related to our overall business goals. Our website is an important sales and marketing tool for us, and we wanted to make sure it was doing its job. We needed the new site to:

  • Showcase our work better by making it more prominent, showing more visuals and making our visuals more consistent.
  • Capture leads and bring in more business by making it easy for people to contact us no matter where they are on the site, and by simplifying newsletter sign-up.
  • Elevate the Palantir brand by creating a newly themed site that in itself is a demonstration of our design and development skill, showcasing our work in a superior way, and talking more intelligently — but concisely — about ourselves, our work, and our services.
The Process

Just like we recommend for our clients, we began our process with a Discovery phase. One of our web strategists, Michelle Jackson, completed a competitive analysis to inform next steps. A few of the things she evaluated were:

  • What are our peers doing right?
  • What are the current industry standards?
  • What are agencies that we aspire to emulate doing?

The results from this analysis helped us prioritize our wishlist of future site features. We then handed off this wishlist to the designer on the project, Carl Martens. Carl worked through the design phase which included creating wireframes, moving things into a prototype, and then building out the new theme in partnership with Ken Rickard, who completed all of the development. The design was done using our standard process: we built in a modular way using site components, and then compiled them into a living style guide. Particular attention was paid to typographic details, use of color, and how to most effectively use images.

Another design problem we needed to solve was one common to all companies that list their team members: what do you do when a new employee joins the team, and you don’t have a photo for them that matches the others? Even our photographer (who only does our headshots once per year) said, “all my clients have this problem. Let me know when you figure it out!” We thought of several options on how to fix this, and ended up with the chalkboard solution. It allows us to inject some personality into our page while not distracting from the other headshots by having it be a headshot in a different style or lighting.

We decided it was best to do a decoupled instance for this site. More details about the technical implementation of the decoupled Drupal instance can be found in Ken's upcoming blog post.

New Features and Integrations

The latest version of www.palantir.net has an abundance of new features that allow us to weave storytelling throughout the site.

Searchable Homepage

Our previous homepage had much of the important content buried beneath the fold. To fix this, we wanted to turn our homepage into a hub where site visitors could search for content that was relevant to them, no matter where that content lived on the site. The new homepage can filter all of our content by both topic and industry, and helps surface the most relevant pieces of content for our audience. The new homepage also features a collapsible side navigation, so you can see more relevant content at one time.

Topic-Based Collection Pages

Tying into the goals of our searchable homepage, we curated new collection pages based on topics we thought our audience would search for most (which include Planning, Business Strategy, Security, Design & UX, Development, Governance, Content Strategy and Accessibility). That way when someone asks, “what do you do for accessibility?” we can send them directly to a curated page that shows blog posts and case studies specific to that topic. These collection pages can be found at the bottom of our services page.

 

Culture and Careers Content

With the next iteration of the site, we wanted to make sure we were catering to the audience who might be interested in working for us in the future. We achieved this by showcasing all of the great things about working at Palantir, and on these pages we included more images to help show rather than tell that information. Our new Culture and Careers page houses much of the information a potential new Palantiri might look for, including what we think are the key elements of our culture. It also links to our Benefits page which outlines the many perks of working for Palantir, and to our current openings.

Case Studies That Tell a Story

Some of the most important pieces of content on our site are our case studies. It is vital as an agency to be able to showcase our work and capabilities dynamically. The old version of our case studies were extremely text-heavy and did not feature nearly enough visual representation of the process or final product of each project.

The new format of our new case studies are broken into different chunks of content, with the ability to show each bit of information in a way that fits what is being communicated. We can then weave each of these pieces together into one comprehensive, dynamic storyline. By breaking the case studies into smaller, more visual pieces, they are much easier to scan too. We still have to update some of our older case studies, so this is still a work in progress.

 

Updated Services Page

One would think a services page would be the first page to be refined on a business’ site, but somehow our previous services page was a complete afterthought. Buried in the footer, it was a glorified bulleted list. This page was a high priority for us to fix, because we wanted to make sure potential clients could find information about what services we provide. The new services page is easy to find in the main site navigation, and in addition to the afore-mentioned collections, it also features information about our partnerships.

Hubspot Integration

Hubspot is a new sales and marketing tool for us that we have been implementing since the beginning of the year. It helps us track new project opportunities on the sales side, and it also houses all of our marketing tools. One of the new Hubspot tools that we have implemented on our new site is called a lead flow. Lead flows are abbreviated contact forms that we can choose to display on specific pages, granting our site visitors a quick way to subscribe to our email newsletter.

Always Evolving

In true agile fashion, we had an MVP with the goal of launching by DrupalCon Nashville, but we plan to keep iterating and improving the site in the coming months. So, what do we have planned next?

  • New photos for new staff
  • Video that reiterates the Palantir story
  • A timeline of the history of Palantir
  • Listing of awards and press mentions (Great Place to Work, Clutch.co, etc.)
  • Rewriting and adding more case studies
Accessibility

Of course, we also want to make sure our site is accessible. In addition to baking accessibility into our process along the way, we use a tool provided by our partner, Siteimprove, to scan our site and determine if it meets accessibility standards. Siteimprove is a great tool because it flags both quality assurance items (like misspellings and broken links) as well as accessibility requirements (like those provided by WCAG and AA). We use the reports provided by Siteimprove to continuously clean up our content and ensure an enjoyable digital experience for all users.

Tell Us What You Think

So far we’ve had one client tell us this: “The redesign clearly marks a maturation and growth of Palantir. If progressing towards a more serious, trustworthy, and refined company was the goal, I think you nailed it.” We sure hope so!

We’d love to hear what you think about the new site. Share your thoughts on Twitter (@palantir) or by reaching out through our contact form.

Design Development Drupal Site Building Strategy
Categories: Drupal

OSTraining: How to Build User Profiles With Fields in Drupal 8

Planet Drupal - 8 May 2018 - 1:26pm

By default, a Drupal 8 user account collects only very basic information about the user. 

And, most of that information is not visible to visitors or other users on the site.

Fortunately, Drupal makes it easy to modify and expand this profile so that people can add useful information about themselves such as their real name (versus a username), address, employer, URLs, biography, and more.

Categories: Drupal

OSTraining: How to Manage User and Role Permissions in Drupal 8

Planet Drupal - 8 May 2018 - 1:23pm

This tutorial is all about managing uses on your Drupal 8 site.

I'll show you how to control who can do what on your site:

  • Who can create, delete, and edit content?
  • Who can upload modules and themes?
  • Who can modify menus and blocks?

You also see how to make user accounts more interesting. You do this by allowing users to add more information about them. 

Categories: Drupal

Azimuth Coming to Kickstarter Tomorrow

Tabletop Gaming News - 8 May 2018 - 1:00pm
Come sail away. Come sail away. Come sail away with me, lads! Sailing away is what you’ll be doing in Azimuth. Though it’s not all sand, sun, and sea. You wake up adrift with very little in the way of supplies and even less idea of exactly where you are. This isn’t a 3-hour tour, […]
Categories: Game Theory & Design

Man sentenced to prison over 2010 World of Warcraft DDoS attack

Social/Online Games - Gamasutra - 8 May 2018 - 12:11pm

A federal court has sentenced Calin Mateias to a year in federal prison over a distributed denial-of-service attack he launched against World of Warcraft servers in 2010. ...

Categories: Game Theory & Design

Blue Orange Holding Cooperative Games Giveaway

Tabletop Gaming News - 8 May 2018 - 12:00pm
Who doesn’t like getting things for free? Nobody. Who doesn’t love having some games with friends? Well, on this page, hopefully nobody. Blue Orange is putting those two together with their Cooperative Games Giveaway they’re holding now. Go put your name in the hat and you could walk away with some great cooperative titles. From […]
Categories: Game Theory & Design

Free-to-play game Loadout ending service in wake of GDPR regulation

Social/Online Games - Gamasutra - 8 May 2018 - 11:19am

The dev says that the coming GDPR guidelines in the EU delivered one of the final blows the game, noting that it simply isn't able to update Loadout in a way that would make it GDPR compliant. ...

Categories: Game Theory & Design

Podcast Radio

Tabletop Gaming News - 8 May 2018 - 11:00am
Monday is gone and Tuesday is here. Hopefully, the start of your week wasn’t so bad. We’ve got all sorts of stuff going on around here in preparation for this weekend. But, before we get there, we must make sure you’ve got some podcasts to listen to. On the dial today we have: Man Battlestations […]
Categories: Game Theory & Design

View Json Backend

New Drupal Modules - 8 May 2018 - 10:49am
Categories: Drupal

ADCI Solutions: How to send the JSON data from a Drupal 8 site?

Planet Drupal - 8 May 2018 - 10:11am

Imagine a situation: your mobile application needs to get some information from your Drupal 8 site. How can you do it? There are several ways to create and send data with JSON, and we will consider three of them.

Learn about the data sending in Drupal 8

Categories: Drupal

Ponyfinder: A Deadly Tide Now Available

Tabletop Gaming News - 8 May 2018 - 10:00am
The sea is a magical place filled with all manner of creatures… creatures that are ready to crawl up out of the depths at any time and attack the unwary! Who will be willing to take on these terrors of the deep and return peace and sanity to the shores? That’s for you to find […]
Categories: Game Theory & Design

JabberJot Storytelling Game Up On Kickstarter

Tabletop Gaming News - 8 May 2018 - 9:00am
Writing can be really hard. Trying to figure out what to write about, what sort of story you want to tell, and what type of tone it should all have isn’t easy. But that’s where JabberJot comes in. It’s a story-creation party card game that’s up on Kickstarter now. Can you use all the elements […]
Categories: Game Theory & Design

Hook 42: Drupal 8 Interviews: Spotlight on Eduardo Garcia

Planet Drupal - 8 May 2018 - 8:07am

For this month’s Drupal 8 Interview we were excited to catch up with Eduardo Garcia. He is the CTO of both WeKnow and anexus. WeKnow is a Drupal and Symfony consulting and training firm. Anexus is a company that supports the development of Drupal Console.

Most people in the open source and Drupal community know him as Enzo. His companies are mostly distributed and he likes to think of himself as a distributed person because of his love for travel. He is a native Colombian who lived in Costa Rica for more than 14 years. He currently resides in Australia with his family.

Categories: Drupal

Web Wash: How to Add Menus using Toolbar Menu in Drupal 8

Planet Drupal - 8 May 2018 - 8:00am

With the Toolbar Menu module, you can add as many menus as you need to the toolbar of your Drupal installation. By default, a Drupal 8 installation has 3 menu links in its toolbar.

1. Manage - Administration of the whole Drupal site, 2. Shortcuts - Links added by the admin to administrative pages used frequently, 3. User Name - Link to the profile page

This module works also with the Admin Toolbar module, which improves the default toolbar providing dropdown menus. In this tutorial, we’re going to cover the usage of the Toolbar Menu module.

Categories: Drupal

Pages

Subscribe to As If Productions aggregator