Skip to main content
ComputerMinds

Articles

Drupal

Drupal security support is getting shorter

From 2027 each Drupal minor version only gets 8 months of security support, down from 12. Read article →

SA-CORE-2018-004

As with every other Drupal agency on the planet, it was another fun evening of frantic patching of client sites last night due to the release of the highly critical SA-CORE-2018-004 security update for Drupal, released on 25/04/2018.Read article →

CTools Path Access plugin

I made a new Drupal 7 module today... the CTools Path Access plugin. It is a very simple module that provides a CTools access plugin for using the access rules of another path.Read article →

Apache Solr boost Drupal search results at query-time

Boosting terms in Solr search results produced by the Apache Solr Search module that integrates Solr with Drupal is something we had to do for a project recently. If a user has come to our website from a search engine, we can pick up the terms that they had originally searched…Read article →

Changing Display Suite fields in update hooks

We've been using Display Suite with Node displays on one of our latest sites. It was an experiment, and possibly not something we'll do again - DS offers some great functionality with build modes and ways to re-arrange fields and all sorts on nodes, but since we end up theming…Read article →

Creating new field formatters in Drupal 7

Creating extra field formatters in Drupal 7 is fairly simple, but it can take some poking around in the new Fields code. So here is some sample code to make it easier for you! You can add formats to your own fields -- or existing fields that are defined by other Drupal modules.…Read article →

Drupal update hooks in a multi developer environment

With large Drupal projects, especially those in their post-live phase, good code and release managment becomes vital. Update hooks provide the mechanism by which database changes can be scripted and deployed to the live server, this article assumes you are already well versed…Read article →

DrupalCamp day 1

A brief summary of some of the cool stuff I picked up from day 1 at DrupalCamp, interestingly most of it wasn't necessarily Drupal related ... day 2 and pics (featuring lots of ComputerMinds lanyards!) etc to follow ...Read article →

Another case of Drupal's sensitivity

If you have a Drupal site with users and you want to allow them to add some profile data about themselves there are a few routes available to you, one of the oldest (and thus simplest) ways is to use profile module. You can add text fields, selects and other bits and bobs to…Read article →

How to capture SugarCRM leads in Drupal

We are big fans of SugarCRM and have worked on a number of projects to integrate SugarCRM with Drupal. This is a simple guide to performing a basic data capture integration between Drupal and Sugar, using a couple of Drupal modules (webform and sugarwebform). You can see an…Read article →

Drupal 6 tinymce button layout problem

We had a problem today with tinymce on Drupal 6, with a large number of buttons enabled the width of the tinymce button area just kept on growing - not prettyRead article →

Drupal image assist force a default alt tag

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)…Read article →

Multilingual views in Drupal when using i18n module

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.Read article →

Drupal 6 is released - hoooooray!!

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,…Read article →

Drupal themeing : Adding active class to the Drupal primary links

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 linksRead article →

Drupal 5.6 bug affects prevents saving of HTML filter settings

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 tagsRead article →

Force the user to select a leaf item in the Drupal taxonomy

Its a tricky Drupal taxonomy problem this one, imagine you have just set up your taxonomy to represent types of web sites:Read article →

Query string in drupal menu items

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…Read article →

Remove the image assist icon from Drupal textareas

This small theme override will allow you to select which Drupal textareas the image assist icon will appear onRead article →

Mod rewrite rules and querystring parameters in Drupal

Just a quick one this, and not strictly Drupal related - but might save you some time when you are writing modrewrite rules to rewrite legacy URLs.Read article →

Allowing HTML in Drupal menu items

You have to be a little careful with this one, but there are many times when in would be very handy to have HTML in your Drupal menu items. For example, you might want your Drupal menu to have a <br> to force a break, or perhaps insert a <span> around some content to get a…Read article →

Allowing unfiltered content on the Drupal contact page

The contact page exposed by the Drupal contact module is great, it allows you to put together a contact form quickly and easily. But there is one small(ish) problem, the header text for the form is being filtered - which prevents you from using certain tags (for example embed).…Read article →

Customising the Drupal search block form

The Drupal search block form is one of those things that gets used in most themes, and frequently needs a bit of themeing to bring it in line with your target design.Read article →

Drupal - Fatal error : allowed memory size exhuasted

One of the classic Drupal problems that catches a lot of newbies out is the memory error exhausted error. Typically you get this on the modules page - but it could appear almost anywhere.Read article →