Newsfeeds

38 Titles Now Available From the Chronicles of Arborell

Tabletop Gaming News - 20 July 2016 - 1:00pm
The Year of New Editions takes on many forms. Take, for example, the Chronicles of Arborell. They’ve recently released 38 updated and reformatted PDF titles. Not only that, but they’ve bundled together 25 of those into a special mega-pack, giving a special price of less than $1 per book. They’ve got all their updated titles, […]
Categories: Game Theory & Design

Coldwater Crown Fishing Game Up On Kickstarter

Tabletop Gaming News - 20 July 2016 - 12:00pm
They say a bad day of fishing beats a good day at the office. I’m not 100% sure that still holds true with tabletop fishing games, but I’m willing to bet it does. Coldwater Crown is a new fishing board game that’s up on Kickstarter and they’d love to reel you in. The game is […]
Categories: Game Theory & Design

Third & Grove: Drupal GovCon: Day 1 Recap

Planet Drupal - 20 July 2016 - 11:03am
Drupal GovCon: Day 1 Recap abby Wed, 07/20/2016 - 14:03
Categories: Drupal

Midweek Snippets

Tabletop Gaming News - 20 July 2016 - 11:00am
We’ve made it to the halfway mark. Just the rest of today, and then two full days and we’ll be back into the sweet embrace of the weekend. How will you be beating the heat? Inside gaming? Outside trying to catch them all? A little of both? Just be sure to hydrate. A group of […]
Categories: Game Theory & Design

Into my Galaxy: GSoC’ 16: Port Search Configuration module; coding week #8

Planet Drupal - 20 July 2016 - 10:50am

I have been porting Search Configuration module from Drupal 7 to 8 as part of this year’ s Google Summer of Code (GSoC). This summer program is an opportunity for university students to work on projects connected with open source organisation. I have been really lucky to be a part of this initiative. I could explore deep of more technologies, version control systems as part of my project in Drupal. This gives young students a platform where they are assigned mentors who are experts and experienced in various software.

Last week, I could learn some of the Drupal concepts as part of this module port. So, let me begin with the Drupal 7 property. The t function translates a string to the current language or to a given language. This makes the strings used in Drupal translatable. This generally takes up the format:

t($string, array $args = array(), array $options = array());

Here, $string is the string containing the English text to get translated.

$args: An associative array of replacements to make after translation.

$options: An optional associative array of additional options, with the following elements: lang code and context.

This t function has got some alteration in the Drupal 8. It has been replaced by the $this->t() by making use of \Drupal\Core\StringTranslation\StringTranslationTrait. 

 The translatable markup returns a string as a result of this process.

Another important aspect which I dealt was the roles. This is an important feature  for any module as it  deals with the security constraints of the module. Roles are often manipulated to grant certain permissions. What we have to do is that, initially, load the particular role to be manipulated and then provide the permission which is to be granted.

$role = Role::load('access page.'); $role->grantPermission('access comments'); $role->save();

These role functions help us to load the roles and manipulate the permissions assigned to it quite easily. Thus, turns out to be really helpful in dealing with permissions.

I have been also dealing with writing the simple test for my module. In one of my previous blog posts, I have introduced the PHP unit testing.  The simple test tests the web oriented functionality of the module. It needs a good understanding of the behaviour of the module to write an effective test. Tests are often really important to identify the flaws of a functionality and to correct it accordingly. I will be writing the simple tests for my module in the coming days. I will be sharing you the concept of this mode of testing in my next blog post.

Stay tuned for further developments on this blog post.

 

 

 


Categories: Drupal

Asmodee Previews the Ladies of Troyes Expansion For Troyes

Tabletop Gaming News - 20 July 2016 - 10:00am
Unfortunately, here in the US (at least), in your average History class, they don’t tend to go too deeply into the fascinating history that is the various powerful women that lived in the Middle Ages. There’s just not much in the way of time, really. But where schooling falls short, gaming can pick up the […]
Categories: Game Theory & Design

Drupal core announcements: Drupal 8.2.0 will be released October 5; beta begins week of August 3

