How to remove a Drupal install profile Jan 07, 2014 Install profiles are a great way to throw together a functional Drupal site really quickly. In Drupal 6, an Install Profile was just a blueprint for setting up a site really quickly. What you did after the site was installed was your own business! But in Drupal 7 profiles are much more integrated with core. The assumption is that when you use an install profile, you want to rely on the profile’s maintainer for all your updates. ...
How to create a custom Panels Pane Jan 03, 2014 Lots of sites are now built with the “Panels everywhere” method, using Panels and Panelizer to configure modular layouts in the Drupal GUI. These modules come with lots of great default Panes, and create even more defaults based on your existing Blocks and Views. But there’s always a case for a custom Pane. As usual, I’ll assume that you have an empty custom module called mymodule, with only a .info and a . ...
44,497 people are wrong: how to NEVER need Views PHP. Dec 26, 2013 You’re building a View, but you can’t get that field to display the way you want it to. Or filter, or sort. Or maybe you have some data in a custom table that you want to include in the View. So you look for a contributed module, and Views PHP looks like the answer to your problem! Until you read the module page, where it says: “…it is highly advisable to use regular handlers and plugins when available (or even to create one yourself). ...
SSH lifehacks to make your SSH life easy Dec 20, 2013 If you use SSH every day, or even every other day, this post is for you. We’re going to walk through some of the more convenient options available to you in your global SSH configuration to make your life easier and faster. First of all, you should know that SSH has a great configuration file, typically located in your home directory at .ssh/config. Everything we’re talking about today belongs there. There’s tons of stuff you can do with it, and I’m only going to scratch the surface. ...
This is why real *nix people hate OSX Dec 03, 2013 You know what grinds my gears? Unnecessary changes to behaviors of totally standard Linux/Unix commands in OSX. 99% of the time you can use the OSX command line like any sane CLI, but every once in awhile you run into these oddities that are seemingly only there to piss you off. I ran into one today: sed behaves differently on OSX. It counts its arguments differently, so you have to explicitly give it an empty argument for -i. ...
Custom Context conditions Dec 02, 2013 One of the big advantages to using the Context module is how totally extensible it is. Not only can you use and re-use the built in conditions, you can write your own. This brings all the power of the custom PHP evaluation method of block placement, but in a structure that makes your code re-usable, contributable, versioned, and standards-based. Writing a custom Context Condition is also a great template for how to integrate custom behaviors in many of the more complex Drupal modules such as Views and Search_API. ...
A Drupalist makes the case for Jekyll/Octopress Nov 26, 2013 Today I’m launching my new domain, OhTheHugeManatee.org. ORG was the only TLD left, but I’m asking after .com . :) I made the decision to launch it using Jekyll and Octopress, rather than Drupal. This feels a little funny to a career Drupalist like myself. Why not use Drupal 7, or use it as a testing ground for Drupal 8? Anyone who knows me will know that I complain bitterly about Ruby, and I’ve been vocal about the misuse of Jekyll for healthcare. ...
Every feature a branch, every branch a dev environment... without breaking the bank! The perfect git-flow dev environment for small shops Sep 02, 2013 mysql_user=‘root’ mysql_pw=‘your-mysql-password’ worktree_root="/var/www/public_html" http_root=“http://example.com” support_files="/home/git" while read oldrev newrev ref do branch=echo $ref |cut -d/ -f3 worktree="$worktree_root/$GL_REPO/$branch" repo_sanitized=echo ${GL_REPO//[-._]/} branch_sanitized=echo ${branch//[-._]/} db_name="$repo_sanitized"_"$branch_sanitized" # Exit nicely if this is the gitolite-admin repo. if [ $GL_REPO = ‘gitolite-admin’ ]; then exit 0 fi # Did we delete a branch? Delete the DB and checkout if [ $newrev = ‘0000000000000000000000000000000000000000’ ]; then if [ ! $branch = ‘master’ ]; then echo “Deleting working tree and DB for branch $branch. ...
SSL certificates demystified Jun 20, 2013
Review: GeoServer Beginner's Guide, by Stefano Iacovella and Brian Youngblood May 21, 2013