Jonathan Jordan's Blog

What I Learned Today: Views Plugin Debugging

As I've said before in my custom views filter handlers tutorial, views is amazing. Today I was writing a custom style plugin. I got the plugin to show up in the list of available formats, but whenever I saved the form, it wouldn't stick.

By Jonathan Jordan, Software Architect
May 24, 2016

What I Learned Today: Check Your Default Google Analytics Settings

Google Analytics Module Settings

Drupal's Google Analytics Module is great. There are a few settings though that I recently found out you'll want to pay closer attention to. First is the "Pages" section of the configuration form, which allows you to only include/exclude Google Analytics tracking code on certain pages. The default settings are to exclude the code on the following pages.

By Jonathan Jordan, Software Architect
April 21, 2016

Drupal 7 Tutorial: Creating a Custom Entityqueue Handler

Entityqueue uses Ctools plugins for what we call an EntityQueueHandler. In this post we are going to see how to create a custom EntityQueueHandler. We will be looking at the Entityqueue Scheduler module as an example.

What is an EntityQueueHandler?

When you create a new Entityqueue, there is an option to select which handler to use.

By Jonathan Jordan, Software Architect
June 27, 2015

Drupal 7: When to use Entityqueue vs Draggable Views

This post was inspired by a question our VP Tony asked me while I was working on Entityqueue, he asked, "how is it different from Draggable Views?" At first the answer isn't as obvious, they both allow you to sort items in a list. Draggable Views supports any entity that you can create a View to display. There are a couple key, slight differences that make each one better than the other depending on the use-case and admin experience. In fact, I've used both modules on the same project, depending on the situation.

By Jonathan Jordan, Software Architect
April 2, 2014

Drupal 7 Tutorial: Using Entityqueue with Views

Last time I gave a quick introduction on how to create and manage queues using Entityqueue. This time I'll show you how to use them with Views to display content sorted by their position in the queue.

First create your view like you normally would. The screenshots in this example, we are using a view of Content (aka Nodes), but this should be the same process for any entity type.

By Jonathan Jordan, Software Architect
March 20, 2014

Drupal 7 Tutorial: Using Entityqueue

Now that Entityqueue has been released, I wanted to give a quick tutorial on how to use it.

You can manage the queues from the /admin/structure/entityqueue page.

By Jonathan Jordan, Software Architect
December 18, 2013

The Drupal Entityqueue Module

If you're familiar with the Nodequeue module and you wanted to create a queue of other entity types, like users or terms, then you would have to install another module, like User Queue or Term Queue. Not anymore! Introducing Entityqueue!

By Jonathan Jordan, Software Architect
December 16, 2013

What I Learned Today: Drupal #attached Awesomeness

What is #attached

By Jonathan Jordan, Software Architect
December 16, 2013

What I Learned Today: Drupal Behat Scenario Cleanup

I've been doing a lot more Behat testing recently. As my tests have gotten more complex, I've discovered that it was only a matter of "luck" that my earlier tests were properly cleaning up after themselves. What I mean, is that during my tests I fill out and submit a node form, checking that I successfully created it and that the appropriate users can see it. After each scenario you want to clean up any data that was created so you can run the test again and get the same result.

By Jonathan Jordan, Software Architect
November 21, 2013

What I Learned Today: Drupal Behat Breakpoints

Today I learned that the Drupal Behat Extension provides an extremely useful step definition for debugging. Breakpoints!

By Jonathan Jordan, Software Architect
October 31, 2013

Ready for transformation?