Blog

My blog will be mainly about Drupal, most of the times in English. Maar gaat ook over andere zaken, soms in het Nederlands.

Edit translations with update hook

Sometimes you need to update a translation on mulitiple site installs. In that case it can be useful to use a update hook and a translation file.

The update function

First the update hook.
function modulename_update_N()
The N is the number of the update, see api.drupal.org for more information about this. In the table “system” this number is tracked per module, so it is easy to roll it back to test your update.

Display nodes from multiple domains

Domain Access is a great Drupal module for setting acces to content (nodes) depending on the (sub-)domain.

It has great integration with Views but there a few caveats though, one of them is that it can be quite hard to make a Views display that shows content from multiple domains. There are two options that I know of:

  1. Add a Special Page Request on the Domain Settings page
  2. Disable SQL rewriting

Both have their own merits.

DrupalJam 2012

De 8e editie van de DrupalJam was op 8 juni 2012 in het 4mkb-gebouw te Zoetermeer, hier volgen wat persoonlijke notities over deze conferentie.

Cookiewet

Vanaf 5 juni treedt de “Cookiewet” in werking. Dat betekent dat alle websites duidelijkheid moeten verschaffen over de cookies die geplaatst worden op de computer van de bezoeker en dat die de mogelijkheid moet hebben om cookies te weigeren.

Typekit, non-ascii & IE8

Oh my… shock, horror, what’s going on?
That was my primary reaction when I noticed that in Internet Explorer 8 my website went into compatibility mode when displayed. And that is horror. (Luckily only 10% of my visitors use IE 8.)

What a great conference

Frontend United 2012, at Pakhuis de Zwijger in Amsterdam (great location!) was a very succesfull conference. It’s a very focussed event, on frontenders for Drupal, and that setup resulted in just one major problem: it was hard to choose which session to attend as they all were very interesting.
Here is a personal post about the sessions I attended.