Skip to main content
ComputerMinds

Articles · Page 12

Notes from the team.

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 →

Goodbye Throttle module

Last month Drupal 7 made it's first stable release and we have leapt at the opportunity to make use of it in the redesigning and rebranding our website. There are loads of exciting things in Drupal 7, bringing flexibility, convenience and even better performance through…Read article →

Quick tips: Removing $title and $breadcrumbs in Drupal 7

In Drupal 6 you could get hold of and manipulate all the variables available to a given template file in a preprocess function, within your themes template.php, such as template_preprocess_page() for the page.tpl.php. This was a handy way of, say, conditionally removing the…Read article →

Trawling through the archives - ComputerMinds in 2005

The waybackwhenmachine is a wonderful and scary thing, and we have unearthed a couple of particularly special newsletters from 2005 ...Read article →

ComputerMinds website browser statistics

Not the most exciting of articles this, but thought I would share the browser stats for the ComputerMinds site - given less than 8% of traffic is coming from IE I think you can probably draw some conclusions as to the type of visitor we get :)Read article →

Dynamic forms in Drupal 7

When building forms, you will often want to only provide certain options if other options are chosen by a user. For example, there's no need to show the 'open link in new window' checkbox, if the 'make this into a link' checkbox hasn't been ticked. These kinds of dynamic forms…Read article →

Drupal roles : Programatically Adding a role to a user in Drupal 7

It used to be a bit of a chore to add a role a user in Drupal, but no longer!Read article →

Certified to Rock field

Certified to Rock is a site that allows you to look-up Drupal.org user names, and see their 'certified to rock' score.Read article →

Email Logging in Drupal

There are a number of scenarios where you might want to log email being sent by Drupal; perhaps locally during development or for urgent debugging on a live site. There are a number of options available for Drupal email logging, and this article will cover four of the most…Read article →

Using CTools for form item dependency / visibility

One of several helpers included in the ctools module, ctools dependency is described on the module page itself as "a simple form widget to make form items appear and disappear based upon the selections in another item". It's designed to make it easy and quick to hide/show form…Read article →

Getting Aegir to provision a lot of sites

There may be better ways to do this, but suppose you want to get Aegir to provision a lot of sites, maybe from a list you've got in CSV file, then you can now use Feeds!Read article →

Views data exports

Views is the king in Drupal land when it comes to making lists of your data, rightly so, it does a wonderful job of making it easy to choose the data you want to list. It also allows you to render your list in various forms, lists, tables. RSS feeds or even jump menus. So if…Read article →

Facebook like views integration

Facebook is rapidly taking over the planet, and Drupal is arguably trying to do the same. Facebook added the concept of 'liking' a webpage to their array of social tools a while ago. Drupal modules quickly added the ability to 'like' content on your site.Read article →

Aegir HTTP basic authentication

Aegir is a system for managing sites using Drupal and drush. We use it to manage this site in fact.Read article →

Removing that pesky trailing slash

So, it's perfectly valid to visit a site using a URL like:Read article →

ComputerMinds sponsor the BMF Bastardos

ComputerMinds are proud to announce an exclusive shirt sponsorship deal with the BMF Bastardos "elite" touch rugby team. Playing in the Bristol touch league the Bastardos had a successful first season picking up the coveted wooden spoon ... luckily there is no proven…Read article →

Hiding empty Panels panes

If you're using Panels to display dynamic content, you might want to dynamically check whether to display the panes based on what will be shown. For example, if there is no content to show in a certain pane, you probably don't want the pane to show at all.Read article →

ComputerMinds - move into new premises

ComputerMinds have moved!Read article →

Views caching

A little while ago I blogged about views content cache as a way to increase performance of your Drupal site. Today I released version 2.2 of the module, that adds lots of lovely features.Read article →

Drupal(Vol)Con 2010

Computerminds were due to attend the latest DrupalCon over in San Francisco, however Eyjafjallajokull had other ideas. With planes grounded and Europe at a standstill (in the air) we couldn't make it.Read article →

Automating boring tasks with Selenium IDE

If you need to perform the same repetitive task on a bunch of nodes you can script the operation using PHP, but sometimes it can take a long time to write and test the PHP and even then you have to get the script to the server and execute within a certain time etc.Read article →

Nodequeues for developers

Nodequeues are a really useful way of building ordered lists of content and they integrate amazingly with views and have quite a nice interface for adding/removing nodes. Out of the box you can create queues and choose node types that can be added to the queues, and roles that…Read article →

Hudson and Simpletest

We've recently set up a Hudson Continuous Integration build server to help us with testing our sites. We got selenium up and running fairly quickly, it installs and tests all the sites and Hudson has aplugin to report the results from selenium tests. But we also wanted to run…Read article →

Using Drush export content type, and views

We're not sure what to do with these: we've written two simple Drush scripts for exporting content types and views. Saving us from having to navigate a few pages and precious seconds.Read article →