Merge - blog.merge.nl - Merge Drupal Blog
General Information:
Latest News:
Add class from field value to view mode 2 Aug 2013 | 03:07 pm
Handy for themers to have a field value as class in the section wrapper div classes. For example, if you want admins to easily change the color of a block/node using a dropdown interface.
Importing unmanaged files to Drupal 7 24 Jul 2013 | 02:42 pm
https://drupal.org/node/1961806 Just place findfiles.drush.inc in ~/.drush drush cc drush drush filescan sites/##_SITE_NAME_##/files --import
CKEditor mentions 28 Jun 2013 | 12:22 am
One of our projects is biebtobieb.nl (a large community website for people working in the Dutch library industry). In this project we created several custom modules, and while most of them are too spe...
How namespaces/PSR-0 got in Drupal 8 19 May 2013 | 12:05 am
At time of writing, Drupal 8 is still at least 6 months away. But there are already quite a lot of examples available how things are going to look. One of the things which is going to change is the wa...
disable rule or view programmatically on feature enable snippet 14 May 2013 | 07:28 pm
/** * Implementing hook_post_features_enable_feature */ function myfeature_post_features_enable_feature($component) { // no need to call it for every $component, // so we choose 'features_api' whi...
Manualy overriding default rules and views on feature enable 14 May 2013 | 07:21 pm
Features is a great tool but has its limitiations. For one, you can't easily add stuff like views and rules which are already in code and provided by other modules. Commerce for example extensively u...
DrupalJam 2013 24 Apr 2013 | 02:12 pm
Get your tickets for DrupalJam 2013 (17/5) - the biggest yearly Dutch Drupal event. This year's Drupaljam, located at 'De Kuip' in Rotterdam, will also include sessions 'beyond Drupal' by inspiring pe...
Getting your styles right 19 Apr 2013 | 03:23 pm
Styling done right in Drupal means you need to style the system, not individual pages/designs, allowing for a DRY set of styles which keep your site lean and mean. But it can be difficult to find all ...
Quarter/year custom formatter (datetime) 26 Feb 2013 | 03:23 pm
Showing quarter and year instead of date. This is for a datetime field in D7. /** * Implements hook_field_formatter_info(). */ function MYMODULE_field_formatter_info() { return array( 'FORMATTER_NAM...
Search API: indexing nodes including comments 23 Feb 2013 | 06:59 pm
When you use Search API (and you should because core search sucks) and you want to index nodes with comments you might get stuck because comments are not a related field which is available. This is we...