Articles in 2017

15.08.2017

Webforms with Custom Templates in Drupal 7

Webform is basically the standard module for creating custom forms in Drupal. By default Webforms are treated as editorial content and therefore just have an automatically created id (like nodes). However most of the time you want to be able to create forms in a local environment and deploy them to your live website. Today I will explain you how.

16.06.2017

Making a Fixed Header React to Scrolling

Creating a fixed header which dynamically reacts to scroll events isn't that difficult. You don't need a library or any kind of widget. All you need is a few lines of JavaScript and a little bit of CSS. Well... and you need a header element somewhere in your document.

08.03.2017

Automated Drupal Updates using Drush

Drupal updates can be a real pain. Either the update path from one of the modules is broken, you need to reapply a patch for a bug, which still isn't fixed or something else goes wrong. In seven years of Drupal development I basically had it all and I grew so accustomed to it, that I started to do updates one module after another. I also create a separate commit for every single updated module. This way I can revert the update immediately, if something goes wrong. Luckily I found a way to automate this process.

03.03.2017

Use MAMP's PHP Version in Terminal

MAMP is a commercial server stack developed and sold by appsolute. On Mac OS its pretty much the best LAMP stack you can find. MAMP comes as a free version with limited functionality and a fee-based version (MAMP PRO). In MAMP PRO you have some additional features. For example you can easily change the used PHP version and you can also use this PHP version in the Terminal. But with a little script I wrote, this can also be accomplished with the free version.