328 Results
  • Latest
  • Oldest
Article
Posted on 15th April 2008
Takes about 1 min to read

A rather obscure one this, but we found a problem today on one of our Drupal sites with the filter form on the node admin screen (admin/content/node). Changing the filter settings on the form had no effect, which prevented you from filtering the list of nodes. We tracked the solution down to the $_SESSION array being cleared between page reloads, and a quick google pointed the finger at the Remember me module. Disabling the module...

Published in: #Administration #Drupal Planet
Article
Posted on 12th April 2008
Takes about 1 min to read

We are in the process of putting together a large (20k products) store with ubercart and ran into some performance issues due to the hook_forms implementation. The problem obviously is that a form is being registered for each product regardless of if that product is being displayed or not. This is a bit unnecessary, so our solution was to do the following : comment out the hook_forms implementation in uc_product write a little module that...

Published in: #Drupal Planet #ecommerce #ubercart
Article
Posted on 12th April 2008
Takes about 1 min to read

The Drupal admin interface allows you to delete up to 50 nodes at one time, which is great - but there are times when you it's just not enough and you need to bulk delete many thousands of nodes. In this example we will delete all nodes of a particular type (page), a quick way to execute the code is to create a new node, set the input format to PHP, paste the code into...

Published in: #Drupal Planet #node
Article
Posted on 8th March 2008
Takes about 1 min to read

We make heavy use of the Drupal image assist module (or img_assist as its known) - but find that its handling of empty alt tags is quite poor. The problem being that if when inserting the image the user does not specify a caption or description then the alt (and title) attributes are both empty. This is clearly not ideal on a modern standards compliant site - luckily the solution to the image assist alt...

Published in: #Drupal #Drupal Planet
Article
Posted on 1st March 2008
Takes about 1 min to read

Building multilingual sites in Drupal using the i18n module always throws up a few fun problems to be solved. One of the most awkward being views. The i18n views integration module does an excellent job of allowing you to return only nodes matching a particular language, but it doesn't help when it comes to translating the view itself - and more importantly allowing a view to site nicely into multiple positions in the menu (one...

Published in: #Drupal #Drupal Planet #Drupal views
Article
Posted on 13th February 2008
Takes about 1 min to read

Well, it's finally happened - the brand spanking new Drupal 6 has been released into the wild. We have been playing a lot with Drupal 6 and getting ourselves quite excited (finally drupal_execute has decent return values, and the menu system feels a bit less 'brutal'). However, while we would love to start building client sites on it there is one major omission - the views module. Suffice to say there have been many discussions...

Published in: #Drupal
Article
Posted on 29th January 2008
Takes about 1 min to read

This little snippet lives in your phptemplate_variables function and will set a useful 'active' class alongside the not so useful menuid-active class which Drupal assigns to the active primary links foreach($vars['primary_links'] as $key=>$link){ if (strpos($key,'-active')){ $vars['primary_links'][$key]['attributes']['class']='active'; } }

Published in: #Drupal #Drupal Planet
Article
Posted on 26th January 2008
Takes about 1 min to read

Just flagging this as a bit of an issue - it appears there is fairly serious bug in the version of the filter module provided in Drupal 5.6 which prevents you from saving changes to the allowed HTML tags A patch is available on drupal.org but it's quite well hidden! Post number 7 in this thread contains a working patch http://drupal.org/node/208700 An alternative solution is to download the 5.x HEAD http://drupal.org/drupal-5.x-dev) and take the version...

Published in: #Drupal #Drupal Planet
Article
Posted on 21st January 2008
Takes about 1 min to read

Its a tricky Drupal taxonomy problem this one, imagine you have just set up your taxonomy to represent types of web sites: Drupal based Sites Drupal based ecommerce Standard CMS site Social Networking Site Joomla based Sites Simple one page site You set up your node type 'site', and set the vocabulary to apply to it. You create your first site and pop it into the 'Standard CMS site' category, you create another in the...

Published in: #Drupal #Drupal Planet
Article
Posted on 20th January 2008
Takes about 1 min to read

This was written in response to a post on drupal.org regarding query strings in drupal menu items. Currently if you create a drupal menu item linking to an external site with a querystring then this will render correctly. However if you try and use a relative URL (i.e. an internal link) then your querystring will be escaped and the URL won't work. This override lives in your template.php file and parses all your menu paths...

Published in: #Drupal #Drupal Planet