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. :(
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
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.
hook_migrate_complete_node() hooks, I was able to migrate all choices for each node, along with all existing votes stored.
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.
Project page: http://drupal.org/project/views_two_column_table
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:
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.
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.
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.
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.