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

Simple Responsive Table, an awesome Drupal 8 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.

Drupal Simple Responsive Table 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

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

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

Use "Inspect Element" to troubleshoot potential Design/CSS problems

If you work with different themes and modules you may frequently encounter problems with CSS. This might be in the process of modifying theme/module related CSS code or it might be that there are CSS conflicts between themes and modules (for Example because the same terms are used). In any case, I recommend you to use the "Inspect Element" function of your browser. Usually you can activate this function by a right click on the element/area you want to inspect.

Example of "Inspect Element" as a mean to troubleshoot CSS problems

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

Pages

Drupal themes to be compared