My first trip to a DrupalCon is just about to start!
The yearly DrupalCon Europe is held in Amsterdam from 29th of September to 3rd of October 2014. There are a lot of sessions to be seen, wide array of sprints, social events and much more.
Sometimes you just need to get your hands dirty and start adding Drupal Commerce products programmatically. Luckily that is not that hard of an thing to do.
Drupal has a block called "Language Switcher", which displays links to different language versions of the current page/node. If the node does not have translated version on the specified language, the block will not display a link for it. This can cause some confusion, since the user always expects to see links to all of the site's languages.
This can be fixed by modifying the block so that the all of the links link to the corresponding language's frontpage. It is easy to do by editing the site's theme.
From time to time, there might arise a situation where you want to password protect your Drupal site. Maybe the site is under development, or you just want it to be available to a selection of users.
This is usually done with something called "HTTP Basic Auth", which allows you to password protect a site. This can be done in Apache by modifying the .htaccess file.
There are some great tutorials on how to do this, but this is not the correct way of doing it for couple of reasons.
It has happened to all of us. You mistakenly remove a module directory or migrate your site and forget to include some necessary modules. This causes your Drupal site only to show the WSOD and perhaps the following error:
If you have your product categories-vocabulary in a menu, Drupal Commerce can't by default activate the active-trail when viewing a product node. This can be bad UX, since user has to remember from which category he came to the current product.
One of the first things I usually need to do when installing a new Drupal site, is to change the settings in the new (version>4) CKEditor so that I can type classes and ids and not have them strip out.