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.

The best Drupal modules to show image and video contents in an overlay gallery

Magnific Popup ( Drupal 8 and 7)
Integrate Dmitry Semenov's Magnific Popup jQuery lightbox plugin with Drupal as a field formatter. This module provides a "Magnific Popup" field formatter for File Entity and Image fields. Fields with multiple items (cardinality > 1) can be grouped into a Magnific Popup gallery, or shown individually as a stand-alone popup (no "previous"/"next" navigation options). Magnific Popup is a responsive jQuery lightbox plugin that is focused on performance and providing best experience for user with any device (Zepto.js compatible).

Drupal colorbox

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 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 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 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

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"

Use the External Links module to handle external links

If you want to handle external links differently than internal links (Example: Open all external links in new window) without additional coding, I recommend you to install the External Links module :"External Links is a small module used to differentiate between internal and external links. Using jQuery, it will find all external links on a page and add an external icon indicating it will take you offsite or a mail icon for mailto: links."

Drupal External Links 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.

Pages

Drupal themes to be compared