This snippet adds the entity type id to the html body tag classes when on the canonical entity page.
I've been working on a Drupal 8 Bootstrap 3 site and was wanting to use the spacing utilities that come with Bootstrap 4.
These utilities provide a range of shorthand responsive padding and margin classes:
I'm excited to be discussing migration in Drupal 8 at the next Drupal Cape Town meetup, Wednesday the 27th of February 2019. The broad outline of my talk is:
Riaan Burger from Burtronix spoke on Git workflow and security.
Thanks to him and Amazee for their sponsorship :-)
Riaan's slides available here: http://slides.com/riaan-burger/a-secure-git-development-work-flow
PGP, GPG, GNU.
The first Drupal Cape Town meetup of 2017 took place at the Bandwidth Barn on the 22nd of February 2017.
One of the sites I maintain recently had a server upgrade to Ubuntu 14.04.4, which included a new version of varnish (version 3.05) which required an update to the Varnish configuration. After setting up a new default.vcl file I was monitoring the headers sent and received to make sure that what was supposed to be cached was in fact being cached by Varnish. While testing I discovered that I was not getting any Cache-Control headers from static files like images.
I ran into issues when trying to use drupal's hook_form_alter to change some attributes of cck fields in a node form. It appears that depending on the weight of the module the form_alter is in, it might get called before the actual form element has been processed.
To make sure, you can set a function to be called after the form has been properly created, but before rendering.
In your form alter, add the after build key to the form field's array:
$form['field_course_status']['#after_build'] = 'course_disable_status_field';
Was adapting some views handlers that were used in Open Atrium, and came across a number of places where I saw some strange constants with three stars either side of them, like: ***ATRIUM_ACTIVITY_TIMESTAMP***
This is a guest blog post I did for IS Labs.
I recently created a provider plugin for Drupal's CCK emfield module which allows you allows you to embed a Zoopy video by pasting the url into a cck field:
This is a lot easier than having to copy the embed code provided by Zoopy and paste this into a textarea.
The provider plugin then extracts the video code and displays the video on your Drupal site: