Drupal Tips and Tricks

The installation, configuration and the work with Drupal obviously brings some challenges. Within this section you find some Tips and Tricks which shall help you to make your work easier.

Use the Image Link Formatter module to add links to Image Fields

Frequently you might want to add links to images that you included to content types with the field type image (included in Drupal 7 core). The module Image Link Formatter offers you an easy and straightforward way to do so. Just install the module, configure the image field in the "Manage Display" section of your content type (see image below) and add the links to your content.

Use the Image Link Formatter module to add links to Image Fields

Use the module Node Convert to change the content type of nodes

Frequently it might happen, that you want to convert the content type of a node or of many nodes. The Node Convert module is an easy way to do so. The options are straightforward: 1. To what content type should the node(s) be converted to and 2. Into which fields should the existing fields be inserted to.

Drupal module Node Convert

Use the module "Bundle Copy" to clone content types with Drupal 7

The Drupal module Bundle Copy offers you an easy and convenient way to clone content types (currently release 7.x-2.x-dev). In Drupal 8 this function will be a part of the core CMI. If you combine Bundle Copy with Node Convert you have the perfect solution to migrate content types and nodes that already exist as such a content type. Clone the existing content type, convert the nodes and apply potential changes.

Drupal Bundle Copy module

Use the Drupal module "Secure Site" to easily and quickly restrict the access to your website

If you need to control the access to your Drupal website, so that only authorized people can see restricted sections or the entire site, the Drupal module Secure Site offers you a very easy and quick way to do so. Just download, install and enable the "Secure Site" module and there you go.

Use Taxonomy CSV import/export to create, clone or copy Taxonomies

Frequently it might happen that you want to create a new taxonomy, to clone an existing taxonomy within a website or to copy a taxonomy from one website to another. To save time and make further changes more flexible I recommend you to use the module Taxonomy CSV import/export.

Drupal module "Taxonomy CSV import/export"

Use the module Taxonomy Menu to easily create menus from your taxonomies

Frequently it might happen that you want to create a menu from your taxonomies. Of course you can do so manually by putting the taxonomy into a menu. But this is quite a lot of extra work and furthermore requires you to update the menu each time the taxonomy changes.

Drupal Taxonomy Menu module

Use the module Splashify to display a splash page on your frontpage or anywhere on your Drupal website

The Drupal module Splashify allows you to display a splash page anywhere on your site by redirecting the user, by showing a lightbox, or by displaying a popup. This module is designed to be search engine friendly, mobile device friendly and offers multiple configuration options. Thus you can decide when, where, what and how the splash page shall be displayed. As such you can configure the splash page to be shown to particular roles and on specific pages.

301 redirects for your Drupal website (.htaccess file)

Very often you will need to apply a 301 redirect to your Drupal website. You can do so by adding the following codes to your .htaccess file in the Drupal root directory. If you don't redirect either "non-www to www" or "www to non-www" search engines such as Google consider your www and non-www website as "duplicated content", what might be penalised. Another important case is the redirection of an old domain to a new domain. The code below, redirects not only the root domain, but all paths/files, what is absolutely key in most cases.

Troubleshooting: .htaccess option +FollowSymLinks creates "500 Internal Server Error"

An increasing number of operating systems and hosts have tightened up their security settings and now forbids +FollowSymLinks option in the .htaccess file that comes with Drupal core. This causes an error 500 when accessing the site. When they introduced this policy they automatically converted +FollowSymLinks to +SymLinksIfOwnerMatch. More details can be found here.

Solution: Change the following entry in your .htaccess file

From:

.htaccess option +FollowSymLinks creates "500 Internal Server Error"

User Default Page or Login Destination for login redirects in Drupal 8 and 7

The Drupal modules User Default Page and Login Destination allow you to customize the destination that a user is redirected to after logging in, registering or logging out.

Login

Pages

Drupal themes to be compared