This commit is contained in:
Oliver Davies 2015-04-19 21:19:02 +01:00
commit 71fe366450
112 changed files with 701 additions and 600 deletions

View file

View file

@ -1,6 +1,6 @@
opdavies.github.io oliverdavies.co.uk-source
================== =========================
The source code for [my personal website and blog](http://www.oliverdavies.co.uk), built with [Sculpin](http://sculpin.io). The source code for [my personal website and blog](http://www.oliverdavies.co.uk), built with [Sculpin](http://sculpin.io).
Please [create an issue](https://github.com/opdavies/opdavies.github.io/issues) to log any errors or issues with the site or make a suggestion. Pull requests are welcome for improvements to posts and tutorials. Please [create an issue](https://github.com/opdavies/opdavies.github.io/issues) to log any errors or issues with the site or make a suggestion. Pull requests are welcome for improvements to posts and tutorials.

View file

@ -6,9 +6,6 @@ sculpin:
- '**/config.rb' - '**/config.rb'
- '**/Gemfile*' - '**/Gemfile*'
sculpin_content_types: sculpin_content_types:
clients:
permalink: clients/:slug_title/
enabled: false
posts: posts:
permalink: blog/:slug_title/ permalink: blog/:slug_title/
taxonomies: taxonomies:

View file

@ -1,4 +1,14 @@
title: Oliver Davies title: Oliver Davies
subtitle: Drupal & Linux Specialist subtitle: Drupal & Linux Specialist
description: Personal website and blog of Oliver Davies, a Drupal Developer and Systems Administrator based in the UK. description: Oliver Davies, Drupal Developer
url: http://localhost:8000 url: http://localhost:8000
author: Oliver Davies
email: oliver@oliverdavies.co.uk
twitter: http://twitter.com/opdavies
twitter_name: opdavies
linkedin: http://uk.linkedin.com/in/opdavies
drupalorg: https://www.drupal.org/user/381388
drupalorg_nice: https://www.drupal.org/u/opdavies
github: http://github.com/opdavies
irc: opdavies

View file

@ -1,24 +0,0 @@
#!/bin/bash
set -x
ENV='prod'
REPO='git@github.com:opdavies/opdavies.github.io.git'
BRANCH='master'
BUILD_DIR='./gh-pages-deployment/'
rm -rf ./output_${ENV}
sculpin generate --env=${ENV}
LOG=$(git log --oneline -n 1)
rm -rf ${BUILD_DIR}
git clone ${REPO} ${BUILD_DIR}
pushd ${BUILD_DIR}
git checkout -B ${BRANCH}
rsync --quiet --archive --filter="P .git*" --delete ../output_${ENV}/ ./
git add -A .
git commit -m "${LOG}"
git push origin ${BRANCH} --force
popd

View file

@ -1,14 +0,0 @@
---
layout: default
title: Page Not Found
permalink: /404.html
---
{% block content_wrapper %}
<div class="col-md-12">
{% block content %}
<h1>Page Not Found</h1>
{% endblock %}
</div> {# .col.md-12 #}
{% endblock %}
{% block sidebar %}{% endblock %}

8
source/404.md Normal file
View file

@ -0,0 +1,8 @@
---
layout: default
title: Page Not Found
permalink: /404.html
---
# Page Not Found
Please [contact me](/contact) and let me know.

View file

@ -1 +0,0 @@
www.oliverdavies.co.uk

View file

@ -2,8 +2,6 @@
title: title:
description: description:
nav: blog nav: blog
use:
- posts
tags: tags:
- -
--- ---

View file

@ -1,14 +1,12 @@
--- ---
title: Style Drupal 6's Taxonomy Lists with PHP, CSS and jQuery title: Style Drupal 6's Taxonomy Lists with PHP, CSS and jQuery
nav: blog nav: blog
use:
- posts
slug: style-drupal-6s-taxonomy-lists-php-css-and-jquery slug: style-drupal-6s-taxonomy-lists-php-css-and-jquery
tags: tags:
- Taxonomy - drupal-6
- Drupal Planet - drupal-planet
- Drupal 6 - drupal-theming
- Drupal Theming - taxonomy
--- ---
Whilst developing this, and other Drupal websites for clients, I decided that I wanted to categorise content using the taxonomy system. However, I wasn't happy with the way that Drupal displayed the terms lists by default, and I started comparing this to other websites that I look at. Whilst developing this, and other Drupal websites for clients, I decided that I wanted to categorise content using the taxonomy system. However, I wasn't happy with the way that Drupal displayed the terms lists by default, and I started comparing this to other websites that I look at.

View file

@ -1,15 +1,14 @@
--- ---
title: Using ImageCache and ImageCrop for my Portfolio title: Using ImageCache and ImageCrop for my Portfolio
nav: blog nav: blog
use:
- posts
slug: using-imagecache-and-imagecrop-my-portfolio slug: using-imagecache-and-imagecrop-my-portfolio
tags: tags:
- Drupal 6 - drupal
- CCK - drupal-6
- ImageCache - cck
- ImageField - imagecache
- ImageCrop - imagecrop
- imagefield
--- ---
Whilst working on my own portfolio/testimonial website, I decided to have a portfolio page displaying the name of each site and a thumbnail image. For this Blog post, I'll be using a site called [Popcorn Strips](http://popcornstrips.com) which I built for a friend earlier this year as an example. Whilst working on my own portfolio/testimonial website, I decided to have a portfolio page displaying the name of each site and a thumbnail image. For this Blog post, I'll be using a site called [Popcorn Strips](http://popcornstrips.com) which I built for a friend earlier this year as an example.

View file

@ -1,14 +1,12 @@
--- ---
title: Conditional Email Addresses in a Webform title: Conditional Email Addresses in a Webform
nav: blog nav: blog
use:
- posts
slug: conditional-email-addresses-webform slug: conditional-email-addresses-webform
tags: tags:
- Drupal Planet - drupal-planet
- Drupal 6 - drupal-6
- Conditional Email - conditional-email
- Webform - webform
--- ---
I created a new Webform to serve as a simple Contact form, but left the main configuration until after I created the form components. I added 'Name', 'Email', 'Subject' and 'Message' fields, as well as a 'Category' select list. Below 'Options', I entered each of my desired options in the following format: I created a new Webform to serve as a simple Contact form, but left the main configuration until after I created the form components. I added 'Name', 'Email', 'Subject' and 'Message' fields, as well as a 'Category' select list. Below 'Options', I entered each of my desired options in the following format:

View file

@ -1,15 +1,13 @@
--- ---
title: Quickly Create Zen Subthemes Using Zenophile title: Quickly Create Zen Subthemes Using Zenophile
nav: blog nav: blog
use:
- posts
tags: tags:
- Drupal Planet - drupal-planet
- Drupal 6 - drupal-6
- Drupal Modules - drupal-modules
- Drupal Theming - drupal-theming
- Zen - zen
- Zenophile - zenophile
--- ---
If you use the [Zen](http://drupal.org/project/zen) theme, then you should also be using the [Zenophile](http://drupal.org/project/zenophile) module! If you use the [Zen](http://drupal.org/project/zen) theme, then you should also be using the [Zenophile](http://drupal.org/project/zenophile) module!

View file

@ -1,14 +1,13 @@
--- ---
title: Create a Slideshow of Multiple Images Using Fancy Slide title: Create a Slideshow of Multiple Images Using Fancy Slide
nav: blog nav: blog
use:
- posts
slug: create-slideshow-multiple-images-using-fancy-slide slug: create-slideshow-multiple-images-using-fancy-slide
tags: tags:
- Drupal Planet - drupal-planet
- Drupal 6 - drupal
- Fancy Slide - drupal-6
- Slideshow - fancy-slide
- slideshow
--- ---
Whilst updating my About page, I thought about creating a slideshow of several images instead of just the one static image. When I looking on Drupal.org, the only slideshow modules were to create slideshows of images that were attached to different nodes - not multiple images attached to one node. Then, I found the [Fancy Slide](http://drupal.org/project/fancy_slide) module. It's a jQuery Slideshow module with features that include integration with the [CCK](http://drupal.org/project/cck), [ImageCache](http://drupal.org/project/imagecache) and [Nodequeue](http://drupal.org/project/nodequeue) modules. Whilst updating my About page, I thought about creating a slideshow of several images instead of just the one static image. When I looking on Drupal.org, the only slideshow modules were to create slideshows of images that were attached to different nodes - not multiple images attached to one node. Then, I found the [Fancy Slide](http://drupal.org/project/fancy_slide) module. It's a jQuery Slideshow module with features that include integration with the [CCK](http://drupal.org/project/cck), [ImageCache](http://drupal.org/project/imagecache) and [Nodequeue](http://drupal.org/project/nodequeue) modules.

View file

@ -1,16 +1,15 @@
--- ---
title: Quickly Import Multiples Images Using the Imagefield_Import Module title: Quickly Import Multiples Images Using the Imagefield_Import Module
nav: blog nav: blog
use:
- posts
slug: quickly-import-multiples-images-using-imagefieldimport-module slug: quickly-import-multiples-images-using-imagefieldimport-module
tags: tags:
- Drupal Planet - drupal-planet
- ImageField Import - imagefield-import
- Drupal 6 - drupal
- Photo Gallery - drupal-6
- CCK - photo-gallery
- ImageField - cck
- imagefield
--- ---
**Thanks to Bob at [Mustardseed Media](http://mustardseedmedia.com) for [tweeting](http://twitter.com/mustardseedinc/status/14713096905) about this module. It's undoubtedly saved me hours of work today alone!** **Thanks to Bob at [Mustardseed Media](http://mustardseedmedia.com) for [tweeting](http://twitter.com/mustardseedinc/status/14713096905) about this module. It's undoubtedly saved me hours of work today alone!**

View file

@ -1,13 +1,11 @@
--- ---
title: Improve JPG Quality in Imagecache and ImageAPI title: Improve JPG Quality in Imagecache and ImageAPI
nav: blog nav: blog
use:
- posts
slug: improve-jpg-quality-imagecache-and-imageapi slug: improve-jpg-quality-imagecache-and-imageapi
tags: tags:
- Drupal Planet - drupal-planet
- Drupal 6 - drupal-6
- ImageCache - imagecache
--- ---
Whilst uploading images for my Projects and Testimonials sections, I noticed that the Imagecache-scaled images weren't as high a quality the originals on my Mac. I did some searching online and found out that, by default, Drupal resamples uploaded jpgs to 75% of their original quality. Whilst uploading images for my Projects and Testimonials sections, I noticed that the Imagecache-scaled images weren't as high a quality the originals on my Mac. I did some searching online and found out that, by default, Drupal resamples uploaded jpgs to 75% of their original quality.

View file

@ -1,14 +1,13 @@
--- ---
title: Create a Block of Social Media Icons using CCK, Views and Nodequeue title: Create a Block of Social Media Icons using CCK, Views and Nodequeue
nav: blog nav: blog
use:
- posts
slug: create-block-social-media-icons-using-cck-views-and-nodequeue slug: create-block-social-media-icons-using-cck-views-and-nodequeue
tags: tags:
- Drupal Planet - drupal-planet
- Drupal 6 - drupal-6
- Views - drupal
- Nodequeue - views
- nodequeue
- oliverdavies.co.uk - oliverdavies.co.uk
--- ---
I recently decided that I wanted to have a block displayed in a sidebar on my site containing icons and links to my social media profiles - [Twitter](http://twitter.com/opdavies), [Facebook](http://facebook.com/opdavies) etc. I tried the [Follow](http://drupal.org/project/follow) module, but it lacked the option to add extra networks such my [Drupal.org](http://drupal.org/user/381388) account, and my [RSS feed](http://oliverdavies.co.uk/rss.xml). I started to create my own version, and then found [this Blog post](http://www.hankpalan.com/blog/drupal-themes/add-your-social-connections-drupal-icons) by Hank Palan. I recently decided that I wanted to have a block displayed in a sidebar on my site containing icons and links to my social media profiles - [Twitter](http://twitter.com/opdavies), [Facebook](http://facebook.com/opdavies) etc. I tried the [Follow](http://drupal.org/project/follow) module, but it lacked the option to add extra networks such my [Drupal.org](http://drupal.org/user/381388) account, and my [RSS feed](http://oliverdavies.co.uk/rss.xml). I started to create my own version, and then found [this Blog post](http://www.hankpalan.com/blog/drupal-themes/add-your-social-connections-drupal-icons) by Hank Palan.

View file

@ -1,13 +1,11 @@
--- ---
title: 10 Useful Drupal 6 Modules title: 10 Useful Drupal 6 Modules
nav: blog nav: blog
use:
- posts
tags: tags:
- Drupal Planet - drupal-planet
- Drupal 6 - drupal-6
- Modules - drupal
- Drupal Modules - drupal-modules
--- ---
Aside from the obvious candidates such as Views, CCK etc, here are a list of 10 contributed modules that I currently use on each Drupal project. Aside from the obvious candidates such as Views, CCK etc, here are a list of 10 contributed modules that I currently use on each Drupal project.

View file

@ -1,20 +1,18 @@
--- ---
title: Create a Flickr Photo Gallery Using Feeds, CCK and Views title: Create a Flickr Photo Gallery Using Feeds, CCK and Views
nav: blog nav: blog
use:
- posts
slug: create-flickr-photo-gallery-using-feeds-cck-and-views slug: create-flickr-photo-gallery-using-feeds-cck-and-views
tags: tags:
- Drupal Planet - drupal-planet
- Drupal 6 - drupal-6
- Photo Gallery - photo-gallery
- Views - views
- CCK - cck
- ImageCache - imagecache
- Feeds - feeds
- FileField - filefield
- Flickr - flickr
- ImageField - imagefield
--- ---
In this tutorial, I'll show you how to create a photo gallery which uses photos imported from [Flickr](http://www.flickr.com). In this tutorial, I'll show you how to create a photo gallery which uses photos imported from [Flickr](http://www.flickr.com).

View file

@ -1,16 +1,15 @@
--- ---
title: Change the Content Type of Multiple Nodes Using SQL title: Change the Content Type of Multiple Nodes Using SQL
nav: blog nav: blog
use:
- posts
slug: change-content-type-multiple-nodes-using-sql slug: change-content-type-multiple-nodes-using-sql
tags: tags:
- Drupal Planet - drupal-planet
- Drupal 6 - drupal-6
- SQL - drupal
- Sequel Pro - sql
- Database - sequel-pro
- Content Types - database
- content-types
--- ---
In this post, I will be changing values within my Drupal 6 site's database to quickly change the content type of multiple nodes. I will be using a test development site with the core Blog module installed, and converting Blog posts to a custom content type called 'News article'. In this post, I will be changing values within my Drupal 6 site's database to quickly change the content type of multiple nodes. I will be using a test development site with the core Blog module installed, and converting Blog posts to a custom content type called 'News article'.

View file

@ -1,15 +1,13 @@
--- ---
title: Create Virtual Hosts on Mac OS X Using VirtualHostX title: Create Virtual Hosts on Mac OS X Using VirtualHostX
nav: blog nav: blog
use:
- posts
slug: create-virtual-hosts-mac-os-x-using-virtualhostx slug: create-virtual-hosts-mac-os-x-using-virtualhostx
tags: tags:
- Drupal Planet - drupal-planet
- Drupal 6 - drupal-6
- MAMP - mamp
- Virtual Hosts - virtual-hosts
- VirtualHostX - virtualhostx
--- ---
This isn't a Drupal related topic per se, but it is a walk-through of one of the applications that I use whilst doing Drupal development work. I assume, like most Mac OS X users, I use [MAMP](http://www.mamp.info/en/index.html) to run Apache, MySQL and PHP locally whilst developing. I also use virtual hosts in Apache to create local .dev domains which are as close as possible to the actual live domains. For example, if I was developing a site called mysite.com, my local development version would be mysite.dev. This isn't a Drupal related topic per se, but it is a walk-through of one of the applications that I use whilst doing Drupal development work. I assume, like most Mac OS X users, I use [MAMP](http://www.mamp.info/en/index.html) to run Apache, MySQL and PHP locally whilst developing. I also use virtual hosts in Apache to create local .dev domains which are as close as possible to the actual live domains. For example, if I was developing a site called mysite.com, my local development version would be mysite.dev.

View file

@ -1,16 +1,14 @@
--- ---
title: Add a Taxonomy Term to Multiple Nodes Using SQL title: Add a Taxonomy Term to Multiple Nodes Using SQL
nav: blog nav: blog
use:
- posts
slug: add-taxonomy-term-multiple-nodes-using-sql slug: add-taxonomy-term-multiple-nodes-using-sql
tags: tags:
- Taxonomy - taxonomy
- Drupal Planet - drupal-planet
- Drupal 6 - drupal-6
- SQL - sql
- Sequel Pro - sequal-pro
- Database - database
--- ---
**Update:** This can also be done using the [Views Bulk Operations](http://drupal.org/project/views_bulk_operations) module. **Update:** This can also be done using the [Views Bulk Operations](http://drupal.org/project/views_bulk_operations) module.

View file

@ -1,15 +1,12 @@
--- ---
title: Review of the Teleport Module title: Review of the Teleport Module
nav: blog nav: blog
use:
- posts
slug: review-teleport-module slug: review-teleport-module
tags: tags:
- Drupal Planet - drupal-planet
- Drupal 6 - drupal-6
- Modules - drupal-modules
- Drupal Modules - teleport
- Teleport
--- ---
As a heavily-reliant [Quicksilver](http://en.wikipedia.org/wiki/Quicksilver_%28software%29) user on my MacBook Pro, I was glad when I found the [Teleport](http://drupal.org/project/teleport) module for [Drupal](http://drupal.org) *(due to Elliott Rothman's [tweet](http://twitter.com/elliotttt/status/18044234238))*. As a heavily-reliant [Quicksilver](http://en.wikipedia.org/wiki/Quicksilver_%28software%29) user on my MacBook Pro, I was glad when I found the [Teleport](http://drupal.org/project/teleport) module for [Drupal](http://drupal.org) *(due to Elliott Rothman's [tweet](http://twitter.com/elliotttt/status/18044234238))*.

View file

@ -1,16 +1,13 @@
--- ---
title: Review of the Admin:hover Module title: Review of the Admin:hover Module
nav: blog nav: blog
use:
- posts
slug: review-adminhover-module slug: review-adminhover-module
tags: tags:
- Drupal Planet - drupal-planet
- Drupal 6 - drupal-6
- Modules - drupal-modules
- Drupal Modules - admin:hover
- Admin:hover - administration
- Administration
--- ---
Sorry for the lack of Blog posts lately, but [my new job](http://horseandcountry.tv) that I started a few weeks ago has certainly been keeping me busy! I've got a few more posts that I'm preparing content for, and I'll hopefully be back into my weekly-post routine before too long! Sorry for the lack of Blog posts lately, but [my new job](http://horseandcountry.tv) that I started a few weeks ago has certainly been keeping me busy! I've got a few more posts that I'm preparing content for, and I'll hopefully be back into my weekly-post routine before too long!

View file

@ -1,19 +1,17 @@
--- ---
title: Create a Better Photo Gallery in Drupal - Part 1 title: Create a Better Photo Gallery in Drupal - Part 1
nav: blog nav: blog
use:
- posts
slug: create-better-photo-gallery-drupal-part-1 slug: create-better-photo-gallery-drupal-part-1
tags: tags:
- Drupal Planet - drupal-planet
- Drupal 6 - drupal-6
- Photo Gallery - photo-gallery
- SQL - sql
- Views - views
- Sequel Pro - sequel-pro
- CCK - cck
- Views Attach - views-attach
- Drupal - drupal
--- ---
Recently, I converted a client's static HTML website, along with their Coppermine Photo Gallery, into a Drupal-powered website. Recently, I converted a client's static HTML website, along with their Coppermine Photo Gallery, into a Drupal-powered website.

View file

@ -1,16 +1,13 @@
--- ---
title: Create a Better Photo Gallery in Drupal - Part 2 title: Create a Better Photo Gallery in Drupal - Part 2
nav: blog nav: blog
use:
- posts
slug: create-better-photo-gallery-drupal-part-2 slug: create-better-photo-gallery-drupal-part-2
tags: tags:
- Drupal Planet - drupal-planet
- Drupal 6 - drupal-6
- Photo Gallery - photo-gallery
- SQL - sql
- Sequel Pro - sequel-pro
- UNIX Timestamp
--- ---
At the end of my last post, I'd finished creating the first part of the new photo gallery, but I wanted to change the dates of the published photos to reflect the ones on the client's original website. At the end of my last post, I'd finished creating the first part of the new photo gallery, but I wanted to change the dates of the published photos to reflect the ones on the client's original website.

View file

@ -1,15 +1,13 @@
--- ---
title: Review of the Image Caption Module title: Review of the Image Caption Module
nav: blog nav: blog
use:
- posts
slug: review-image-caption-module slug: review-image-caption-module
tags: tags:
- Drupal Planet - drupal-planet
- Drupal 6 - drupal
- Modules - drupal-6
- ImageField - imagefield
- Image Caption - image-caption
--- ---
Up until as recent as last week, whenever I added an image into one of my Blog posts, I was manually adding the caption below each image and styling it accordingly. That was until I installed the [Image Caption](http://drupal.org/project/image_caption) module. Up until as recent as last week, whenever I added an image into one of my Blog posts, I was manually adding the caption below each image and styling it accordingly. That was until I installed the [Image Caption](http://drupal.org/project/image_caption) module.

View file

@ -1,13 +1,12 @@
--- ---
title: The Inaugural Meetup for the South Wales Drupal User Group title: The Inaugural Meetup for the South Wales Drupal User Group
nav: blog nav: blog
use:
- posts
slug: south-wales-drupal-user-group slug: south-wales-drupal-user-group
tags: tags:
- Drupal - drupal
- Drupal Planet - drupal-planet
- SWDUG - swdug
- meetups
--- ---
If you do Drupal, and you're in the area, come and join us for the first South Wales Drupal User Group Meetup! If you do Drupal, and you're in the area, come and join us for the first South Wales Drupal User Group Meetup!

View file

@ -1,14 +1,12 @@
--- ---
title: How to Create and Apply Patches title: How to Create and Apply Patches
nav: blog nav: blog
use:
- posts
slug: create-and-apply-patches slug: create-and-apply-patches
tags: tags:
- Drupal Planet - drupal-planet
- Drupal 6 - drupal-6
- Modules - modules
- Patch - patches
--- ---
Earlier this year, I posted a solution to [an issue](http://drupal.org/node/753898) on the Drupal.org issue queue. Originally, I just posted the code back onto the issue, but have now created a patch that can easily be applied to any Drupal 6 installation. Here is a run-through of the process of creating and applying a patch. In this case, I made changes to the `user_pass_validate()` function that's found within `modules/user/user.pages.inc`. Earlier this year, I posted a solution to [an issue](http://drupal.org/node/753898) on the Drupal.org issue queue. Originally, I just posted the code back onto the issue, but have now created a patch that can easily be applied to any Drupal 6 installation. Here is a run-through of the process of creating and applying a patch. In this case, I made changes to the `user_pass_validate()` function that's found within `modules/user/user.pages.inc`.

View file

@ -1,9 +1,9 @@
--- ---
title: Create a Better Photo Gallery in Drupal - Part 3 title: Create a Better Photo Gallery in Drupal - Part 3
nav: blog nav: blog
use:
- posts
slug: create-better-photo-gallery-drupal-part-3 slug: create-better-photo-gallery-drupal-part-3
tags:
- drupal
--- ---
The next part of the new gallery that I want to implement is to group the galleries by their respective categories. The first step is to edit my original photo_gallery view and add an additional display. The next part of the new gallery that I want to implement is to group the galleries by their respective categories. The first step is to edit my original photo_gallery view and add an additional display.

View file

@ -1,9 +1,9 @@
--- ---
title: Create a Better Photo Gallery in Drupal - Part 2.1 title: Create a Better Photo Gallery in Drupal - Part 2.1
nav: blog nav: blog
use:
- posts
slug: create-better-photo-gallery-drupal-part-21 slug: create-better-photo-gallery-drupal-part-21
tags:
- drupal
--- ---
Today, I realised that I hadn't published the code that I used to create the total figures of galleries and photos at the top of the gallery (I said at the end of [Part 2](/blog/create-better-photo-gallery-drupal-part-2 "Create a Better Photo Gallery in Drupal - Part 2") that I'd include it in [Part 3](/blog/create-better-photo-gallery-drupal-part-3 "Create a Better Photo Gallery in Drupal - Part 3"), but I forgot). So, here it is: Today, I realised that I hadn't published the code that I used to create the total figures of galleries and photos at the top of the gallery (I said at the end of [Part 2](/blog/create-better-photo-gallery-drupal-part-2 "Create a Better Photo Gallery in Drupal - Part 2") that I'd include it in [Part 3](/blog/create-better-photo-gallery-drupal-part-3 "Create a Better Photo Gallery in Drupal - Part 3"), but I forgot). So, here it is:

View file

@ -1,16 +1,14 @@
--- ---
title: Use Regular Expressions to Search and Replace in Coda or TextMate title: Use Regular Expressions to Search and Replace in Coda or TextMate
nav: blog nav: blog
use:
- posts
slug: use-regular-expressions-search-and-replace-coda-or-textmate slug: use-regular-expressions-search-and-replace-coda-or-textmate
tags: tags:
- Taxonomy - taxonomy
- Sequel Pro - sequel-pro
- Database - database
- Coda - coda
- Regular Expression - regular-expression
- TextMate - textmate
--- ---
As in [the original post](/blog/add-taxonomy-term-multiple-nodes-using-sql "Quickly adding a taxonomy term to multiple nodes using SQL"), I'd generated a list of node ID values, and needed to add structure the SQL update statment formatted in a certain way. However, I changed my inital query slightly to out put the same nid value twice. As in [the original post](/blog/add-taxonomy-term-multiple-nodes-using-sql "Quickly adding a taxonomy term to multiple nodes using SQL"), I'd generated a list of node ID values, and needed to add structure the SQL update statment formatted in a certain way. However, I changed my inital query slightly to out put the same nid value twice.

View file

@ -1,13 +1,11 @@
--- ---
title: Easily Embed TypeKit Fonts into your Drupal Website title: Easily Embed TypeKit Fonts into your Drupal Website
nav: blog nav: blog
use:
- posts
slug: easily-embed-typekit-fonts-your-drupal-website slug: easily-embed-typekit-fonts-your-drupal-website
tags: tags:
- Drupal Planet - drupal-planet
- Drupal 6 - drupal-6
- TypeKit - typekit
--- ---
To begin with, you will need to [register for a TypeKit account](https://typekit.com/plans) - there is a free version if you just want to try it out. To begin with, you will need to [register for a TypeKit account](https://typekit.com/plans) - there is a free version if you just want to try it out.

View file

@ -1,9 +1,9 @@
--- ---
title: Display the Number of Facebook fans in PHP title: Display the Number of Facebook fans in PHP
nav: blog nav: blog
use:
- posts
slug: display-number-facebook-fans-php slug: display-number-facebook-fans-php
tags:
- php
--- ---
Replace the $page_id value with your Page ID number (unless you want to show the number of fans for this site).You can find your Page ID by logging into your Facebook account, going to 'Adverts and Pages', clicking 'Edit page', and looking at the URL. Replace the $page_id value with your Page ID number (unless you want to show the number of fans for this site).You can find your Page ID by logging into your Facebook account, going to 'Adverts and Pages', clicking 'Edit page', and looking at the URL.

View file

@ -1,11 +1,9 @@
--- ---
title: Proctor & Stevenson title: Proctor & Stevenson
nav: blog nav: blog
use:
- posts
slug: proctor-stevenson slug: proctor-stevenson
tags: tags:
- Personal - personal
--- ---
2 weeks ago, I handed in my notice of resignation to [Horse & Country TV](http://horseandcountry.tv)because I've been offered a new role at [Proctor & Stevenson](http://proctors.co.uk) - a Marketing Design and Communications agency in Bristol. 2 weeks ago, I handed in my notice of resignation to [Horse & Country TV](http://horseandcountry.tv)because I've been offered a new role at [Proctor & Stevenson](http://proctors.co.uk) - a Marketing Design and Communications agency in Bristol.

View file

@ -1,9 +1,10 @@
--- ---
title: Proctors Hosting the next Drupal Meetup title: Proctors Hosting the next Drupal Meetup
nav: blog nav: blog
use:
- posts
slug: proctors-hosting-next-drupal-meetup slug: proctors-hosting-next-drupal-meetup
tags:
- meetups
- drupal-bristol
--- ---
My employer, [Proctor & Stevenson](http://www.proctors.co.uk), are going to be hosting the next Bristol & South West Drupal meetup on the 25th May at our offices. My employer, [Proctor & Stevenson](http://www.proctors.co.uk), are going to be hosting the next Bristol & South West Drupal meetup on the 25th May at our offices.

View file

@ -1,12 +1,9 @@
--- ---
title: Imagefield Import Archive title: Imagefield Import Archive
nav: blog nav: blog
use:
- posts
tags: tags:
- Drupal Planet - drupal-planet
- ImageField Import - imagefield-import
- Module Development
--- ---
I've finally uploaded my first module onto Drupal.org! I've finally uploaded my first module onto Drupal.org!

View file

@ -1,17 +1,15 @@
--- ---
title: Create Multigroups in Drupal 7 using Field Collections title: Create Multigroups in Drupal 7 using Field Collections
nav: blog nav: blog
use:
- posts
slug: create-multigroups-drupal-7-using-field-collections slug: create-multigroups-drupal-7-using-field-collections
tags: tags:
- Drupal 7 - drupal-7
- Drupal Planet - drupal-planet
- CCK - cck
- Fields - fields
- Field Collection - field-collection
- Entity API - entity-api
- Multigroup - multigroup
--- ---
One of my favourite things lately in Drupal 6 has been CCK 3, and more specifically, the Content Multigroups sub-module. Basically this allows you to create a fieldset of various CCK fields, and then repeat that multiple times. For example, I use it on this site whist creating invoices for clients. I have a fieldset called 'Line Item', containing 'Description', 'Quantity' and 'Price' fields. With a standard fieldset, I could only have one instance of each field - however, using a multigroup, I can create multiple groups of line items which I then use within the invoice. One of my favourite things lately in Drupal 6 has been CCK 3, and more specifically, the Content Multigroups sub-module. Basically this allows you to create a fieldset of various CCK fields, and then repeat that multiple times. For example, I use it on this site whist creating invoices for clients. I have a fieldset called 'Line Item', containing 'Description', 'Quantity' and 'Price' fields. With a standard fieldset, I could only have one instance of each field - however, using a multigroup, I can create multiple groups of line items which I then use within the invoice.

View file

@ -1,13 +1,11 @@
--- ---
title: How to Install and Configure Subversion (SVN) Server on Ubuntu title: How to Install and Configure Subversion (SVN) Server on Ubuntu
nav: blog nav: blog
use:
- posts
slug: install-and-configure-subversion-svn-server-ubuntu slug: install-and-configure-subversion-svn-server-ubuntu
tags: tags:
- SVN - svn
- Ubuntu - ubuntu
- Version control - version-control
--- ---
Recently, I needed to set up a Subversion (SVN) server on a Ubuntu Linux server. This post is going to outline the steps taken, and the commands used, to install and configure the service. Recently, I needed to set up a Subversion (SVN) server on a Ubuntu Linux server. This post is going to outline the steps taken, and the commands used, to install and configure the service.

View file

@ -1,8 +1,6 @@
--- ---
title: Site Upgraded to Drupal 7 title: Site Upgraded to Drupal 7
nav: blog nav: blog
use:
- posts
slug: site-upgraded-drupal-7 slug: site-upgraded-drupal-7
--- ---
As the vast majority of the Drupal websites that I currently work on are built on Drupal 7, I thought that it was time that I upgraded this site. Following the [core upgrade process](http://drupal.org/node/570162) and the [CCK migration process](http://drupal.org/node/1144136), everything was upgraded smoothly without any issues. As the vast majority of the Drupal websites that I currently work on are built on Drupal 7, I thought that it was time that I upgraded this site. Following the [core upgrade process](http://drupal.org/node/570162) and the [CCK migration process](http://drupal.org/node/1144136), everything was upgraded smoothly without any issues.

View file

@ -1,12 +1,10 @@
--- ---
title: How to use Authorized Keys to Create a Passwordless SSH Connection title: How to use Authorized Keys to Create a Passwordless SSH Connection
nav: blog nav: blog
use:
- posts
slug: use-authorized-keys-create-passwordless-ssh-connection slug: use-authorized-keys-create-passwordless-ssh-connection
tags: tags:
- Linux - linux
- SSH - ssh
--- ---
If you're accessing Linux servers or automating tasks between servers, rather than having to enter your user password every time, you can also use SSH public key authentication. This is a simple process that involves creating a local key and storing it within the *authorized_keys* file on the remote server. If you're accessing Linux servers or automating tasks between servers, rather than having to enter your user password every time, you can also use SSH public key authentication. This is a simple process that involves creating a local key and storing it within the *authorized_keys* file on the remote server.

View file

@ -1,16 +1,14 @@
--- ---
title: Create an Omega Subtheme with LESS CSS Preprocessor using Omega Tools and Drush title: Create an Omega Subtheme with LESS CSS Preprocessor using Omega Tools and Drush
nav: blog nav: blog
use:
- posts
slug: create-omega-subtheme-less-css-preprocessor-using-omega-tools-and-drush slug: create-omega-subtheme-less-css-preprocessor-using-omega-tools-and-drush
tags: tags:
- Drupal 7 - drupal-7
- Omega - omega
- Theming - theming
- LESS - less
- Drupal Planet - drupal-planet
- Drupal - drupal
--- ---
In this tutorial I'll be showing how to create an [Omega](http://drupal.org/project/omega) subtheme using the [Omega Tools](http://drupal.org/project/omega_tools) module, and have it working with the [LESS CSS preprocessor](http://lesscss.org). In this tutorial I'll be showing how to create an [Omega](http://drupal.org/project/omega) subtheme using the [Omega Tools](http://drupal.org/project/omega_tools) module, and have it working with the [LESS CSS preprocessor](http://lesscss.org).

View file

@ -1,13 +1,11 @@
--- ---
title: Installing Nagios on CentOS title: Installing Nagios on CentOS
nav: blog nav: blog
use:
- posts
slug: installing-nagios-centos slug: installing-nagios-centos
tags: tags:
- Nagios - nagios
- CentOS - centos
- Linux - linux
--- ---
A great post details that details the steps needed to install [Nagios](http://nagios.org) - a popular open source system and network monitoring software application - on CentOS. A great post details that details the steps needed to install [Nagios](http://nagios.org) - a popular open source system and network monitoring software application - on CentOS.

View file

@ -1,13 +1,12 @@
--- ---
title: Adding Custom Theme Templates in Drupal 7 title: Adding Custom Theme Templates in Drupal 7
nav: blog nav: blog
use:
- posts
description: > description: >
Today, I had a situation where I was displaying a list of teasers for news article nodes. The article content type had several different fields assigned to it, including main and thumbnail images. In this case, I wanted to have different output and fields displayed when a teaser was displayed compared to when a complete node was displayed. Today, I had a situation where I was displaying a list of teasers for news article nodes. The article content type had several different fields assigned to it, including main and thumbnail images. In this case, I wanted to have different output and fields displayed when a teaser was displayed compared to when a complete node was displayed.
slug: adding-custom-theme-templates-drupal-7 slug: adding-custom-theme-templates-drupal-7
tags: tags:
- Drupal Planet - drupal-planet
- drupal
--- ---
Today, I had a situation where I was displaying a list of teasers for news article nodes. The article content type had several different fields assigned to it, including main and thumbnail images. In this case, I wanted to have different output and fields displayed when a teaser was displayed compared to when a complete node was displayed. Today, I had a situation where I was displaying a list of teasers for news article nodes. The article content type had several different fields assigned to it, including main and thumbnail images. In this case, I wanted to have different output and fields displayed when a teaser was displayed compared to when a complete node was displayed.

View file

@ -1,13 +1,11 @@
--- ---
title: Prevent Apache from displaying text files within a web browser title: Prevent Apache from displaying text files within a web browser
nav: blog nav: blog
use:
- posts
slug: prevent-apache-displaying-text-files-within-web-browser slug: prevent-apache-displaying-text-files-within-web-browser
tags: tags:
- Apache - apache
- Code - code
- Drupal - drupal
--- ---
When you download [Drupal](http://drupal.org), there are several text files that are placed in the root of your installation. You don't want or need these to be visible to anyone attempting to view them in a browser - especially CHANGELOG.txt as that includes the exact version of Drupal you are running and could therefore have security implications. Rather than delete these files or change the file permissions manually for each file, I can add the following lines into my VirtualHost configuration: When you download [Drupal](http://drupal.org), there are several text files that are placed in the root of your installation. You don't want or need these to be visible to anyone attempting to view them in a browser - especially CHANGELOG.txt as that includes the exact version of Drupal you are running and could therefore have security implications. Rather than delete these files or change the file permissions manually for each file, I can add the following lines into my VirtualHost configuration:

View file

@ -1,12 +1,10 @@
--- ---
title: Checkout a specific revision from SVN from the command line title: Checkout a specific revision from SVN from the command line
nav: blog nav: blog
use:
- posts
slug: checkout-specific-revision-svn-command-line slug: checkout-specific-revision-svn-command-line
tags: tags:
- SVN - svn
- Version control - version-control
--- ---
If you're checking out the repository for the first time: If you're checking out the repository for the first time:

View file

@ -1,17 +1,15 @@
--- ---
title: How to add a date popup calendar onto a custom form title: How to add a date popup calendar onto a custom form
nav: blog nav: blog
use:
- posts
slug: add-date-popup-calendar-custom-form slug: add-date-popup-calendar-custom-form
tags: tags:
- Forms - forms
- Form API - form-api
- Date - date
- Calendar - calendar
- Drupal 7 - drupal-7
- Drupal Planet - drupal-planet
- Drupal - drupal
--- ---
First, I need to download the [Date](http://drupal.org/project/date "Date module on Drupal.org") module, and make my module dependent on date_popup by adding the following line into my module's .info file. First, I need to download the [Date](http://drupal.org/project/date "Date module on Drupal.org") module, and make my module dependent on date_popup by adding the following line into my module's .info file.

View file

@ -1,14 +1,12 @@
--- ---
title: Forward one domain to another using mod_rewrite and .htaccess title: Forward one domain to another using mod_rewrite and .htaccess
nav: blog nav: blog
use:
- posts
slug: forward-one-domain-another-using-modrewrite-and-htaccess slug: forward-one-domain-another-using-modrewrite-and-htaccess
tags: tags:
- .htaccess - .htaccess
- Code - code
- Drupal - drupal
- Apache - apache
- mod_rewrite - mod_rewrite
--- ---
Within the mod_rewrite section of your .htaccess file, add the following lines: Within the mod_rewrite section of your .htaccess file, add the following lines:

View file

@ -1,14 +1,12 @@
--- ---
title: Writing a .info file for a Drupal 7 theme title: Writing a .info file for a Drupal 7 theme
nav: blog nav: blog
use:
- posts
slug: writing-info-file-drupal-7-theme slug: writing-info-file-drupal-7-theme
tags: tags:
- Theming - theming
- Drupal Theming - drupal-theming
- Drupal - drupal
- Code - code
--- ---
~~~ ~~~
name = My Theme name = My Theme

View file

@ -1,15 +1,13 @@
--- ---
title: Dividing Drupal's process and preprocess functions into separate files title: Dividing Drupal's process and preprocess functions into separate files
nav: blog nav: blog
use:
- posts
description: If you use a lot of process and preprocess functions within your Drupal theme, then your template.php can get very long and it can become difficult to find a certain piece of code. Following the example of the Omega theme, I've started separating my process and preprocess functions into their own files. description: If you use a lot of process and preprocess functions within your Drupal theme, then your template.php can get very long and it can become difficult to find a certain piece of code. Following the example of the Omega theme, I've started separating my process and preprocess functions into their own files.
slug: dividing-drupals-process-and-preprocess-functions-separate-files slug: dividing-drupals-process-and-preprocess-functions-separate-files
tags: tags:
- Drupal - drupal
- Code - code
- Theming - theming
- Preprocessing - preprocessing
--- ---
If you use a lot of process and preprocess functions within your Drupal theme, then your template.php can get very long and it can become difficult to find a certain piece of code. Following the example of the [Omega theme](http://drupal.org/project/omega "The Omega theme on Drupal.org"), I've started separating my process and preprocess functions into their own files. For example, mytheme_preprocess_node can be placed within a preprocess/node.inc file, and mytheme_process_page can be placed within process/page.inc. If you use a lot of process and preprocess functions within your Drupal theme, then your template.php can get very long and it can become difficult to find a certain piece of code. Following the example of the [Omega theme](http://drupal.org/project/omega "The Omega theme on Drupal.org"), I've started separating my process and preprocess functions into their own files. For example, mytheme_preprocess_node can be placed within a preprocess/node.inc file, and mytheme_process_page can be placed within process/page.inc.

View file

@ -1,16 +1,14 @@
--- ---
title: My new Drupal modules title: My new Drupal modules
nav: blog nav: blog
use:
- posts
description: After a busy few days, I've released two new contrib Drupal modules. description: After a busy few days, I've released two new contrib Drupal modules.
tags: tags:
- Drupal - drupal
- Drupal Modules - drupal-modules
- Drupal 6 - drupal-6
- Drupal 7 - drupal-7
- Drupal Planet - drupal-planet
- Accessibility - accessibility
--- ---
After a busy few days, I've released two new contrib Drupal modules: After a busy few days, I've released two new contrib Drupal modules:

View file

@ -1,14 +1,12 @@
--- ---
title: Install and Configure the Nomensa Accessible Media Player in Drupal title: Install and Configure the Nomensa Accessible Media Player in Drupal
nav: blog nav: blog
use:
- posts
slug: install-nomensa-media-player-drupal slug: install-nomensa-media-player-drupal
tags: tags:
- Accessibility - accessibility
- Drupal - drupal
- Drupal Planet - drupal-planet
- Nomensa - nomensa
--- ---
*The official documentation for this module is now located at <https://www.drupal.org/node/2383447>. This post was accurate at the time of writing, whereas the documentation page will be kept up to date with any future changes.* *The official documentation for this module is now located at <https://www.drupal.org/node/2383447>. This post was accurate at the time of writing, whereas the documentation page will be kept up to date with any future changes.*

View file

@ -1,16 +1,14 @@
--- ---
title: Writing an Article for Linux Journal title: Writing an Article for Linux Journal
nav: blog nav: blog
use:
- posts
description: I'm absolutely delighted to announce that I'm going to be writing an article for Linux Journal magazine's upcoming Drupal special. description: I'm absolutely delighted to announce that I'm going to be writing an article for Linux Journal magazine's upcoming Drupal special.
slug: writing-article-linux-journal slug: writing-article-linux-journal
tags: tags:
- Drupal - drupal
- Distributions - distributions
- Installation Profiles - installation-profiles
- Writing - writing
- Linux Journal - linux-journal
--- ---
I'm absolutely delighted to announce that I'm going to be writing an article for [Linux Journal](http://www.linuxjournal.com) magazine's upcoming Drupal special. The article is going to be entitled "Speeding Up Your Drupal Development Using Installation Profiles and Distributions" and will be mentioning existing distributions available on Drupal.org, but mainly focussing on the steps needed to create your own custom distribution. Needless to say, I'm quite excited about it! I'm absolutely delighted to announce that I'm going to be writing an article for [Linux Journal](http://www.linuxjournal.com) magazine's upcoming Drupal special. The article is going to be entitled "Speeding Up Your Drupal Development Using Installation Profiles and Distributions" and will be mentioning existing distributions available on Drupal.org, but mainly focussing on the steps needed to create your own custom distribution. Needless to say, I'm quite excited about it!

View file

@ -1,16 +1,14 @@
--- ---
title: Display a Custom Menu in a Drupal 7 Theme Template File title: Display a Custom Menu in a Drupal 7 Theme Template File
nav: blog nav: blog
use:
- posts
description: For reference, this is the code needed to display a menu in a Drupal 7 template file. description: For reference, this is the code needed to display a menu in a Drupal 7 template file.
slug: display-custom-menu-drupal-7-theme-template-file slug: display-custom-menu-drupal-7-theme-template-file
tags: tags:
- Drupal - drupal
- Drupal 7 - drupal-7
- Drupal Planet - drupal-planet
- PHP - php
- ARIA - aria
--- ---
For reference, this is the code needed to display a menu in a Drupal 7 template file, including the navigation ARIA role. For reference, this is the code needed to display a menu in a Drupal 7 template file, including the navigation ARIA role.

View file

@ -1,10 +1,10 @@
--- ---
title: Reflections on speaking at UnifiedDiff title: Reflections on speaking at UnifiedDiff
nav: blog nav: blog
use:
- posts
description: Yesterday evening I went to and spoke at the <a href="http://www.unifieddiff.co.uk" title="UnifiedDiff">UnifiedDiff meetup</a> in Cardiff, having offered previously to do a presentation providing an introduction to Drupal. description: Yesterday evening I went to and spoke at the <a href="http://www.unifieddiff.co.uk" title="UnifiedDiff">UnifiedDiff meetup</a> in Cardiff, having offered previously to do a presentation providing an introduction to Drupal.
slug: reflections-speaking-unifieddiff slug: reflections-speaking-unifieddiff
tags:
- talks
--- ---
Yesterday evening I went along and spoke at the [UnifiedDiff meetup](http://www.unifieddiff.co.uk) in Cardiff, having offered previously to do a presentation providing an introduction to Drupal. Yesterday evening I went along and spoke at the [UnifiedDiff meetup](http://www.unifieddiff.co.uk) in Cardiff, having offered previously to do a presentation providing an introduction to Drupal.

View file

@ -1,11 +1,9 @@
--- ---
title: My Sublime Text 2 settings title: My Sublime Text 2 settings
nav: blog nav: blog
use:
- posts
description: <a href="http://www.sublimetext.com/2" title="Sublime Text 2">Sublime Text 2</a> has been my text editor of choice for the past few months, and I use it at home, in work, and on any virtual machines that I run. So rather than having to manually re-enter my settings each time, I thought that I'd document them here for future reference. description: <a href="http://www.sublimetext.com/2" title="Sublime Text 2">Sublime Text 2</a> has been my text editor of choice for the past few months, and I use it at home, in work, and on any virtual machines that I run. So rather than having to manually re-enter my settings each time, I thought that I'd document them here for future reference.
tags: tags:
- Sublime Text - sublime-text
--- ---
[Sublime Text 2](http://www.sublimetext.com/2) has been my text editor of choice for the past few months, and I use it at home, in work, and on any virtual machines that I run. So rather than having to manually re-enter my settings each time, I thought that I'd document them here for future reference. These preferences ensure that the code is compliant with [Drupal coding standards](http://drupal.org/coding-standards "Drupal coding standards on Drupal.org") - using two spaces instead of a tab, no trailing whitespace, blank line at the end of a file etc. [Sublime Text 2](http://www.sublimetext.com/2) has been my text editor of choice for the past few months, and I use it at home, in work, and on any virtual machines that I run. So rather than having to manually re-enter my settings each time, I thought that I'd document them here for future reference. These preferences ensure that the code is compliant with [Drupal coding standards](http://drupal.org/coding-standards "Drupal coding standards on Drupal.org") - using two spaces instead of a tab, no trailing whitespace, blank line at the end of a file etc.

View file

@ -1,13 +1,11 @@
--- ---
title: Accessible Bristol site launched title: Accessible Bristol site launched
nav: blog nav: blog
use:
- posts
description: I'm happy to report that the Accessible Bristol was launched this week, on Drupal 7. description: I'm happy to report that the Accessible Bristol was launched this week, on Drupal 7.
tags: tags:
- Accessibility - accessibility
- Accessible Bristol - accessible-bristol
- Nomensa - nomensa
--- ---
I'm happy to report that the [Accessible Bristol](http://www.accessiblebristol.org.uk) website was launched this week, on Drupal 7. The site's been developed over the past few months, and uses the [User Relationships](http://drupal.org/project/user_relationships) and [Privatemsg](http://drupal.org/project/privatemsg) modules to provide a community-based platform where people with an interest in accessibility can register and network with each other. I'm happy to report that the [Accessible Bristol](http://www.accessiblebristol.org.uk) website was launched this week, on Drupal 7. The site's been developed over the past few months, and uses the [User Relationships](http://drupal.org/project/user_relationships) and [Privatemsg](http://drupal.org/project/privatemsg) modules to provide a community-based platform where people with an interest in accessibility can register and network with each other.

View file

@ -1,13 +1,11 @@
--- ---
title: Open Sublime Text 2 from the Mac OS X Command Line title: Open Sublime Text 2 from the Mac OS X Command Line
nav: blog nav: blog
use:
- posts
slug: open-sublime-text-2-mac-os-x-command-line slug: open-sublime-text-2-mac-os-x-command-line
tags: tags:
- Sublime Text - sublime-text
- Mac OS X - mac-os-x
- Terminal - terminal
--- ---
Paste the following code into the Mac OS X Terminal, assuming that you've installed Sublime Text 2 into the /Applications folder. Paste the following code into the Mac OS X Terminal, assuming that you've installed Sublime Text 2 into the /Applications folder.

View file

@ -1,19 +1,16 @@
--- ---
title: How to use SASS and Compass in Drupal 7 using Sassy title: How to use SASS and Compass in Drupal 7 using Sassy
nav: blog nav: blog
use:
- posts
slug: use-sass-and-compass-drupal-7-using-sassy slug: use-sass-and-compass-drupal-7-using-sassy
tags: tags:
- Compass - compass
- CSS - css
- Drupal - drupal
- Drupal 7 - drupal-7
- Drupal Planet - drupal-planet
- LESS - less
- Preprocessing - preprocessing
- SASS - sass
- SCSS
--- ---
I've recently started using [SASS](http://sass-lang.com) rather than LESS to do my CSS preprocessing - namely due to its integration with [Compass](http://compass-style.org) and it's built-in CSS3 mixins. There are three modules that provide the ability to use SASS within Drupal: I've recently started using [SASS](http://sass-lang.com) rather than LESS to do my CSS preprocessing - namely due to its integration with [Compass](http://compass-style.org) and it's built-in CSS3 mixins. There are three modules that provide the ability to use SASS within Drupal:

View file

@ -1,16 +1,14 @@
--- ---
title: Checking if a user is logged into Drupal (the right way) title: Checking if a user is logged into Drupal (the right way)
nav: blog nav: blog
use:
- posts
description: How to check if a user is logged into Drupal by using the user_is_logged_in() and user_is_anonymous() functions. description: How to check if a user is logged into Drupal by using the user_is_logged_in() and user_is_anonymous() functions.
slug: checking-if-user-logged-drupal-right-way slug: checking-if-user-logged-drupal-right-way
tags: tags:
- Drupal - drupal
- Drupal 6 - drupal-6
- Drupal 7 - drupal-7
- Drupal Planet - drupal-planet
- PHP - php
--- ---
I see this regularly when working on Drupal sites when someone wants to check whether the current user is logged in to Drupal (authenticated) or not (anonymous): I see this regularly when working on Drupal sites when someone wants to check whether the current user is logged in to Drupal (authenticated) or not (anonymous):

View file

@ -1,14 +1,12 @@
--- ---
title: Creating and using custom tokens in Drupal 7 title: Creating and using custom tokens in Drupal 7
nav: blog nav: blog
use:
- posts
slug: creating-and-using-custom-tokens-drupal-7 slug: creating-and-using-custom-tokens-drupal-7
tags: tags:
- Drupal - drupal
- Drupal Planet - drupal-planet
- Drupal 7 - drupal-7
- Tokens - tokens
--- ---
This post outlines the steps required to create your own custom tokens in Drupal. This post outlines the steps required to create your own custom tokens in Drupal.

View file

@ -1,13 +1,11 @@
--- ---
title: The Quickest way to Install Sublime Text 2 in Ubuntu title: The Quickest way to Install Sublime Text 2 in Ubuntu
nav: blog nav: blog
use:
- posts
slug: quickest-way-install-sublime-text-2-ubuntu slug: quickest-way-install-sublime-text-2-ubuntu
tags: tags:
- Linux - linux
- Sublime Text - sublime-text
- Ubuntu - ubuntu
--- ---
After reading numerous blog posts about how to install [Sublime Text 2](http://www.sublimetext.com/2 "Sublime Text 2") in [Ubuntu](http://www.ubuntu.com/2 "Ubuntu"), this is definitely the quickest way! Just paste the following lines into your Terminal: After reading numerous blog posts about how to install [Sublime Text 2](http://www.sublimetext.com/2 "Sublime Text 2") in [Ubuntu](http://www.ubuntu.com/2 "Ubuntu"), this is definitely the quickest way! Just paste the following lines into your Terminal:

View file

@ -1,13 +1,11 @@
--- ---
title: Leaving Nomensa, Joining Precedent title: Leaving Nomensa, Joining Precedent
nav: blog nav: blog
use:
- posts
description: Yesterday was my last day working at Nomensa. Next week, I'll be starting as a Senior Developer at Precedent. description: Yesterday was my last day working at Nomensa. Next week, I'll be starting as a Senior Developer at Precedent.
tags: tags:
- Nomensa - nomensa
- Precedent - precedent
- Personal - personal
--- ---
Yesterday was my last day working at [Nomensa](http://www.nomensa.com "Nomensa"). Next week, I'll be starting as a Senior Developer at [Precedent](http://www.precedent.co.uk "Precedent"). Yesterday was my last day working at [Nomensa](http://www.nomensa.com "Nomensa"). Next week, I'll be starting as a Senior Developer at [Precedent](http://www.precedent.co.uk "Precedent").

View file

@ -1,15 +1,13 @@
--- ---
title: Display Git Branch or Tag Names in your Bash Prompt title: Display Git Branch or Tag Names in your Bash Prompt
nav: blog nav: blog
use:
- posts
description: 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. description: 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.
slug: display-git-branch-or-tag-names-your-bash-prompt slug: display-git-branch-or-tag-names-your-bash-prompt
tags: tags:
- Drupal - drupal
- Drupal Planet - drupal-planet
- Git - git
- Terminal - terminal
--- ---
Whilst watching [Drupalize.me](http://drupalize.me "Drupalize.me")'s recent [Introduction to Git series](http://drupalize.me/series/introduction-git-series "Introduction to Git on Drupalize.me"), I thought it was useful the way that the current Git branch or tag name was displayed in the bash prompt. Whilst watching [Drupalize.me](http://drupalize.me "Drupalize.me")'s recent [Introduction to Git series](http://drupalize.me/series/introduction-git-series "Introduction to Git on Drupalize.me"), I thought it was useful the way that the current Git branch or tag name was displayed in the bash prompt.

View file

@ -1,15 +1,13 @@
--- ---
title: Some useful links for using SimpleTest in Drupal title: Some useful links for using SimpleTest in Drupal
nav: blog nav: blog
use:
- posts
slug: some-useful-links-using-simpletest-drupal slug: some-useful-links-using-simpletest-drupal
tags: tags:
- SimpleTest - simpletest
- TDD - tdd
- Test Driven Development - test-driven-development
- Drupal Planet - drupal-planet
- Drupal - drupal
--- ---
Here are some useful links that I've found when researching about unit testing in Drupal using SimpleTest: Here are some useful links that I've found when researching about unit testing in Drupal using SimpleTest:

View file

@ -1,15 +1,13 @@
--- ---
title: Creating Local and Staging sites with Drupal's Domain Module Enabled title: Creating Local and Staging sites with Drupal's Domain Module Enabled
nav: blog nav: blog
use:
- posts
slug: creating-local-and-staging-sites-drupals-domain-module-enabled slug: creating-local-and-staging-sites-drupals-domain-module-enabled
tags: tags:
- Drupal - drupal
- Drupal Planet - drupal-planet
- Databases - databases
- Domain - domain
- Table Prefixing - table-prefixing
--- ---
The [Domain Access project](https://drupal.org/project/domain "The Domain Access project on Drupal.org") 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. The [Domain Access project](https://drupal.org/project/domain "The Domain Access project on Drupal.org") 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.

View file

@ -1,12 +1,10 @@
--- ---
title: Going to DrupalCon title: Going to DrupalCon
nav: blog nav: blog
use:
- posts
slug: going-drupalcon slug: going-drupalcon
tags: tags:
- DrupalCon - drupalcon
- Precedent - precedent
--- ---
[Precedent](http://www.precedent.co.uk) are sending myself and two of our other Drupal Developers to [Drupalcon Prague](http://prague2013.drupal.org). [Precedent](http://www.precedent.co.uk) are sending myself and two of our other Drupal Developers to [Drupalcon Prague](http://prague2013.drupal.org).

View file

@ -1,15 +1,13 @@
--- ---
title: Create a Zen Sub-theme Using Drush title: Create a Zen Sub-theme Using Drush
nav: blog nav: blog
use:
- posts
description: How to quickly create a Zen sub-theme using Drush. description: How to quickly create a Zen sub-theme using Drush.
tags: tags:
- Drupal - drupal
- Drupal Planet - drupal-planet
- Drush - drush
- Zen - zen
- Theming - theming
--- ---
First, download the [Zen](https://drupal.org/project/zen "The Zen theme") theme if you haven't already done so. First, download the [Zen](https://drupal.org/project/zen "The Zen theme") theme if you haven't already done so.

View file

@ -1,12 +1,10 @@
--- ---
title: Don't Bootstrap Drupal, Use Drush title: Don't Bootstrap Drupal, Use Drush
nav: blog nav: blog
use:
- posts
tags: tags:
- Drush - drush
- Drupal Planet - drupal-planet
- PHP - php
--- ---
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()` and `db_query()`. 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()` and `db_query()`.

View file

@ -1,11 +1,9 @@
--- ---
title: Useful Vagrant Commands title: Useful Vagrant Commands
nav: blog nav: blog
use:
- posts
description: Here are the basic commands that you need to adminster a virtual machine using <a href="http://vagrantup.com" title="The Vagrant Home page">Vagrant</a>. description: Here are the basic commands that you need to adminster a virtual machine using <a href="http://vagrantup.com" title="The Vagrant Home page">Vagrant</a>.
tags: tags:
- Vagrant - vagrant
--- ---
[Vagrant](http://www.vagrantup.com "About Vagrant") is a tool for managing virtual machines within [VirtualBox](https://www.virtualbox.org) from the command line. Here are some useful commands to know when using Vagrant: [Vagrant](http://www.vagrantup.com "About Vagrant") is a tool for managing virtual machines within [VirtualBox](https://www.virtualbox.org) from the command line. Here are some useful commands to know when using Vagrant:

View file

@ -1,12 +1,10 @@
--- ---
title: Quickly Apply Patches Using Git and curl or wget title: Quickly Apply Patches Using Git and curl or wget
nav: blog nav: blog
use:
- posts
description: How to quickly download a patch file and apply it to a Git repository in one line description: How to quickly download a patch file and apply it to a Git repository in one line
tags: tags:
- Git - git
- Drupal Planet - drupal-planet
--- ---
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. 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.

View file

@ -1,14 +1,12 @@
--- ---
title: Download Different Versions of Drupal with Drush title: Download Different Versions of Drupal with Drush
nav: blog nav: blog
use:
- posts
description: How to download different versions of Drupal core using Drush. description: How to download different versions of Drupal core using Drush.
slug: download-different-versions-drupal-drush slug: download-different-versions-drupal-drush
tags: tags:
- Drupal - drupal
- Drupal Planet - drupal-planet
- Drush - drush
--- ---
If you use [Drush](https://raw.github.com/drush-ops/drush/master/README.md "About Drush"), it's likely that you've used the `drush pm-download` (or `drush 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. If you use [Drush](https://raw.github.com/drush-ops/drush/master/README.md "About Drush"), it's likely that you've used the `drush pm-download` (or `drush 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.

View file

@ -1,10 +1,8 @@
--- ---
title: Some Useful Git Aliases title: Some Useful Git Aliases
nav: blog nav: blog
use:
- posts
tags: tags:
- Git - git
--- ---
Here are some bash aliases that I use and find helpful for quickly writing Git and Git Flow commands. These should be placed within your `~/.bashrc` or `~/.bash_profile` file: Here are some bash aliases that I use and find helpful for quickly writing Git and Git Flow commands. These should be placed within your `~/.bashrc` or `~/.bash_profile` file:

View file

@ -1,14 +1,12 @@
--- ---
title: DrupalCamp London 2014 title: DrupalCamp London 2014
nav: blog nav: blog
use:
- posts
description: It's all booked, I'm going to be attending DrupalCamp London. description: It's all booked, I'm going to be attending DrupalCamp London.
tags: tags:
- Drupal - drupal
- DrupalCamp London - drupalcamp-london
- Git - git
- Git Flow - git-flow
--- ---
It's all booked, I'm going to be attending [DrupalCamp London](http://2014.drupalcamplondon.co.uk). It's all booked, I'm going to be attending [DrupalCamp London](http://2014.drupalcamplondon.co.uk).

View file

@ -1,15 +1,13 @@
--- ---
title: DrupalCamp London: What is Git Flow? title: DrupalCamp London: What is Git Flow?
nav: blog nav: blog
use:
- posts
description: Slides and notes from my talk, "What is Git Flow?", that I presented at DrupalCamp London 2014. description: Slides and notes from my talk, "What is Git Flow?", that I presented at DrupalCamp London 2014.
slug: what-git-flow slug: what-git-flow
tags: tags:
- Git - git
- Git Flow - git-flow
- DrupalCamp London - drupalcamp-london
- Talks - talks
tweets: true tweets: true
--- ---
Here are my slides from my "What is Git Flow?" session at [DrupalCamp London](http://2014.drupalcamplondon.co.uk). Here are my slides from my "What is Git Flow?" session at [DrupalCamp London](http://2014.drupalcamplondon.co.uk).

View file

@ -1,11 +1,9 @@
--- ---
title: Drupal Association title: Drupal Association
nav: blog nav: blog
use:
- posts
tags: tags:
- Drupal - drupal
- Personal - personal
--- ---
Today was my last day working at [Precedent](http://www.precedent.com). Next week, I'll be starting my [new job](https://assoc.drupal.org/node/18923 "Drupal.org Developer") at the [Drupal Association](http://assoc.drupal.org) working on Drupal's home - [Drupal.org](http://www.drupal.org). Today was my last day working at [Precedent](http://www.precedent.com). Next week, I'll be starting my [new job](https://assoc.drupal.org/node/18923 "Drupal.org Developer") at the [Drupal Association](http://assoc.drupal.org) working on Drupal's home - [Drupal.org](http://www.drupal.org).

View file

@ -1,11 +1,9 @@
--- ---
title: Thanks title: Thanks
nav: blog nav: blog
use:
- posts
tags: tags:
- Drupal - drupal
- Drupal Association - drupal-association
- Personal - personal
--- ---
This is just a quick post to thank everyone for their comments and congratulations after my previous post about [joining the Drupal Association](/blog/drupal-association). Im looking forward to my first day in the job tomorrow. This is just a quick post to thank everyone for their comments and congratulations after my previous post about [joining the Drupal Association](/blog/drupal-association). Im looking forward to my first day in the job tomorrow.

View file

@ -1,14 +1,12 @@
--- ---
title: git format-patch is your Friend title: git format-patch is your Friend
nav: blog nav: blog
use:
- posts
slug: git-format-patch slug: git-format-patch
tags: tags:
- Patches - patches
- Drupal - drupal
- Drupal Planet - drupal-planet
- Git - git
--- ---
## The Problem ## The Problem

View file

@ -1,14 +1,12 @@
--- ---
title: drush make drupalbristol title: drush make drupalbristol
nav: blog nav: blog
use:
- posts
tags: tags:
- Drupal - drupal
- Drush - drush
- Drush Make - drush-make
- Drupal Bristol - drupal-bristol
- Talks - talks
--- ---
Here are my slides from this month's talk night at the [Drupal Bristol user group](https://groups.drupal.org/bristol-and-west-uk). Here are my slides from this month's talk night at the [Drupal Bristol user group](https://groups.drupal.org/bristol-and-west-uk).

View file

@ -1,16 +1,18 @@
--- ---
title: How to fix Vagrant Loading the Wrong Virtual Machine title: How to fix Vagrant Loading the Wrong Virtual Machine
nav: blog nav: blog
use:
- posts
slug: fix-vagrant-loading-wrong-virtual-machine slug: fix-vagrant-loading-wrong-virtual-machine
tags: tags:
- Vagrant - vagrant
- VirtualBox - virtualbox
meta:
description: How to fix it when Vagrant loads the wrong virtual machine.
--- ---
A few times recently, I've had instances where Vagrant seems to have forgotten which virtual machine it's supposed to load, probably due to renaming a project directory or the .vagrant directory being moved accidentally. Here are the steps that I took to fix this and point Vagrant back at the correct VM. A few times recently, I've had instances where Vagrant seems to have forgotten which virtual machine it's supposed to load, probably due to renaming a project directory or the .vagrant directory being moved accidentally.
* Stop the machine from running using the `$ vagrant halt` command. Here are the steps that I took to fix this and point Vagrant back at the correct VM.
* Use the `$ VBoxManage list vms` command to view a list of the virtual machines on your system. Note the ID of the correct VM that should be loading. For example, `"foo_default_1405481857614_74478" {e492bfc3-cac2-4cde-a396-e81e37e421e2}`. The number within the curly brackets is the ID of the virtual machine.
* Within the .vagrant directory in your project (it is hidden by default), update the ID within the machines/default/virtualbox/id file. 1. Stop the machine from running using the `$ vagrant halt` command.
* Start the new VM with `$ vagrant up`. 2. Use the `$ VBoxManage list vms` command to view a list of the virtual machines on your system. Note the ID of the correct VM that should be loading. For example, `"foo_default_1405481857614_74478" {e492bfc3-cac2-4cde-a396-e81e37e421e2}`. The number within the curly brackets is the ID of the virtual machine.
3. Within the .vagrant directory in your project (it is hidden by default), update the ID within the machines/default/virtualbox/id file.
4. Start the new VM with `$ vagrant up`.

View file

@ -1,14 +1,12 @@
--- ---
title: Updating Features and Adding Components Using Drush title: Updating Features and Adding Components Using Drush
nav: blog nav: blog
use:
- posts
slug: updating-features-and-adding-components-using-drush slug: updating-features-and-adding-components-using-drush
tags: tags:
- Drupal - drupal
- Drupal Planet - drupal-planet
- Drush - drush
- Features - features
--- ---
If you use the [Features module](http://drupal.org/project/features) to manage your Drupal configuration, it can be time consuming to update features through the UI, especially if you are working on a remote server and need to keep downloading and uploading files. If you use the [Features module](http://drupal.org/project/features) to manage your Drupal configuration, it can be time consuming to update features through the UI, especially if you are working on a remote server and need to keep downloading and uploading files.

View file

@ -1,15 +1,13 @@
--- ---
title: Include CSS Fonts by Using a SASS each Loop title: Include CSS Fonts by Using a SASS each Loop
nav: blog nav: blog
use:
- posts
description: How to use an SASS each loop to easily add multiple fonts to your CSS. description: How to use an SASS each loop to easily add multiple fonts to your CSS.
slug: include-css-fonts-using-sass-each-loop slug: include-css-fonts-using-sass-each-loop
tags: tags:
- Compass - compass
- Drupal Planet - drupal-planet
- Fonts - fonts
- SASS - sass
--- ---
Using a file structure similar to this, organise your font files into directories, using the the font name for both the directory name and for the file names. Using a file structure similar to this, organise your font files into directories, using the the font name for both the directory name and for the file names.

View file

@ -1,12 +1,10 @@
--- ---
title: Using Remote Files when Developing Locally with Stage File Proxy Module title: Using Remote Files when Developing Locally with Stage File Proxy Module
nav: blog nav: blog
use:
- posts
tags: tags:
- Drupal - drupal
- Drupal Planet - drupal-planet
- Servers - servers
--- ---
Download the [Stage File Proxy](https://www.drupal.org/project/stage_file_proxy) module from Drupal.org and enable it on your site. Download the [Stage File Proxy](https://www.drupal.org/project/stage_file_proxy) module from Drupal.org and enable it on your site.

View file

@ -1,13 +1,11 @@
--- ---
title: Include environment-specific settings files on Pantheon title: Include environment-specific settings files on Pantheon
nav: blog nav: blog
use:
- posts
slug: pantheon-settings-files slug: pantheon-settings-files
tags: tags:
- Drupal - drupal
- Drupal Planet - drupal-planet
- Pantheon - pantheon
- settings.php - settings.php
--- ---
I was recently doing some work on a site hosted on [Pantheon](http://getpantheon.com) and came across an issue, for which part of the suggested fix was to ensure that the `$base_url` variable was explicitly defined within settings.php (this is also best practice on all Drupal sites). I was recently doing some work on a site hosted on [Pantheon](http://getpantheon.com) and came across an issue, for which part of the suggested fix was to ensure that the `$base_url` variable was explicitly defined within settings.php (this is also best practice on all Drupal sites).

View file

@ -1,15 +1,13 @@
--- ---
title: Include a Local Drupal Settings file for Environment Configuration and Overrides title: Include a Local Drupal Settings file for Environment Configuration and Overrides
nav: blog nav: blog
use:
- posts
slug: include-local-drupal-settings-file-environment-configuration-and-overrides slug: include-local-drupal-settings-file-environment-configuration-and-overrides
tags: tags:
- Drupal - drupal
- Drupal 6 - drupal-6
- Drupal 7 - drupal-7
- Drupal 8 - drupal-8
- Drupal Planet - drupal-planet
- settings.php - settings.php
--- ---
At the bottom of settings.php, add the following code: At the bottom of settings.php, add the following code:

View file

@ -1,14 +1,12 @@
--- ---
title: Configuring the Reroute Email Module title: Configuring the Reroute Email Module
nav: blog nav: blog
use:
- posts
tags: tags:
- Drupal - drupal
- Drupal 6 - drupal-6
- Drupal 7 - drupal-7
- Drupal Planet - drupal-planet
- Email - email
draft: true draft: true
--- ---
[Reroute Email](https://www.drupal.org/project/reroute_email) module uses `hook_mail_alter()` to prevent emails from being sent to users from non-production sites. It allows you to enter one or more email addresses that will receive the emails instead of delivering them to the original user. [Reroute Email](https://www.drupal.org/project/reroute_email) module uses `hook_mail_alter()` to prevent emails from being sent to users from non-production sites. It allows you to enter one or more email addresses that will receive the emails instead of delivering them to the original user.

View file

@ -2,15 +2,12 @@
title: 2014 title: 2014
description: A look back at 2014. description: A look back at 2014.
nav: blog nav: blog
use:
- posts
tags: tags:
- Drupal Association - drupal-association
- DrupalCamp London - drupalcamp-london
- Personal - personal
tweets: true tweets: true
--- ---
A lot happened in 2014. Here are some of the main things that I'd like to highlight: A lot happened in 2014. Here are some of the main things that I'd like to highlight:
## Joined the Drupal Association ## Joined the Drupal Association

View file

@ -2,14 +2,17 @@
title: How to Define a Minimum Drupal Core Version title: How to Define a Minimum Drupal Core Version
description: How to define a minimum Drupal core version for your module or theme. description: How to define a minimum Drupal core version for your module or theme.
nav: blog nav: blog
use:
- posts
tags: tags:
- Drupal - drupal
- Drupal 7 - drupal-7
- Drupal Planet - drupal-planet
meta:
og:
title: 'How to Define a Minimum Drupal Core Version'
description: 'How to define a minimum Drupal core version for your module or theme.'
type: article
--- ---
This week, my first code patch was [committed to Drupal core](https://www.drupal.org/node/2394517#comment-9773143). The patch adds the `user_has_role()` function to theu user module, to simplify the way to check whether a user in Drupal has been assigned a specific role. This is something that I normally write a custom function for each project, but it's now available in Drupal core as of [7.36](https://www.drupal.org/drupal-7.36-release-notes). This week, my first code patch was [committed to Drupal core](https://www.drupal.org/node/2394517#comment-9773143). The patch adds the `user_has_role()` function to the user module, to simplify the way to check whether a user in Drupal has been assigned a specific role. This is something that I normally write a custom function for each project, but it's now available in Drupal core as of [7.36](https://www.drupal.org/drupal-7.36-release-notes).
But what if someone is using a core version less than 7.36 and tries using the function? The site would return an error because that function wouldn't exist. But what if someone is using a core version less than 7.36 and tries using the function? The site would return an error because that function wouldn't exist.
@ -55,4 +58,4 @@ Because we need to check for Drupal's core version, we're using the system modul
## External Links ## External Links
* [Writing module .info files (Drupal 7.x)](https://www.drupal.org/node/542202#dependencies) * [Writing module .info files (Drupal 7.x)](https://www.drupal.org/node/542202#dependencies)

View file

@ -1,11 +1,13 @@
--- ---
title: Accessible Bristol title: Accessible Bristol
website: http://www.accessiblebristol.org link: http://www.accessiblebristol.org
featured: true
tags: tags:
- Drupal 7 - drupal
- drupal-7
- accessibility
--- ---
## Modules used ## Modules used
* [Features](https://www.drupal.org/project/features) * [Features](https://www.drupal.org/project/features)
@ -15,4 +17,4 @@ tags:
* [Override Node Options](https://www.drupal.org/project/override_node_options) * [Override Node Options](https://www.drupal.org/project/override_node_options)
* [User relationships](https://www.drupal.org/project/user_relationships) * [User relationships](https://www.drupal.org/project/user_relationships)
* [Views](https://www.drupal.org/project/views) * [Views](https://www.drupal.org/project/views)
* [Workbench Moderation](https://www.drupal.org/project/workbench_moderation) * [Workbench Moderation](https://www.drupal.org/project/workbench_moderation)

View file

@ -7,4 +7,4 @@ nav: accessibility
I have made as much effort as possible to make this website accessible to all users. I have made as much effort as possible to make this website accessible to all users.
If you have any suggestions to improve the site, please [contact me](contact). If you have any suggestions to improve the site, please [contact me](/contact).

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

View file

@ -5,20 +5,10 @@ nav: blog
use: use:
- posts - posts
--- ---
{% block content_wrapper %} <h1>Blog</h1>
<div class="col-md-12">
{% block content %}
<h1>Blog</h1>
{% if data.posts %} <ul>
<ul> {% for post in data.posts %}
{% for post in data.posts %} <li><a href="{{ post.url }}">{{ post.title }}</a></li>
<li><a href="{{ post.url }}">{{ post.title }}</a></li> {% endfor %}
{% endfor %} </ul>
</ul>
{% endif %}
{% endblock %}
</div> {# .col.md-12 #}
{% endblock %}
{% block sidebar %}{% endblock %}

View file

@ -0,0 +1,14 @@
---
layout: default
title: Tags
nav: blog
use:
- posts_tags
---
<h2>Tags</h2>
<ul>
{% for tag,posts in data.posts_tags %}
<li><a href="{{ site.url }}/blog/tags/{{ tag|url_encode(true) }}">{{ tag }}</a></li>
{% endfor %}
</ul>

View file

@ -0,0 +1,23 @@
---
layout: default
title: Tag Archive
nav: blog
generator:
- posts_tag_index
---
{% block head_meta %}
<link rel="alternate" type="application/atom+xml" href="{{ site.url }}/blog/tags/{{ page.tag|url_encode(true) }}.xml" title="{{ site.title }} '{{ page.tag }}' tag feed" />
<meta name="robots" content="noindex, follow">
{% endblock %}
{% block title %}{{ page.title }} "{{ page.tag }}"{% endblock %}
{% block content %}
<h2>"{{ page.tag }}"</h2>
<ul>
{% for post in page.tag_posts %}
<li><a href="{{ site.url }}{{ post.url }}">{{ post.title }}</a></li>
{% endfor %}
</ul>
{% endblock content %}

23
source/blog/tags/tag.xml Normal file
View file

@ -0,0 +1,23 @@
---
generator: [posts_tag_index]
---
<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>{{ site.title }}</title>
<link>{{ site.url }}</link>
<language>en</language>
{% if site.description %}<description>{{ site.description|raw }}</description>{% endif %}
<atom:link href="{{ site.url }}{{ page.url }}" rel="self" type="application/rss+xml" />
<lastBuildDate>{{ site.calculated_date|date('r') }}</lastBuildDate>
{% for post in page.tag_posts|slice(0, 10) %}
<item>
<title>{{ post.title }}</title>
<link>{{ site.url }}{{ post.url }}</link>
<guid isPermaLink="true">{{ site.url }}{{ post.url }}</guid>
<pubDate>{{ post.date|date('r') }}</pubDate>
<description>{{ post.description|raw }}</description>
</item>
{% endfor %}
</channel>
</rss>

View file

@ -2,23 +2,32 @@
layout: default layout: default
title: Contact title: Contact
nav: contact nav: contact
use:
- posts
meta: meta:
description: 'Information about how to get in touch with Oliver.' description: 'Information about how to get in touch with Oliver.'
--- ---
# Contact # Contact
If you find any issues or want to suggest any improvements to the site, you can [create an issue](https://github.com/opdavies/oliverdavies.co.uk/issues/new) on GitHub. If you want to suggest an improvement to a blog post, please feel free to fork the repository and submit a pull request. The best way to contact me is via [email](mailto:oliver+contact@oliverdavies.co.uk?subject=Contact%20Oliver%20Davies).
Email If you have a support or feature request for one of the Drupal projects that I maintain, please create an issue in the appropriate issue queue on [Drupal.org](https://www.drupal.org).
: [oliver@oliverdavies.co.uk](mailto:oliver+contact@oliverdavies.co.uk?subject=Contact%20Oliver%20Davies)
IRC (Freenode) If you want to report an issue or want to suggest any improvements to the site, you can do so on [GitHub](https://github.com/opdavies/opdavies.github.io/issues/new). I'm happy to receive [pull requests](https://help.github.com/articles/using-pull-requests) if you want to suggest a change to piece of content.
: opdavies
Twitter ## Elsewhere
: [@opdavies](http://twitter.com/opdavies)
Drupal.org Here are the best places to contact me online:
: [https://www.drupal.org/u/opdavies](https://www.drupal.org/u/opdavies "Olivers profile on Drupal.org")
* IRC ({{ site.irc }}) - I'm usually in #drupal-uk on Freenode, among others.
* <a href="{{ site.twitter }}">Twitter</a> (@{{ site.twitter_name }})
* <a href="{{ site.drupalorg_nice }}">Drupal.org</a>
* <a href="{{ site.linkedin }}">LinkedIn</a>
## Meetups
Here are the user group meetups that I attend regularly. If you're in the area, feel free to pop along and say hi!
* [SWDUG](http://www.swdug.co.uk) (South Wales Drupal user group)
* [Drupal Bristol](https://groups.drupal.org/bristol-and-west-uk)
* [PHPSW](http://www.phpsw.org.uk)
* [SWLUG](http://www.swlug.org) (South Wales Linux user group)
* [Accessible Bristol](http://www.accessiblebristol.org.uk)

View file

@ -1,10 +0,0 @@
/* TEAM */
Developer: Oliver Davies
Site: http://www.oliverdavies.co.uk
Twitter: @opdavies
Location: Wales, UK
/* SITE */
Doctype: HTML5
Software: PhpStorm, Sublime Text
Technologies: Sculpin, PHP, SASS/Compass, HTML5

View file

@ -1,19 +1,27 @@
--- ---
layout: default layout: default
title: About Oliver
nav: about nav: about
front: true
use:
- posts
meta: meta:
description: 'The personal website and blog of Oliver Davies, a Drupal Developer and Systems Administrator from Wales, UK.' description: 'The personal website and blog of Oliver Davies, a Drupal Developer and Systems Administrator from Wales, UK.'
og:
title: 'Oliver Davies - Drupal Developer'
description: 'The personal website and blog of Oliver Davies, a Drupal Developer and Systems Administrator from Wales, UK.'
type: website
image:
url: http://www.oliverdavies.co.uk/assets/images/oliver.jpg
width: 327
height: 327
type: image/jpg
--- ---
# About # About
Hi, I'm Oliver Davies - a [Drupal](https://www.drupal.org/about) Developer and Systems Administrator based in Wales. I work for the [Drupal Association](https://assoc.drupal.org/about) Engineering team, working on Drupal.org, it's sub-sites and infrastructure, as well as providing part-time freelance services. <img src="/assets/images/oliver-small.jpg" class="img-circle">
I'm an active member of the Drupal and PHP communities - organising and [speaking](/talks/) at user groups and conferences, mentoring at DrupalCons, and contributing code to core and various contrib modules and themes. I'm the Git Documentation Maintainer for the Drupal project and a provisional member of the [Drupal Security team](https://www.drupal.org/security-team). Oliver Davies is a senior level Web Developer and Systems Administrator based in the UK, who was been working online since 2007. Specialising in PHP and open source technologies, Oliver architects and develops websites using [Drupal](https://www.drupal.org) - a powerful content management framework - and [Sculpin](http://sculpin.io) - a static site generator written in PHP.
I also have experience of building websites using static site generators, namely [Sculpin](http://sculpin.io) and [Jekyll](http://jekyllrb.com). Oliver currently works for the [Drupal Association](https://assoc.drupal.org) and also provides freelance consultancy services for Drupal websites and Linux servers.
I have active social media profiles on [Twitter](https://twitter.com/opdavies) and [LinkedIn](https://www.linkedin.com/in/opdavies), and you can view my code on [Drupal.org](https://www.drupal.org/user/381388/track/code) and [GitHub](https://www.github.com/opdavies?tab=activity). In his spare time, Oliver contributes to Drupal core and maintains several contrib modules on Drupal.org, is the Git Documentation Maintainer for the Drupal project, and is a provisional member of the [Drupal Security team](https://www.drupal.org/security-team). He attends, organises and [talks](/talks) at user groups, and volunteers and mentors at conferences. He also is a 2nd Degree Black Belt in Tae Kwon-Do and a Brazilian Jiu-Jitsu practitioner.
Oliver has active social media profiles on <a href="{{ site.twitter }}">Twitter</a> and <a href="{{ site.linkedin }}">LinkedIn</a>, and you can view his code on
<a href="{{ site.drupalorg }}/track/code">Drupal.org</a> and <a href="{{ site.github }}?tab=activity">GitHub</a>.

9
source/robots.txt Normal file
View file

@ -0,0 +1,9 @@
---
permalink: none
---
User-agent: *
Disallow: /_projects/
Disallow: /_testimonials/
Disallow: /404.html
Sitemap: {{ site.url }}/sitemap.xml

Some files were not shown because too many files have changed in this diff Show more