Skip to main content
ComputerMinds

Articles · Page 11

Notes from the team.

Migrate sites from one Aegir to another

We recently needed to migrate all our sites on one physical server to another server, there were more than 200 sites, and they were all hosted with Aegir. The old server was to be decommissioned, so we had to move all of Aegir's data about the site to the new server import into…Read article →

Our top Drupal modules of 2011

As the year draws to a close we thought it would be appropriate to look back at an exciting year in for Drupal modules, and to list our top 5 Drupal modules of 2011. To qualify for the list the module had to have it's first release in 2011, and have a Drupal 7 version - other…Read article →

Rendering Drupal 7 fields (the right way)

(We have a Drupal 8 version of this article now too!)Read article →

Quick tips: Adding an existing project to a drupal.org sandbox

Most projects start with you trying out something locally, getting it working and then after some initial testing you might then want to publish the project on Drupal.org. Sandboxes are a great way to throw up some code and the perfect place to pop random code that others might…Read article →

Drupal node load references : Drupal 7

In Drupal 6, if you called node_load then what you'd be returned would be your own copy of the node to change and modify as you pleased, but in Drupal 7 this was changed. By default, what you actually get back from a node_load is essentially a reference to a global singleton…Read article →

Multiple conditions for dynamic forms in Drupal 7

Here's a quick follow-up to my original post on Dynamic forms in Drupal 7, as a reply to Wappie08, who asked me about combining conditions in the #states array to add increased control over the display of your form elements. The question:Read article →

Setting up a Drupal API site for module developers

The code that runs http://api.drupal.org is of course Drupal, and it is essentially just scanning the code it's told to and displaying it in a nice format. You can quite easily set up your own API site that you can use to scan your own custom code, or if you're a module…Read article →

Adding the new google plus one (+1) button to your Drupal site

I am sure someone will roll a module very soon, but in the meantime I thought I would blog about our first experiences in adding the plus one button ...Read article →

ComputerMinds become Silver sponsors of DrupalCon London

We are all very excited about DrupalCon coming to London (well London-ish - http://london2011.drupal.org/conference/venue ) - and now that we are Silver sponsors we are literally jumping for joy ... now we just need to think of something to put on our very own exhibitor table ...Read article →

Drupal database prepared statements

Drupal 7's database layer is awesome, it is built upon PDO and one of the great things about PDO is named placeholders, they allow you to build queries like:Read article →

Facebook share links - controlling the data sent

Not strictly a Drupal post this, but something that I was playing with yesterday that I was really struggling to find any documentation on. We wanted a simple "share" on facebook link, we didn't want to go through the process of creating an app and using the opengraph API -…Read article →

Storing data in Aegir

Aegir is a very clever Drupal hosting system built using Drupal and Drush. It is divided into two parts: the frontend and the backend. The frontend is essentially just a standard Drupal site that stores its data in the database and then some drush scripts that manipulate the…Read article →

Aegir tasks daemon

Aegir is a very clever hosting system for Drupal that sites and provisions them on various servers and does lots of clever things. One of the clever things that it has had for a while is a task queuing system. You can ask Aegir to lots of different things all in one go, and…Read article →

Setting default drupal theme during installation : programatically install a drupal theme

Here's a quick post that will be a reminder for us as much as anyone else! Setting the default theme during installation using an installation profile is surprisingly hard in Drupal 6, and easier though not obvious in Drupal 7. In Drupal 6, we used the wonderful Install Profile…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 →

Playing second fiddle

While at Drupalcon I couldn't help but want to get involved in core development of Drupal. I have been involved on the fringe of Drupal core development for a number of years, and I've found bugs, submitted patches, tested others' patches, fixed others' patches and contributed…Read article →

Drupalcon Chicago - Core conversations - Content vs Configuration

Drupalcon Chicago had a track for 'Core conversations' that were discussion focused and about the future of Drupal core.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 →

Drupalcon Chicago - Keynote - Dries Buytaert

Dries kicked off another Drupalcon today by giving his keynote presentation to the community. If you missed it then you can view it on the Drupalcon website but read on for my summary and thoughts.Read article →

Using project mercury/pantheon for hosting a Drupal site

We have been using mercury/pantheon to host sites for a while now, we love the fact that you can get a fully configured Drupal hosting environment with all the trimmings for very little work. Specifically we have been using linode for our actual hosting, they are well priced,…Read article →

Quick tips: Inspecting a Solr Document

Another quick tip here: if you're working with the Apache Solr module, specifically looking at the documents that are being created from your nodes, and you want to print out the document and have a look at what fields and values are on your $document then if you did this:Read article →

Drupal publishing queues

Have you ever wanted to create a 'queue' of content that would be published at a regular interval? I have.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 →

Drush make, Aegir and Dropbox

These three tools (drush make, Aegir and Dropbox) have come together to produce a release system that means I don't have to ssh into a remote server to deploy a new version of site. This means that I can do releases really, really simply, and actually with nothing more than a…Read article →