October 2014

Greetings!

This week brings another 4 videos in the Drupal 8 Developer Prep collection where we discuss how to use variables in Twig and debug Twig templates.

I will also be heading to BADCamp in a week to do 2 days of Mentored Training with a small band of awesome Drupalists from around the country. If you're going to be there for the training or the rest of the conference, I'll be looking forward to crossing paths.

Enjoy and have an awesome week!

- Chris Shattuck

New! How to set up a Twig template file and a brief description of Twig variables

Screenshot for How to set up a Twig template file and a brief description of Twig variables

In this video we create our first Twig template file, get it set up in the right place, and then talk a bit about how variables work in a template.

New! How to register a Twig template file with hook_theme()

Screenshot for How to register a Twig template file with hook_theme()

After creating our template file, the next logical step is to register it with hook_theme() so Drupal knows where it is.

New! How to wire up a Twig template to a render array

Screenshot for How to wire up a Twig template to a render array

Now that we have our Twig template in the theme registry, it’s time to actually use it. In this video we show one approach to using the template file, which is pushing it through a render array.

New! (FREE!) How to easily debug Twig templates by reloading updated template files automatically

Screenshot for How to easily debug Twig templates by reloading updated template files automatically

One thing that you might be missing if you’re upgrading from Drupal 7 is the flexibility of being able to use PHP in your template to figure out what variables you have to work with. Luckily, Twig comes with a nice feature that allows you do exactly that without the security risk of using PHP directly.

Greetings!

I'm happy to announce that BuildAModule HD has been released! HD is free for all members and is enabled by default, so you don't need to do anything to activiate it. Now your videos will look cleaner and smoother, and the site loads faster than ever.

If you're not a member yet, now is an awesome time to join!

Below are some of the details of what we've been working on. I hope you enjoy the free upgrade, and have an amazing week!

- Chris Shattuck

Highlights of BuildAModule HD, including performance boost, smoother framerate and lots more!

Greetings!

Throughout the last couple of weeks, we've been gradually updating a Drupal 7 module to Drupal 8. This week we tie up some loose threads by updating a few of our leftover hooks like hook_permission, hook_cron and hook_help. Finally, we're releasing a FREE video explaining how the Twig templating language works and why it's so useful.

Enjoy and have an awesome week!

- Chris Shattuck

New! Updating our .module file's hook_permission() and hook_help()

Screenshot for Updating our .module file's hook_permission() and hook_help()

The conversion of our modules user interface is complete, but there’s a few things under the hood that we still need to review. In this video we start working through our .module file and discover a lot of code that we can simply yank out, and a couple bits that needs some upgrading.

New! Cleaning up our .module file and updating hook_cron()

Screenshot for Cleaning up our .module file and updating hook_cron()

In this video we complete the process of bringing our .module file up to speed with Drupal 8.

New! How to fix an "Undefined offset" error

Screenshot for How to fix an \

If you have your error reporting set to show notices, you might see a big red block of errors at the top of your otherwise beautiful block showcase page. In this video we explain where these errors are coming from and how to get around them.

New! (FREE!) Overview of how Twig works and why Twig is so useful

Screenshot for Overview of how Twig works and why Twig is so useful

Drupal 8 comes with several improvements to the theme layer, not the least of which is the switch to using the Twig template engine. In this video we explain briefly about what Twig is and the role it plays in Drupal.

BuildAModule HD. Better resolution, better audio, better device support, free for members

That right, folks. We've been working hard to cook up a pretty awesome upgrade that will be rolling out in the coming weeks and will be absolutely free for all members. Keep an eye out in the newsletter and Twitter for the release of HD.

Have an awesome week!

- Chris Shattuck

Add to playlist

Add to , or

Add to new playlist:

Add to playlist
This is a member-only feature
But, it's easy to become a member

Add to cart:


Loading...
Contact us

Below are the supported keyboard shortcuts for our video player.

space
Start / stop video
shift
Go to next video
shift
Go to previous video
Increase or decrease player speed by 20%
Skip ahead or go back by 15 seconds
1...9
Jump to a percentage (2 is 20%, for example)
f
Toggle full screen
Videos Pricing More Search
BuildAModule Logo Icon BuildAModule Logo Icon
Become a member!
$29
1 month
$156
6 months
10% off
$276
12 months
20% off
All memberships come with the following:
24 / 7 access to the entire 1800+ video library
An innovative video player with a rolling transcript
Extensive Drupal and cross-platform training
A thorough and thoughtful training style
Progress tracking
Take notes on specific video sections
Intuitive multi-user management
How many users?
user
Go solo with a single user, or give multiple team members access through one account and get discounts by bundling multiple users into a single membership.