108interactive Blog
Different database details for local, dev & production in Drupal
Posted by Jonny on 02 Apr 2012
Tags: Drupal 7 | multisite | settings.php | staging
When transferring a Drupal site between different environments, it is sometimes necessary to use different database details in each environment. The obvious way to handle this would be to upload your files and then edit /sites/default/settings.php changing the database details. This can get qute tedious and Drupal provides a better way.
Using views to show related nodes in a block
Posted by Jonny on 29 Dec 2011
Tags: CCK | Drupal 6 | intermediate | node reference | views 2
Linking different types of nodes together is easy with node reference fields, but how do you show the related nodes in a block?
This tutorial assumes you have some knowledge of CCK and Views and know how to enable modules and administer blocks.
Creating relationships between nodes is traditionally done using taxonomy terms, but this can be confusing for an end user and requires new terms to be added quite frequently. A easier way to create simple relationships is with CCK and the node reference field.
How to: Uploading your Drupal website
Uploading a Drupal website to a production server can take a long time and can sometimes fail because of the sheer number of files that need to be uploaded, but there is an easier way.
If your hosting provider allows SSH access to your server, you can upload your website as a .zip file and unzip it using Linux shell commands. This is a much easier way to transfer your site as it is compressed, reducing the filesize and you only need to transfer one file instead of several thousand.
How to: Divide an object into thirds in perspective
Posted by Jonny on 02 Dec 2011
Tags: drawing | Illustrator | perspective
When drawing in perspective, everyone knows how to divide a shape in half by drawing diagonal lines from corner to corner to find the centre point, but something I've struggled with is how to divide a shape into thirds?
This is a problem I could never really find an answer to, so I created my own solution; I'm sure this isn't unique but still, it comes in handy!
Where to place vanishing points in perspective
Posted by Jonny on 29 Nov 2011
Tags: drawing | Illustrator | perspective
There are many tutorials around on drawing in two point perspective; we know we must place two vanishing points on a horizon line, but where do we put them?
Organising your Drupal custom theme folder
Posted by Jonny on 28 Nov 2011
Tags: Drupal | efficiency | templates | web design | web development
Creating a custom theme can get messy - it's not uncommon to have 20 or more template files; this can make it hard to find specific files and can be confusing, but there is a better way.

