• Easy Embed NGG Slideshow in Wordpress Template

    I have a site where we want to add a NextGen Gallery slideshow into a page template only for certain pages. The slideshow will appear outside of the loop just above the main content blocks. In order to make it totally customizable from page to page I'm adding the ability to use a Custom Field value to select which gallery to display. This template design calls for a full-width slideshow that expands/contracts to the size of the browser and scales responsively.


  • JSON form field customization

    A few years back I set up a Drupal Webform as a contact form for county legislators. It was linked from their bio page and for the sake of reusability and not adding 20+ webforms I set it up so the recipient field would be dynamically set based on what bio it was coming from. I added a query string from the link drawing the legislator's Name because that was going to be the Title of the webform page as a reminder of who you're emailing. I wanted to keep it simple so I didn't bother passing the legislator's email address along also.

  • PHP Object array trials

    This week I had a bit of a struggle figuring out how to access a value in a PHP array with stdClass Objects all nested together. It was the output from a drupal view I wanted to use a node reference field value as a context filter on another view. Long story.

    I used a temporary page.tpl for that specific page to work out how to get to the php I needed for the contextual filter.

  • Now cooking with Drush!

    I got Drush working on my site the other day. It was pretty cool doing the Drupal 7.37 from a command line. No deleting folders out of FTP and dragging them back in again. One thing that I had to watch out for was the drush update command wanted to overwrite my .htaccess and robots.txt along with everything else. It also pushes up all the junk .txt files in the distro. I usually omit those.

    My process:

  • New Theme

    I've been trying to get around to doing a re-design of my site and a new theme for a few months now. Recently a number of articles have come out regarding how Google will punish you if your site is not mobile-friendly. So rather than wait on design I put a stop-gap in place by taking the Bootstrap Drupal theme and making a child of it and put some really quick design shoehorning to make it look like my original theme. The Bootstrap theme is really nice to work with as a base theme.

  • Drupal Admin Enhancements

    I typically use the theme Seven when I work in Drupal's admin zone. It does the job fine and I'm familiar with it. In the course of developing some sites I'm starting to think of some things to add to the interface to make my life easier and I thought I'd share them here.

    So I just added a folder to /sites/all/themes/seven and put my overridden files in there.

    Show the current Drupal Version.

    At the top of page.tpl.php inside the div id="branding" immediately after <?php print $breadcrumb; ?>

  • Drupal Node Save Not Working

    I built a website in Drupal that uses a node type with an abundance of fields. Its purpose is for listing different types of local food suppliers that fell into other areas such as tours, activities and so forth. The nodes had so many fields because the owner's of the site wanted to attach a lot of different data pieces to each listing so they can track when they signed up, paid for print listing, how they paid, etc. This is in addition to all the data fields the site visitor would be interested in while browsing these members.

  • Joomla Theme: Daycaring

    I'm still in the process of developing a template/theme along the vein of Drupal's Zen theme. I took a break from what I have so far and also used a bit of the process to cook up my first "shared" theme. The idea behind this design was that it could be used for a child-themed website.

    I named it DayCaring.