If you have your own Drupal site for a while, and you want to add or update the tags of your content, you have to edit every single node and update the tags by hand. This is a rather tedious job.
So you have this Drupal theme project you're working on, and you wonder where to start. This blog post tries to assist you in this endeavor. It assumes you're working with the default template engine: PHPTemplate.
First, let's zoom into how Drupal processes a theme. Most theme related information is stored in files in the theme directory. Usually, the
my_theme theme files will reside in
sites/all/themes/my_theme. An overview of typical files you will encounter in the theme directory:
Drupal has literally hundreds of plugins (modules and themes) to choose from. After having set up quite some Drupal environments I start to find a couple Drupal administration modules particularly useful. Most are lightweight, and all are quite useful:
After a way too long hiatus (which was mainly due to a remodeling job that took longer and became more extensive than anticipated) I finally took the time to update the website engine (Drupal and assorted extra modules) to the most recent version. This should make it less vulnerable to external threats. Fortunately most spammers are already caught by Mollom, although I had to handle 2 uncaught spam comments in the past week.
Opening up a public website to allow people to comment is a risky endeavor nowadays. Vandalism and ‘blog spam’ can be very labor intensive to cure after an attack. Fortunately there are a couple products and services that help in fighting this Digital Evil through machine parsing.
One of Drupal's key success factors certainly is its huge collection of modules. However, the sheer number of developed modules does not ease your search for extra functionality. In addition, sometimes the same functionality is provided by more than one module. Probably you'll like DrupalModules.com: on this site you can conveniently search for modules, restrict your search to a specific Drupal major release, choose between similar modules based on reviews...
Although many hosting providers now offer hosting packages with PHP and MySQL, most do not offer cron functionality, i.e. the possibility to schedule tasks. The simplest way to set up these scheduled tasks within Drupal is by means of the Poor Man's cron Drupal module. Once installed it will check whether cron must be run whenever your Drupal site is visited.
Some Drupal themes provide their own menu system instead of Drupal's built-in primary links menu. When enabling these fancy menus, your Drupal site may end up with two menu systems instead of one. In order to get rid of the primary links menu, you need to disable it:
- Log in with “administer menu” privileges.
- Navigate to to administer » settings » menus (admin/settings/menu) and set ‘Menu containing primary links:’ to ‘No primary links’. Repeat for the secondary links.