Newsfeeds

Express Add Content

New Drupal Modules - 23 June 2016 - 8:01pm

Express Add Content provides a hook in which you can group content types and block types (provided by the bean module) into categories which you define. This module provides no user interface to group content types and block types - this can only be accomplished by adding the hook sin your own custom module.

Categories: Drupal

Hook 42: Block improvements in Drupal 8

Planet Drupal - 23 June 2016 - 5:53pm
Thursday, June 23, 2016

Blocks in Drupal 7 are pretty useful but, in practice, larger sites often have requirements that core blocks can't support like placing the same block in different regions for different content types. I’m happy to see core blocks have been improved in Drupal 8 to be much more practical and powerful.

I was fortunate to attend the Drupal North conference this month in Montreal. At Drupal North, Ted Bowman gave a nice presentation on the power of Drupal 8 blocks. Ted has also has created a helpful Drupal 8 contrib module called Block Visibility Groups that extends blocks even further.

In his talk, he explained some of the new abilities of blocks including:

  • Blocks can be exported
  • Blocks can be placed in different regions
  • Blocks can have fields

Let’s take a look at these new features and the Block Visibility Groups module in more depth.

Blocks can be exported

First, blocks are now exportable. In Drupal 7, block settings can be moved through the development workflow with Features, but it isn't always reliable. In Drupal 8, block settings are saved in core configuration files and these files can be checked into your favorite code repository such as git.

Example of a block configuration file in D8

Blocks can be placed in different regions

Another improvement in Drupal 8 is that a particular block can be in more than one theme region. For example, if a site needs to have the same block on two different pages in two different regions that is not possible with core blocks in Drupal 7. Site builders have to use other methods, such as using Panels or Context to achieve this.

Now, in Drupal 8, placing the same block in different regions for different pages (or even on the same page!) is possible. Let’s see how that looks.

Example of the "Help" block being placed in two regions

Blocks can have fields

Another important difference for Drupal 8 core blocks is that they can have fields. In Drupal 7, we have to use the Bean (Blocks Entities Aren't Nodes) module to have fields on our blocks.

In D8, you can add fields to blocks in the same way you add them to content types or other fieldable entities. This feature changes block versatility immensely! We can have block types of various flavors and use those in intelligent ways. For example, we could have a block type that has just links in it or one with a text blurb and an image. Using block types is much better for structured content (which is the basis of a solid content strategy).

Example of a custom block type with a custom field

Blocks are even better with contrib

The block system has improved with the help of D8 contributed modules as well. An excellent example of this is Ted Bowman’s Block Visibility Groups module. With this small module enabled, administrators can manage where all blocks are visible. This admin tool is a valuable UX improvement and an alternative to Panels for less complex sites in Drupal 8.

Have fun with your Drupal 8 blocks! Kristin Bradham - K2 Topics: Services:
Categories: Drupal

Fantasy Flight Games Previews Caught in a Web Expansion for Runebound

Tabletop Gaming News - 23 June 2016 - 2:00pm
I’ve mentioned before that I’m not really afraid of bugs, but I don’t go out of my way to deal with them, either. I’ll squish a spider if I need to, but I’d prefer if they just stayed where they’re at and left me alone. Well, most people in Terrinoth would also prefer if bugs […]
Categories: Game Theory & Design

Corvus Belli Previews June Infinity Releases

Tabletop Gaming News - 23 June 2016 - 1:00pm
The month of June is most of the way done. But there’s still plenty of time for companies to have releases for the month. Take, for example, Corvus Belli. They’ve posted up previews of their releases for June so you can go, “ooh” and “aah” before they’re posted in the company’s webshop. Well, let’s take […]
Categories: Game Theory & Design

Get a job: Hi-Rez Studios is hiring an experienced Concept Artist

Social/Online Games - Gamasutra - 23 June 2016 - 12:50pm

The Tribes: Ascend and Smite developer seeks an experienced concept artist to take a senior position at Hi-Rez Studios' Alpharetta, Georgia HQ to work on "exciting new game projects." ...

Categories: Game Theory & Design

Video: How Blizzard designed StarCraft II to be an eSport

Social/Online Games - Gamasutra - 23 June 2016 - 12:35pm

At GDC 2011 Blizzard's Dustin Browder takes the stage to deconstruct the design of Starcraft II and examine how its competitive multiplayer was tuned to serve the needs of a global eSports community. ...

Categories: Game Theory & Design

Acquia Developer Center Blog: Signal Flow, Understanding your Stack

Planet Drupal - 23 June 2016 - 12:20pm

One of the best troubleshooters we ever worked with is a former sound engineer. He taught us, “Follow the signal, it’s all signal flow.” Running a website, your stack is the combination of hardware and software that you use to deliver your website and the “signal” is a web request. To understand the “signal flow” of your site, you will need to understand your stack. Understanding how all of the pieces fit together lets you know where to start looking for the problems.

Tags: acquia drupal planetsupportdebugging
Categories: Drupal

HSD Anthro Sci-Fi Miniatures Up On Kickstarter

Tabletop Gaming News - 23 June 2016 - 12:00pm
Weapons Grade Funk is running a Kickstarter campaign to create some sci-fi miniatures to go along with their Hc Svnt Dracones game. The game involves creating anthropomorphic characters that were originally experiments by humans in the far future, but they’ve since outlived those that created them. Since there’s not really all that many figures for […]
Categories: Game Theory & Design

Report: China is now the global leader in video game revenues

Social/Online Games - Gamasutra - 23 June 2016 - 11:37am

Heads up, game devs: China's booming games market has now overtaken the U.S. (at least, in market research firm Newzoo's estimation) to become the world's biggest source of video game revenue. ...

