Blog
-
Download Different Versions of Drupal with Drush
31st December 2013
If you use Drush, it's likely that you've used the
drush pm-download
(ordrush dl
for short) command to start a new project. This command downloads projects from Drupal.org, but if you don't specify a project or type "drush dl drupal", the command will download the current stable version of Drupal core. Currently, this will be Drupal 7 with that being the current stable version of core at the time of writing this post.But what if you don't want Drupal 7?
Read more → -
Quickly Apply Patches Using Git and curl or wget
24th December 2013
Testing a patch file is usually a two-step process. First you download the patch file from the source, and then you run a separate command to apply it.
You can save time and typing by running the two commands on one line:
Read more → -
Useful Vagrant Commands
27th November 2013
Vagrant is a tool for managing virtual machines within VirtualBox from the command line. Here are some useful commands to know when using Vagrant.
Read more → -
Don't Bootstrap Drupal, Use Drush
19th November 2013
There are times when doing Drupal development when you need to run a custom PHP script, maybe moving data from one field to another, that doesn't warrant the time and effort to create a custom module. In this scenario, it would be quicker to write a .php script and bootstrap Drupal to gain access to functions like
node_load()
anddb_query()
.To bootstrap Drupal, you would need to add some additional lines of code to the stop of your script. Here is an alternative way.
Read more → -
Create a Zen Sub-theme Using Drush
6th September 2013
How to use Drush to quickly build a new sub-theme of Zen.
Read more → -
Going to DrupalCon
26th July 2013
Precedent are sending myself and two of our other Drupal Developers to Drupalcon Prague.
Read more → -
Creating Local and Staging sites with Drupal's Domain Module Enabled
17th July 2013
The Domain Access project is a suite of modules that provide tools for running a group of affiliated sites from one Drupal installation and a single shared database. The issue is that the domains are stored within the database so these are copied across when the data is migrated between environments, whereas the domains are obviously going to change.
Rather than changing the domain settings within the Domain module itself, the best solution I think is to use table prefixes and create a different domain table per environment.
Read more → -
Some useful links for using SimpleTest in Drupal
13th June 2013
Here are some useful links that I've found when researching about unit testing in Drupal using SimpleTest.
Read more → -
Display Git Branch or Tag Names in your Bash Prompt
27th April 2013
Whilst watching Drupalize.me's recent Introduction to Git series, I thought it was useful the way that the current Git branch or tag name was displayed in the bash prompt. Here's how to do it.
Read more → -
Leaving Nomensa, Joining Precedent
20th April 2013
Yesterday was my last day working at Nomensa. Next week, I'll be starting as a Senior Developer at Precedent.
Read more →