Drupal Howtos

A how-to is a short description of how to accomplish a specific task. This is a compilation of Drupal related howto's which I provided to friends or which I applied myself. Targeting the Drupal beginner they provide simple and detailed step-by-step descriptions with pictures.

Drupal Tokens: How to remove the line-breaking paragraph tag <p> from tokens used within nodes

Tokens are simple strings of text that serve as place holders for an as of yet unknown dynamic value. Tokens allows you to use small place holders to automatically complete tasks. To take a simple example, if you put [site:name] on your site, it will be replaced by the actual name of your site. To take a more complicated example, you can use Token together with the Pathauto module to automatically create URL patterns for your whole site.

Meta tags not showing on Drupal front page

If you are using the Drupal Metatag module it might happen, that the meta tags are not shown on the front page despite the fact that you defined them with "Global: front page". And this happens while they are shown on all the other pages.

Show related nodes in a block based on taxonomy terms with views

You want to show a related nodes to the current node in a block using taxonomy terms?

There is an excellent article giving a step-by-step guide for Views 3 and Drupal 7 on http://www.metachunk.com/blog/adding-related-content-view-drupal-7. Really easy and comfortable!

Here’s a modified copy:

Show related nodes in a block based on taxonomy terms with Drupal views

How to make the Drupal superfish menu work properly with the Drupal theme MD Alpine (7.x-2.6 )

The Alpine theme from Megadrupal (7.x-2.6 ) is supposed to work with the Drupal superfish menu. The installation and configuration works smoothly. But although the configuration instructions under http://megadrupal.com/forum/theme-support/alpine/514 are followed there is a very significant problem: The submenu only opens on click. Okay, this is a matter of taste. But the problem is, that the main menu link isn't working. The link is there and it even can be opened in a new window, but it doesn't open on click.

How to change the title of the Drupal Blog page?

Surprisingly there is no option in the admin interface to change the title of the blog page which is generated by the blog module. Though you can change the title by changing the menu link. But sometimes you probably want to keep the menu link, but change the blog title or you want to have different titles in the menu and on the page. If so you can change the title by editing the blog module. This is not a very proper solution, but it is apparently the most efficient. Don't forget to log this change, because with an update of the blog module you will loose this change.

How to troubleshoot blank pages or "white screen of death" (WSOD)?

Occasionally a site user or developer will navigate to a page and suddenly the page content disappears, and it becomes blank (White Screen of Death or WSOD). This happens sometimes, It could happen after updating a module, theme, or Drupal core. There are several reasons why this might occur, and therefore several possible solutions to the issue.

Drupal Performance Optimization: How to speed-up your Drupal website?

Drupal performance optimization is apparently a very complex and tricky thing. To address 100% of the potential in-depth knowledge about many things is needed. On the other hand our experience has shown, that you can very easily address around 80% of the optimization potential by 3-4 very simple measures:

1. Activate standard features caching, compression and aggregation (10-25%)
2. Optimize images (5-40%)
3. Install and configure the ADVAGG module (-10%)
4. If you have slow server response times: Change the hosting company (5-25%)

Speed optimization

How to import multiple files/images into one field with Drupal feeds tamper

I tested the D7 version.

1) Install and turn on the Feeds Tamper module
2) Go to admin/structure/feeds and select tamper for the importer you want to apply it. Add the plugin explode for the multiple value fields
3) Make sure to have separator to be "," instead of ", " (there's an extra space after , ) when you export from either CVS or services views. This is important, because it'll break file enclosure file handling.

How to make CSS modifications the proper way

If you make CSS modifications in the style.css, they will be overwritten if you install a new version of a theme. To avoid such problems it is recommended to make modifications in an alternative .css file.

Creation of local CSS file


Drupal themes to be compared