Planet Drupal - 20 July 2016 - 9:23am

Drupal 8.2.0, the next planned minor release of Drupal 8, is scheduled for Wednesday, October 5, 2016. Minor releases include new features, usability improvements, and backwards-compatible API improvements. Here's what this means for core patches.

Drupal 8.2.0-beta1 will be released the week of August 3
  • In preparation for the minor release, Drupal 8.2.x will enter a beta phase the week of August 3.
  • Developers and site owners can begin testing the beta.
  • The 8.3.x branch of core will be created, and future feature and API additions will be targeted against that branch instead of 8.2.x.
  • All outstanding issues filed against 8.2.x will be automatically migrated to 8.3.x once it is opened.
  • During the beta phase, core issues will be committed according to the following policy:
    1. Most issues that are allowed for patch releases will be committed to all supported minor branches (8.1.x, 8.2.x, and 8.3.x) for the duration of the beta. Drupal 8.0.x is not supported anymore and changes are not made to that branch.
    2. Issues specific to added 8.2.x functionality, or disruptive changes that have a positive impact outweighing their disruption, will be committed to both 8.2.x and 8.3.x. (Such issues can be moved back to the 8.2.x branch after the automatic migration.)
    3. Most issues that are only allowed in minor releases will be committed to 8.3.x only.
Drupal 8.2.0-rc1 will be released September 7
  • The release candidate phase for the minor release begins on September 7, and starting on that date, the 8.2.x branch will be subject to release candidate restrictions, with only critical fixes and certain other limited changes allowed.
  • September 7 is also the final scheduled patch release window for 8.1.x, and it will not receive further development or support after that date aside from its final security release window on September 21.
  • All outstanding issues filed against 8.1.x will be automatically migrated to 8.2.x after the final 8.1.x patch release. Bug reports after September 7 should be targeted against the 8.2.x branch.
  • Minor versions may include changes to user interfaces, translatable strings, themes, internal APIs like render arrays and controllers, etc. (See the Drupal 8 backwards compatibility and internal API policy for details.) Developers and site owners should test the release candidate to prepare for these changes.
  • 8.3.x will remain open for new development during the 8.2.x release candidate phase.

See the Drupal core release cycle overview, Allowed changes during the Drupal 8 release cycle, and Drupal 8 backwards compatibility and internal API policy for more information.

As a reminder, we have until the start of the beta to add great new features to Drupal 8.2.x. Stabilizing experimental modules (such as Migrate and BigPipe), new features for workflows, and usability and bugfixes are all priorities for 8.2.0. Help with these feature requests and initiatives now for a great Drupal 8.2.0!

Categories: Drupal

VooFoo Studios - by Sean Walsh

Gamasutra.com Blogs - 20 July 2016 - 9:20am
Publishing your own product is brilliant and scary: lessons VooFoo Studios are learning every day.
Categories: Game Theory & Design

Embedded, not outsourced: Hitman devs share collaboration tips at GDC Europe

Social/Online Games - Gamasutra - 20 July 2016 - 9:13am

At GDC Europe next month, Io-Interactive's Markus Friedl and Mi'pu'mi Games' Gregor Eigner will showcase how a remote collaborator can do more than outsourcing work: it can act as an embedded team. ...

Categories: Game Theory & Design

Cryptozoic Releases Mad Science Foundation Card Game

Tabletop Gaming News - 20 July 2016 - 9:00am
The resources required for a mad scientist to create their various and sundry devices are generally limited. There’s only so many lasers to go around, after all. That’s why the Mad Scientist Foundation was created. It takes the limited resources and will dole them out to the scientists that need them. However, being mad scientists, […]
Categories: Game Theory & Design

Blog: Why industry-standard game metrics don't matter (enough)

Social/Online Games - Gamasutra - 20 July 2016 - 8:18am

The game industry has given us a complex metrics language that is almost entirely built out of alerts and benchmarks...and it's not very useful. ...

Categories: Game Theory & Design

Steamforged Previews Vileswarm for Guild Ball

