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.

Simple Responsive Table, an awesome Drupal 8/9 module: Get responsive tables instantly!

Drupal lives from awesome modules which extend Drupal with great functionalities and modules which make things smooth and quick. Simple Responsive Table is the ultimate time saver and belongs to the latter. Simple Responsive Table is really an awesome module: Installation is quick, the module works instantly and is very easy to configure. Most importantly, it is of high value because it saves you lots of time fore manual coding.

Simple Responsive Table module for Drupal 8 and Drupal 9

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

Disable account registration by anonymous users

If you don't need the functionality, that anonymous users can register accounts, I strongly recommend to disable it. This will save you the time to handle masses of unwanted requests.

Drupal Account Registration and Cancellation

Drupal Views: Exclude current node from a list view

In some situations, for example a block listing nodes related to the node being viewed, you might wish to exclude the current node from a list view.

Views 3

Drupal Views

Drupal Commerce membership websites - Role-based products & recurring payments

1., 3., 4. and 5. can be combined to sell product based roles and to have an advanced recurring framework (compared to 2.)

Drupal Commerce membership websites - recurring payments

Use the Drupal module "Empty Page" for pages that only consist of blocks

Frequently you might want to create Drupal pages consisting only of blocks. Apparently to create a page with a title and to configure the block to display with this page is not a very proper solution. Thus we recommend you to use the Drupal module Empty Page which allows you to create "empty" menu callbacks. You just define a link and optionally a title and you are done.

Drupal 8: Mismatched entity and/or field definitions

If you get the warning "Entity/field definitions Mismatch detected Mismatched entity and/or field definitions." after upgrading (for example from 8.37 to 8.45 i.e. required security update) you have to fix this issue first before running database updates. If you don't you might get into unresolvable problems. The solution is easy.

1. Adapt index.php

Add the following script before $response->send(); in index.php file(located in Drupal root folder)

Drupal 8: Mismatched entity and/or field definitions

Use the Drupal 7 module "Code per Node" to add custom CSS and Javascript

In many situation it can be quite useful to have a structured interface to add custom CSS and Javascript. The Drupal module Code per Node allows you to do so per node, per content type, per block and globally. After the installation you will get a "CSS & JavaScript" tab within nodes and blocks and a "Code per Node settings" tab within each content type. This allows you to add custom code very easily.

Drupal Code per Node module

Use "Virtual Sites" to create subsites or virtual sites (multi-site feature)

If you want to create an additional website without the installation of an another instance of Drupal or if you want to create a subsite or virtual site without the complicated set-up of the multi-site feature, I recommend you the module "Virtual Sites". It allows you to set-up an additional site within very short time. All you need to do is to install the module, to add a new virtual site and to configure it.

Drupal module "Virtual Sites"

How to find the best Drupal themes on Envato Market / ThemeForest

In 2019 you'll find more than 500 Drupal themes on Envato Market / ThemeForest. Most of them are nicely presented and look great in the provided demo. Hence it is sometimes not so easy to identify the right theme. This article provides you some tips how you can select the best Drupal themes on Envato Market / ThemeForest. What we mean by the term "best" you can find here.

Drupal themes on ThemeForest / Envato Market


Drupal themes to be compared