Renamed tags

This commit is contained in:
Oliver Davies 2015-04-11 23:21:27 +01:00
parent 787265c628
commit 8f9c42322f
59 changed files with 186 additions and 184 deletions

View file

@ -5,10 +5,10 @@ use:
- posts - 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

@ -5,11 +5,12 @@ use:
- posts - 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

@ -5,10 +5,10 @@ use:
- posts - 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

@ -4,12 +4,12 @@ nav: blog
use: use:
- posts - 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

@ -5,10 +5,11 @@ use:
- posts - 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

@ -5,12 +5,13 @@ use:
- posts - 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

@ -5,9 +5,9 @@ use:
- posts - 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

@ -5,10 +5,11 @@ use:
- posts - 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

@ -4,10 +4,10 @@ nav: blog
use: use:
- posts - 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

@ -5,16 +5,16 @@ use:
- posts - 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

@ -5,12 +5,13 @@ use:
- posts - 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

@ -5,11 +5,11 @@ use:
- posts - 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

@ -5,12 +5,12 @@ use:
- posts - 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

@ -5,11 +5,10 @@ use:
- posts - 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

@ -5,12 +5,11 @@ use:
- posts - 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

@ -5,15 +5,15 @@ use:
- posts - 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

@ -5,8 +5,8 @@ use:
- posts - 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

View file

@ -5,11 +5,11 @@ use:
- posts - 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

@ -5,8 +5,8 @@ use:
- posts - posts
slug: south-wales-drupal-user-group slug: south-wales-drupal-user-group
tags: tags:
- Drupal - drupal
- Drupal Planet - drupal-planet
- SWDUG - SWDUG
--- ---
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

@ -5,8 +5,8 @@ use:
- posts - posts
slug: create-and-apply-patches slug: create-and-apply-patches
tags: tags:
- Drupal Planet - drupal-planet
- Drupal 6 - drupal-6
- Modules - Modules
- Patch - Patch
--- ---

View file

@ -5,8 +5,8 @@ use:
- posts - 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

@ -4,9 +4,8 @@ nav: blog
use: use:
- posts - 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

@ -5,8 +5,8 @@ use:
- posts - 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

View file

@ -5,12 +5,12 @@ use:
- posts - 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

@ -7,7 +7,7 @@ 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
--- ---
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

@ -7,7 +7,7 @@ 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

@ -5,13 +5,13 @@ use:
- posts - 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

@ -7,7 +7,7 @@ slug: forward-one-domain-another-using-modrewrite-and-htaccess
tags: tags:
- .htaccess - .htaccess
- Code - Code
- Drupal - drupal
- Apache - Apache
- mod_rewrite - mod_rewrite
--- ---

View file

@ -6,8 +6,8 @@ use:
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
--- ---
~~~ ~~~

View file

@ -6,7 +6,7 @@ use:
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

View file

@ -5,12 +5,12 @@ use:
- posts - 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

@ -6,8 +6,8 @@ use:
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

@ -6,7 +6,7 @@ use:
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

View file

@ -6,9 +6,9 @@ use:
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
--- ---

View file

@ -7,9 +7,9 @@ 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

View file

@ -6,10 +6,10 @@ use:
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

@ -5,9 +5,9 @@ use:
- posts - 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

@ -6,8 +6,8 @@ use:
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
--- ---

View file

@ -8,8 +8,8 @@ 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

@ -5,8 +5,8 @@ use:
- posts - 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

View file

@ -5,7 +5,7 @@ use:
- posts - 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

@ -5,8 +5,8 @@ use:
- posts - 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

View file

@ -5,7 +5,7 @@ use:
- posts - 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

@ -6,7 +6,7 @@ use:
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

@ -6,8 +6,8 @@ use:
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

@ -5,8 +5,8 @@ use:
- posts - 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
--- ---

View file

@ -8,7 +8,7 @@ slug: what-git-flow
tags: tags:
- Git - Git
- Git Flow - Git Flow
- DrupalCamp London - drupalCamp London
- Talks - Talks
tweets: true tweets: true
--- ---

View file

@ -4,7 +4,7 @@ nav: blog
use: use:
- posts - 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

@ -4,8 +4,8 @@ nav: blog
use: use:
- posts - 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

@ -6,8 +6,8 @@ use:
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

@ -4,10 +4,10 @@ nav: blog
use: use:
- posts - 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

@ -5,8 +5,8 @@ use:
- posts - 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
--- ---

View file

@ -7,7 +7,7 @@ description: How to use an SASS each loop to easily add multiple fonts to your C
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
--- ---

View file

@ -4,8 +4,8 @@ nav: blog
use: use:
- posts - 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

@ -5,8 +5,8 @@ use:
- posts - posts
slug: pantheon-settings-files slug: pantheon-settings-files
tags: tags:
- Drupal - drupal
- Drupal Planet - drupal-planet
- Pantheon - Pantheon
- settings.php - settings.php
--- ---

View file

@ -5,11 +5,11 @@ use:
- posts - 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

@ -4,10 +4,10 @@ nav: blog
use: use:
- posts - posts
tags: tags:
- Drupal - drupal
- Drupal 6 - drupal-6
- Drupal 7 - drupal-7
- Drupal Planet - drupal-planet
- Email - Email
draft: true draft: true
--- ---

View file

@ -5,8 +5,8 @@ nav: blog
use: use:
- posts - posts
tags: tags:
- Drupal Association - drupal Association
- DrupalCamp London - drupalCamp London
- Personal - Personal
tweets: true tweets: true
--- ---

View file

@ -5,9 +5,9 @@ nav: blog
use: use:
- posts - posts
tags: tags:
- Drupal - drupal
- Drupal 7 - drupal-7
- Drupal Planet - drupal-planet
--- ---
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 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).