Categories: Game Theory & Design

Thursday Terrain Corner

Tabletop Gaming News - 23 June 2016 - 11:00am
We’re getting there, folks. The weekend is making its way here. I don’t know about you, but to me it slowed down a bit yesterday afternoon. Here’s to hoping it picks back up again. In the meantime, let’s do our best to get your gaming tables looking as good as possible, shall we? Today’s Terrain […]
Categories: Game Theory & Design

Freelock : Ask Freelock: My host is shutting down! What should I do?

Planet Drupal - 23 June 2016 - 10:57am

It's really a shame. Drupal Gardens has announced to its users that it's shutting down completely on August 1, and users need to move away from the service before it disappears.

It's a shame because Drupal Gardens was the only low-cost way to run a Drupal site with somebody else handling maintenance for you.

But it's not really a surprise.

DrupalDrupal PlanetSaaSHosting
Categories: Drupal

Don't Miss: Why I trust Valve's judgment on seasonal sales

Social/Online Games - Gamasutra - 23 June 2016 - 10:51am

In this timeless blog, Defender's Quest dev Lars Doucet analyzes what Valve's Steam Sales get right: "The games you see on your front page now depend mostly on you. And that's as it should be." ...

Categories: Game Theory & Design

Aten Design Group: Making region content available to node templates in Drupal 8

Planet Drupal - 23 June 2016 - 10:06am

Why would you need to render the content from Drupal’s block layout via a node template file? Normally, that is the territory of page templates. The use-case for me was a page where node-specific fields were mixed in with blocks to the extent that rendering region content in a page template file wasn't going to work.

I needed to be able to render my region content amidst field values in my node template files. Drupal doesn't let you do that out-of-the-box.

Superpower your Nodes

A region defined as ‘Primary Content’ (primary_content) in our theme can be printed in a page template like so:

{{ page.primary_content }}

Try that in a node template and you get a big fat nothing. Using THEME_preprocess_node we can change this, and superpower our node templates to be as capable as page templates.

Replace “THEME” with your theme name below:

