Drupal

  • WordPress or Drupal – Which CMS is “better”?

    WordPress or Drupal? Which of the two content management systems (CMS) should you choose? You can’t say that one is better than the other. The question should rather be: what do I need the CMS for and what requirements do I have for the system? Let’s take a closer look at both systems: Both content…

    Read More

  • Add Honeypot to Simplenews subscription form block

    The Drupal Honeypot module (https://drupal.org/project/honeypot) works well out of the box for comments and web forms in nodes. In my case i needed to add the Honeypot spam filter to a Simplenews (https://drupal.org/project/simplenews) newsletter subscription form, which resides inside a block in the sidebar of most pages. The problem here was that if the time restriction feature…

    Read More

  • Improve your Drupal theme markup with body classes

    Since Drupal 6, a lot of the detailed markup as found in the excellent Zen theme framework has made its way into the default Drupal markup. More details about this feature can be found here https://drupal.org/node/163723 To use this feature for your theme just insert the variable $body_classes into your tpl files body opening tag…

    Read More

  • How to create and use a Drupal template (tpl) file

    Template files are used to overwrite the core Drupal output (or the output of a module that overwrites the core Drupal output). This can be for example useful if the layout of a particular content type, page, block or view can’t be easily fixed by a stylesheet. With a tpl file you can completely overwrite…

    Read More

  • Add a custom menu in Drupal 6

    Basic Menu There are three default menus available in a fresh Drupal installation. Primary links – Often used to present the main sections of the website, for example as tabs along the top Secondary links – Often used for pages like legal notices and contact details along the bottom Navigation – Often only visible for…

    Read More