My Terminus Drupal 7 cheat sheet

The Terminus documentation is amazing. However, I tend to only use a couple commands over and over so I created this post so I can continually reference it and have some “copy/paste” ready commands to use on my projects. Get a URL to the latest snapshot of my production database Adding a new module and […]

Using utility classes (like Tachyons) on a Drupal 7 project

We all want to move quickly to create awesome interfaces right? Well, if you’re on Drupal 7, you know that it isn’t exactly the best system to quickly make great front end interfaces with. I’ve recently found that using Panels/Panelizer and the Tachyons’ spacing classes, I can crank out interfaces very quickly. This is beautiful […]

Using different template (tpl.php) files for a specific content type in Drupal 7

Use case In one of our sites, we post email communications that were sent out as all-campus announcements on our website. The problem is, our basic web template does not look like an email template. So I thought, “I wonder if I could just load a separate set of tpl.php files based on the content […]

Playing around with the Drupal 8 JSON API as a data service

I’m familiar with the concepts of REST but have never done anything in practice before. I decided I wanted to end that and start messing with the JSON API in Drupal 8. It was surprisingly easy to get going with because of the incredible resources out there. In this multi-part series, I’m going to explore […]

Embedding Drupal 7 Views with the Paragraphs module

The Paragraphs module has been super helpful to developers and site builders who want to provide content editors with a solution to create amazing looking sites without having to know HTML. I’m currently using Panels/Panelizer and Fieldable Panels Panes in the Drupal build at work to allow content editors to create the pages they want. […]

Making Drupal more editor friendly: admin/content modifications

Here’s a few things I’ve learned along the way to make Drupal a little more editor friendly. When appropriate, I will show how these improvements fit in with Nielsen’s ten usability heuristics. Make admin/content work for your editors Recently I was explaining to a client how to edit pieces of content on their site. The […]

Sharing content between Drupal multi-sites with RESTful and Feeds modules

At Oswego, when we decided to go with Drupal multi-site, one of the biggest drawbacks was the ability “out of the box” to share content between sites. But when you think of it, how much of Drupal works just as you’d like right out of the box? We looked at a few options but what […]

Creating a hero page template in Drupal

Prerequisites Using Panopoly + Panels + Panelizer Our current sub-pages look like this:   Drupal is really good at having a consistent header throughout the site. But what if you want to have a landing page that looks like this: At first this seemed impossible to me, but after reading about theme_hook_suggestions and preprocess functions, […]

Think systems, not pages

People are used to thinking about the web in terms pages. Most modern CMSes can make pages, but if you’re using them properly what you’re actually creating is a system of interconnected content. That’s a whole lot more awesome than pages. That’s the difference between creating structured content vs. having unstructured pages. Structured content allows you to: Filter or sort only […]

Drupal 7 – Creating a template suggestion for a node’s view mode

After watching this video, the relationship between nodes, views, and view modes really started clicking for me. I decided to try and provide template suggestions for all my node types and their view modes. This simple code in template.php did the trick. Obviously you’ll want to replace THEME with your theme’s machine name. What this […]