Drupal Planet

Drupal Planet

Creating a Node View Which Bypasses Access Restrictions

Posted by stella on Sun, 2010-05-23 23:02 in

First of all a disclaimer, part of the intention of this blog post is to see if anyone else has a better solution. This is something I came up with but I'm not entirely happy with the solution as it involves running the sql query twice. :(

Migrate module: migrating a node's taxonomy terms

Posted by stella on Wed, 2010-03-10 10:42 in

One of the issues I encountered when migrating nodes to Drupal, using the migrate module, was that I couldn't associate nodes with more than one taxonomy term. Actually in this example, I'm migrating content from one Drupal database to another, so I'm going to assume everyone is already familiar with the database structure, specifically the node and term_node tables.

Migrate module: migrating poll nodes

Posted by stella on Thu, 2010-03-04 17:07 in

Currently the Migrate module doesn't support full migration of poll nodes. When the poll module is enabled, you can create a content set mapping for a poll node, but you are unable to set the poll status (active or closed) and, more importantly, you can't migrate the poll choices.

Using the hook_migrate_prepare_node() and hook_migrate_complete_node() hooks, I was able to migrate all choices for each node, along with all existing votes stored.

Image FUpload: A Multi-Image Upload Module for Imagefield

Posted by stella on Thu, 2009-12-31 15:48 in

The Image FUpload module is an add-on to the Image and CCK's Imagefield modules, and allows you to upload multiple images at once with just a few simple clicks. You can use it with both single-value and multi-value imagefields, and it will automatically create the nodes for you.

New module: Views Two Column Table

Posted by stella on Fri, 2009-12-18 20:09 in

For a project I've been working on recently, I needed the ability to have a two column table layout in Views. The idea was to place the field label in the first column, and the field data in the second. I had tried achieving the same layout using the unformatted default layout with some CSS, but was unable to get the label and field data to line up correctly, and so eventually wrote a views plugin to achieve the effect using tables.

The screenshot below shows what the final result looks like.

Example layout
Example layout

Project page: http://drupal.org/project/views_two_column_table

New releases for FAQ - 6.x-1.9, 5.x-2.13

Posted by stella on Tue, 2009-11-24 19:02 in

New releases of the FAQ module have been made - versions 5.x-2.13 and 6.x-1.9. This release includes a fair few new features, including the ability to drag and drop questions when re-ordering and a new "administer faq weights" permission. There are also a number of bug fixes too.

The new features added include:

  • #390404 - added [faq] input filter.
  • #475600 - added "administer faq weights" permission, and moved weight ordering tab to each individual FAQ page.

Drupal 6 release of Ocadia theme - finally!

Posted by stella on Sun, 2009-11-22 13:54 in

Over a year and a half after Drupal 6 was released, I've finally gotten around to releasing a Drupal 6 version of the Ocadia theme. The design is based on a Wordpress theme done by Beccary and subsequently ported to Drupal 4.7 by Scar_T. I came on-board after creating a Drupal 5 version of it for one of my friend's websites, Irlandia Ceramics.

Book Review: Drupal 6 Search Engine Optimization

Posted by stella on Tue, 2009-11-17 18:58 in

Cover: Drupal 6 Search Engine Optimization
Cover: Drupal 6 Search Engine Optimization

I don't get asked to review books often, so I was delighted when I got asked to review Drupal 6 Search Engine Optimization by Ben Finklea, it being top of my list of Drupal books to buy. Search Engine Optimization, or SEO, is all about improving your site's position in search results. It's part science, part art, and involves a lot of small, but simple, improvements to your website. An important SEO skill is knowing what keywords to use for your site and how to avoid common mistakes that could have a detrimental effect on your site's ranking. This book does an excellent job at explaining just that and includes great advice and step by step instructions.

The book assumes you're a Drupal newbie, which I was a bit surprised by at first. I wasn't really expecting to see instructions on how to install a Drupal module, but this approach is used throughout the book and is a strong selling point. It takes the magic out of SEO so everyone, regardless of skill level or familiarity with Drupal, can achieve the most from their site.

Ubercart: modifying checkout panes

Posted by stella on Tue, 2009-11-03 11:56 in

The Ubercart module is one of the best e-commerce options for Drupal currently. It is very user friendly and highly flexible with administrators having control over the product catalogue, payment gateways and email notifications. Site administrators also have control over which checkout panes are displayed during checkout and the order in which they appear. However, as I found out recently, while it is easy to control checkout pane visibility, and even add your own, there's no simple way of modifying the forms contained within a checkout pane. This article will cover one solution on how to overcome this.

Migrate module: file handling

Posted by stella on Tue, 2009-10-27 19:31 in

UPDATE: In the latest version of the migrate module, the hook names have changed - the word 'destination' has been removed.

So you're migrating pages and users from another CMS to Drupal using the Migrate module, but how do you handle all those file attachments? This example will cover taking the input filename and adding it to an imagefield on a Drupal content type. However, this should work in exactly the same way for filefields too.

Syndicate content