Tabletop Gaming News - 20 July 2016 - 8:00am
At Gen Con, Steamforged will have a lot of new Guild Ball figures available early. It’ll be your first chance to pick up many of the new Season 2 figures. I know I’ve got my list of what I want to get. And while that doesn’t include the Vileswarm for the Mortician’s Guild (since, y’know, […]
Categories: Game Theory & Design

ThinkShout: Drupal 8 Routing Tricks for Better Admin URLs

Planet Drupal - 20 July 2016 - 7:30am

We recently launched a new case tracker for foster ed youth designed to improve their educational outcomes in partnership with The National Center for Youth Law (NCYL). The web application replaces their existing platform, Goal Book, which lacked the flexibility they needed to meet their requirements. A web application differs from a website in that a website primarily provides content where a web application primarily provides tools.

The project presented us with an opportunity to do extensive custom development with our favorite new platform, Drupal 8. D8’s many developer experience improvements, including standardized object-oriented development methods, allowed us to meet NCYL’s requirements efficiently and with a level of quality that would have been more difficult on Drupal 7. In addition, we were able to accelerate the release of RedHen CRM on Drupal 8, which lives at the heart of the application managing all of the contacts, organizations, and relationships.

To enhance the utility of the application, we made an early decision to customize every URL a user would interact with. As most of the functionality would revolve around nodes, we wanted to make sure we avoided URLs like /node/256/edit that don’t give the user any indication of which part of the application they’re using.

Implementation

If you wanted to customize URLs in Drupal 7, you could use the Pathauto module. You can still do that in Drupal 8, but D8’s routing system can be coaxed into doing something similar. It works on admin pages, too, which was perfect for NCYL’s needs.

Overriding Existing Node Paths

As an example, let’s say you have a node type specifically for storing information about schools: a School Node. The standard admin path for adding a School Node would be something like this:

/node/add/school

But, add a custom module with route configuration and you can have this:

/school/add

For simplicity, we’ll call our module school.module. The directory structure looks like this:

modules/ school/ school.module school.routing.yml

The route configuration sits inside school.routing.yml and looks like this:

school.add: path: '/school/add' defaults: _controller: '\Drupal\node\Controller\NodeController::add' _title: 'Add School' node_type: 'school' requirements: _node_add_access: 'node:school'

Line by line:

school.add:

This is the name of the route. Route names should be unique and usually start with the name of your module.

path: '/school/add'

The path the route points to. This is the part that comes after your site’s base URL.

_controller: '\Drupal\node\Controller\NodeController::add'

This tells the route to use the NodeController, provided by the Node module. No need for a custom controller here.

_title: 'Add School'

This sets the page title of the node add form.

_node_add_access: 'node:school'

This is an access handler that ensures the user has permission to add a node of type “school.”

Providing a custom path to edit School Nodes is even easier:

school.edit: path: '/school/{node}/edit' defaults: _entity_form: 'node.edit' requirements: node: \d+ _entity_access: 'node.update'

We no longer need to tell the route which controller to use or what type of node we’re using. Drupal 8’s Entity API figures it out using the node ID passed in the URL.

Line by line again:

path: '/school/{node}/edit'

The path now contains a placeholder, {node}, which represents the node ID in the URL.

_entity_form: 'node.edit'

The form we want to use to edit the node.

node: \d+

Some validation to ensure the URL contains the right data type for a node ID. By specifying the regular expression pattern \d+, we are telling Drupal to only use this route when {node} is one or more digits. The route will match a URL like /school/32/edit, but will not match /school/lincoln-high/edit.

_entity_access: 'node.update'

An access handler, ensuring the user has permission to update this node. No need to specify the node type, as we did when adding a node.

Finally, a route for viewing the node:

school.view: path: '/school/{node}' defaults: _controller: '\Drupal\node\Controller\NodeViewController::view' requirements: node: \d+ _entity_access: 'node.view'

Very similar to the node edit route, just with a different path and controller.

For a more thorough explanation of routes and route options not covered here, check out the official docs.

Custom Controllers

What if you want to provide a custom controller for adding a node and still take advantage of Drupal’s permissions system? Routes can do that, too.

Let’s introduce a Teacher Node and an accompanying module.

modules/ school/ teacher/ src/ Controller/ TeacherController.php teacher.module teacher.routing.yml

teacher.routing.yml looks like this:

teacher.add: path: '/teacher/add' defaults: _controller: '\Drupal\teacher\Controller\TeacherController::addTeacher' _title: 'Add Teacher' node_type: 'teacher' requirements: _node_add_access: 'node:teacher'

Very similar to the route we used to add School Nodes, but with a custom controller.

TeacherController.php looks like this:

<?php namespace Drupal\teacher\Controller; use Drupal\node\NodeTypeInterface; class TeacherController extends ControllerBase { public function addTeacher(NodeTypeInterface $node_type) { } }

The addTeacher function is where you would add your custom code for adding Teacher Nodes.

That’s how you can use core Drupal 8 functionality to make your Drupal admin pages a little more user friendly.

Categories: Drupal

Fantasy Flight Games Previews The Gilded Blade Expansion for Runebound

Tabletop Gaming News - 20 July 2016 - 7:00am
Big, adventure board games like Runebound offer an entire day’s worth of gaming in a single package. There’s quite a bit of replayability right in the box, what with all the different heroes, equipment, and skills you can choose from. But any game, if played often enough, can start to feel a bit stale. That’s […]
Categories: Game Theory & Design

A chair for getting fit and trim

Virtual Reality - Science Daily - 20 July 2016 - 6:46am
Getting fit and athletic -- while sitting? Researchers are developing an active chair. At first glance, the chair looks just like another other reclining chair with a footrest you would find in a living room in front of the TV. But upon closer inspection, the chair is actually connected to a virtual avatar and has all manner of technical refinements.
Categories: Virtual Reality

WP-like admin

New Drupal Modules - 20 July 2016 - 6:26am

Make the Drupal admin panel look a little bit like Wordpress.
This is useful for showing the aggregated sidebar menu for content managers and using the admin menu (or smth) for admins.

Categories: Drupal

Vampire Hunters Back Up On Kickstarter

Tabletop Gaming News - 20 July 2016 - 6:00am
You know, vampires are a tricky group. Just when you think you’ve got ’em, they can suddenly slip away, forcing you to chase after them all over again. Dark Gate Games is tenacious, though, and they’re once more hunting down vampires with their Vampire Hunters board game on Kickstarter. And this time around, it’s looking […]
Categories: Game Theory & Design

Commerce Open Payment Platform

New Drupal Modules - 20 July 2016 - 2:24am

This module integrates PAY.ON Open Payment Platform with Drupal Commerce, integrating their COPYandPAY widget in Drupal Commerce checkout flow.

Requirements

Commerce Open Payment Platform depends on Drupal Commerce of course, given a strict dependency on commerce_payment sub module.

This module is only available for the Drupal 8 version of Drupal Commerce!

Categories: Drupal

Localize.drupal.org: Looking for translation teams to test the User Guide translation process

Planet Drupal - 20 July 2016 - 2:02am

There has been some amazing work on a User Guide for Drupal 8 for about a year now, and the English version is in pretty good shape -- it's in the stage now of copy editing and image refinement, and it will find its home under drupal.org/documentation. To start the translation process off, we need to figure out a translation workflow that will make sense for translation teams. It doesn't make sense to use the same workflow as is used on https://localize.drupal.org for the short strings that are part of Drupal and contributed modules, themes, and distributions (see https://www.drupal.org/node/2762261 for details) -- the guide is about 100 pages of formatted text prose, not a bunch of short strings.

We are looking for one or two teams initially to start using a proposed process for translation and provide honest feedback to improve the flow. This will help get the guide translated to as many languages as possible eventually.

More information and contact details at https://groups.drupal.org/node/512691

News tags: D8MI newsDrupal planetSite news
Categories: Drupal

Time Manipulation in Unity - Level Creation - by Stas Korotaev

Gamasutra.com Blogs - 20 July 2016 - 1:57am
Time manipulation & custom timeline uses for level creation in Unity
Categories: Game Theory & Design

Pages

Subscribe to As If Productions aggregator