DrupalCon London Individual sponsor

I just signed up for a individual sponsor package for DrupalCon London. It's just 65 pounds and I feel it's the least I can do for the community for all the help I have received over the years.

My company, Happiness, will probably make a bigger commitment but if you have the money, go for it!

Switched from Wordpress to Drupal

Today I migrated this site from Wordpress to Drupal. Nowadays I mostly do programming related to Drupal so it seemed like the right thing to do. The content migration went smooth using the Drupal modules Feeds and Feeds XPath Parser.

Applications on a fresh install

I recently bought a new Mac, a Macbook Pro to be precise. I spent a couple of hours last night setting in up and I thought it would be nice to document what went into this fresh install. So here goes.

Avoid Drupal theme file cluttering

A Drupal theme may consist of several template overrides. These files are usually stored in the themes root folder. For a simple theme, this is not a problem but if you are coding a complex theme with lots of overrides of views and cck templates it starts to get pretty cluttered in your themes directory.

Widgets, a Drupal module

Widgets is a module that enables a site editor to, on a per node basis, select "widgets" that should be displayed when viewing a node. A "widget" in it's simplest form is just a regular node (page, story etc) but the power of the module is that you can create custom content types (with CCK) to use as "widgets". You could say that Widgets brings the power of the block right into the node edit form.

This module was developed by me and sponsored by Happiness.

Drupal Flickr Photoset block module

I have previously written about creating photo galleries using the Flickr Field module. Before I came up with the solution described in the post Drupal Flickr gallery using Flickr field I developed a Flickr Photoset block module. Since I'm not going to use it nor contribute it to the Drupal contrib repository I thought I at least upload it here put it on GitHub so that anyone that might be in need of a Photoset block can use it.

Drupal Flickr gallery using Flickr field

With the Flickr module you can display images from Flickr in various ways. On thing you can't do out of the box is to display a perticular photoset with multiple thumbnails. Say you have the content type news and every news item is associated with a perticular Flickr photoset. When viewing the news item you want to display the photoset below the node body.

The Drupal module jungle

Drupal is a great CMS, during the time I have spent working with it I have come to love it. However, for an emerging Drupal developer the abundance of different modules can be a real hassel. Sometimes you need third party modules to perform simple tasks, such as getting the breadcrumb trail to work properly or to display a simple menu. Below you will find a list of modules I find indespensable when developing a Drupal web site. I have left out the modules Views and CCK since they are so vital to developing a Drupal site you are probably already using them.

Dining in Phuket, Thailand

I recently got back from a two week holiday to Phuket, Thailand (actually this post has been in the draft stage for over a year). During my stay in Patong Beach, the number one turist trap on the island, I visited several restaurants. As one might expect, there are hundreds of restaurants in Patong, many located near Beach road, the main road running next to the beach, and some hidden away on the second floor of some obscure pub.

Reading a XML processing instruction with PHP

I'm doing some XSL transformations in a project I'm involved in right now. The XML documents that are beeing transformed all include a xml-stylesheet processing instruction that I need to read in order to know what stylesheet to use for a specfic document. To my surprise, reading processing instructions from a DOMDocument in PHP was not so easy as one might assume.

Pages

Subscribe to Peter Törnstrand RSS