328 Results
  • Latest
  • Oldest
Article
Posted on 10th December 2007
Takes about 1 min to read

There are times when it's necessary to add some additional markup to a particular menu item, for example a link to DrupalMinds might need a strong tag around the Drupal portion. This can be achieved in a couple of ways, both using a very similar theme override. Option 1 The first method is to allow HTML in the title of all menu items - while this is nice and easy, it does mean that you...

Published in: #Drupal #Drupal Planet
Article
Posted on 7th December 2007
Takes about 1 min to read

File this one under "slightly annoying but can't be helped", after a fun day of upgrading sites to 5.4 we find that 5.5 has been released! Fixing a fairy hefty bug in the taxonomy term RSS feeds introduced by 5.4 you can't really not upgrade ... at least we know what we will be doing today :)

Published in:
Article
Posted on 6th December 2007
Takes about 1 min to read

A quick one that came up today, we all know about the login redirect module, which automatically redirects the user to a specific page when they login ... but what about at logout? Its a common scenario, you want to display a nice 'come back soon' message when one of your lovely users does the unthinkable and logs out. One solution would be to create a new module, implement hook_user and then invoke a drupal_goto...

Published in: #Drupal Planet
Article
Posted on 5th December 2007
Takes about 1 min to read

Its been a day for Drupal releases. The most important for our clients is the release of Drupal 5.4, which fixes a possible SQL injection vulnerability (its one of those obscure ones which shouldn't affect too many people hopefully). More exciting for us developers is the release of Drupal 6 Beta 4 (download, play, test and submit bugs people!), there can't be many more betas before the big day ...

Published in:
Article
Posted on 5th December 2007
Takes about 1 min to read

Well, who would have thought it - the tiny village of Barrow Gurney is busy making tech news! http://science.slashdot.org/article.pl?sid=07/12/04/2148215

Published in:
Article
Posted on 5th December 2007
Takes about 1 min to read

We are excited to get the chance to work with the guys down at companyX on a number of exciting Drupal projects. We can't go into too many details yet, but watch this space ...

Published in:
Article
Posted on 30th November 2007
Takes about 1 min to read

By default the Drupal event module will provide a nice calander block, listing the days of the week accross the top using 3 letter abbreviations (mon, tue etc). This little theme snippet will override this default behaviour and display the first letter of each day of the week (i.e. M T W) etc. Pop the following into your template.php file and you should be in business function phptemplate_event_calendar_month($op, $header, $rows, $attributes = array(), $caption =...

Article
Posted on 13th November 2007
Takes about 1 min to read

TinyMCE has a habit of popping up right where you don't want it - the log field on a node edit page is a good example. Lucklily it is a relatively easy job to theme out tinymce for a particular textarea. The following theme override should go into your template.php file function phptemplate_tinymce_theme($init, $textarea_name, $theme_name, $is_running) { switch($textarea_name){ case 'nodewords-description': case 'edit-nodewords-description': unset($init); return $init; break; default: return theme_tinymce_theme($init, $textarea_name, $theme_name, $is_running); } } Just...

Published in: #Drupal #Drupal Planet
Article
Posted on 8th November 2007
Takes about 1 min to read

One of the most annoying things about developing a Drupal theme is the lack of an 'active' class on your primary links. By default the primary links are given a class of menu-X-Y-Z-active if they are active. From a theming point of view, this is next to useless, you need a nice standalone active class on your primary links. So - here is a very simple snippet for your template.php file ... function _phptemplate_variables($hook,$vars){ if...

Published in: #Drupal
Article
Posted on 8th November 2007
Takes about 1 min to read

We have had a few sites recently on which TinyMCE was playing up on narrow themes. The buttons where not breaking onto new lines, causing the TinyMCE textarea to be much too wide. We solved the problem with the following snippet of CSS .mceToolbarTop * { float:left; } .mceToolbarTop select { width:auto!important; } .mceToolbarTop option { float:none; }

Published in: #Drupal #Drupal Planet