/** * Implements hook_preprocess_node() for NODE document templates. */ function THEME_preprocess_node(&$variables) { // Allowed view modes $view_mode = $variables['view_mode']; // Retrieve view mode $allowed_view_modes = ['full']; // Array of allowed view modes (for performance so as to not execute on unneeded nodes)   // If view mode is in allowed view modes list, pass to THEME_add_regions_to_node() if(in_array($view_mode, $allowed_view_modes)) { // Allowed regions (for performance so as to not execute for unneeded region) $allowed_regions = ['primary_content']; THEME_add_regions_to_node($allowed_regions, $variables); } }   /** * THEME_add_regions_to_node */   function THEME_add_regions_to_node($allowed_regions, &$variables) { // Retrieve active theme $theme = \Drupal::theme()->getActiveTheme()->getName();   // Retrieve theme regions $available_regions = system_region_list($theme, 'REGIONS_ALL');   // Validate allowed regions with available regions $regions = array_intersect(array_keys($available_regions), $allowed_regions);   // For each region foreach ($regions as $key => $region) {   // Load region blocks $blocks = entity_load_multiple_by_properties('block', array('theme' => $theme, 'region' => $region));   // Sort ‘em uasort($blocks, 'Drupal\block\Entity\Block::sort');   // Capture viewable blocks and their settings to $build $build = array(); foreach ($blocks as $key => $block) { if ($block->access('view')) { $build[$key] = entity_view($block, 'block'); } }   // Add build to region $variables[$region] = $build; } }

After clearing caches, I can now print content specified in Drupal’s block layout using my node template files. For example, if I’ve specified primary_content in $allowed_regions, then I can access it via node--node_type.html.twig with:

{{ primary_content }}

Categories: Drupal

Asmodee Posts Preview of Cash ‘N’ Guns: Team Spirit

Tabletop Gaming News - 23 June 2016 - 10:00am
A new expansion for Cash ‘N’ Guns is coming out soon. It’s called Team Spirit and it brings a whole new dynamic to the game: Teams! The world of crime is rough, and having someone that can watch your back is an invaluable resource. Now you’ve got a second person to help grab loot and […]
Categories: Game Theory & Design

Game Night Packs Up On Kickstarter

Tabletop Gaming News - 23 June 2016 - 9:00am
As I’ve mentioned many times, having extra resources available to your DM is only ever a good thing, in my mind. Most groups don’t have 6-8 months between games like my group does. So the DM has to be more-ready for game. Sometimes that doesn’t happen. That’s where pre-generated material can really help. And that’s […]
Categories: Game Theory & Design

Drupal core announcements: Fabianx and stefan.r are now Drupal 7 co-maintainers

Planet Drupal - 23 June 2016 - 8:13am

Earlier this year, I announced that I was seeking additional Drupal 7 co-maintainers in order to help bolster the efforts of the indefatigable David Rothstein. Thank you very much to everyone who responded to the call; there were certainly some very eager and qualified applications!

I have selected Fabian Franz (Fabianx) and Stefan Ruijsenaars (stefan.r), which are also two of the names put forward by David himself. I recently asked them to apply to become Drupal 7 co-maintainers, and I am pleased to announce they both gave an enthusiastic yes!

Fabian will be a Drupal 7 Framework Manager, and Stefan will be a Drupal 7 Release Manager and Drupal 7 Product Manager. David will continue his role as a Framework Manager, Release Manager and Product Manager for Drupal 7.

Fabian is from Germany, and is a Senior Performance Engineer and Technical Lead at Tag1 Consulting. He is always up to a challenge, and has been a part of the Drupal community for over 6 years. He was already a subsystem maintainer for the Drupal core theme system, and he has done innovative work in terms of Scalability and High Performance for Drupal (BigPipe!). He is in general passionate about everything Open Source since GNU was born, which as it happens, is the same day as his birthday.

Stefan hails from the Netherlands, and is a freelancer currently working with Belgian government clients. He has been part of the Drupal community since his first Drupalcon in Szeged in 2008, and recently became a member of the Drupal Security Team.

Both Fabian and Stefan have ample experience contributing both to numerous contributed modules, and to Drupal core, being especially instrumental to squashing the last critical bugs prior to the Drupal 8 release.

Please join me in welcoming Fabian and Stefan to the Drupal 7 core committer team! (And if you happen to be at Drupal Developer Days Milan, you can high-five Stefan in person! :-))

Categories: Drupal

Privateer Press Previews New Releases for Warmachine and Hordes

Tabletop Gaming News - 23 June 2016 - 8:00am
Privateer Press posted up a bunch of new previews over on their website. We got a look at some of these a while ago, but now the official previews are up, including 360-views of the figures. Plus, I don’t think we actually got a look at the new Black 13th when they were announced. Quite […]
Categories: Game Theory & Design

Blog: Unity, HTML5, CORS, and you

Social/Online Games - Gamasutra - 23 June 2016 - 7:59am

When publishing your Unity content to the WebGL target, it is likely you will run into issues with CORS. Here's a bit of guidance to help you out. ...

Categories: Game Theory & Design

The Influences and Differences of Team Fortress 2 Classes and Overwatch Heroes - by Arthur Canzi Zeferino

Gamasutra.com Blogs - 23 June 2016 - 7:20am
An analysis of how Team Fortress 2 classes and Overwatch heroes relate to each other.
Categories: Game Theory & Design

E3 2016 VR: The Industry Goes All-In, But Are Audiences Ready? - by Jake Parmley

Gamasutra.com Blogs - 23 June 2016 - 7:18am
E3 2016 marked the industry’s near unanimous embrace of VR. As companies invest, Red Fox Insights analyzes how VR is shaping the future and what challenges it must overcome.
Categories: Game Theory & Design

Pages

Subscribe to As If Productions aggregator