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.

Install "Module Filter" to simplify your module administration

The modules list page can become quite big when dealing with a fairly large site. To simplify the module administration you can install the module "Module Filter". The module provides you a filter textfield and a tab for each package.

Drupal module "Module Filter"

Use the module "Media: TED" to easily publish videos from ted.com on your Drupal website

TED is a nonprofit devoted to spreading ideas, usually in the form of short, powerful talks (18 minutes or less). TED began in 1984 as a conference where Technology, Entertainment and Design converged, and today covers almost all topics — from science to business to global issues — in more than 100 languages.

Ted.com integration with Drupal

Meta Tags in Drupal 8: Special elements beyond nodes/taxonomies/views

Meta tags in Drupal 7 was super easy: With the modules Meta Tag and Meta Tags Quick you could do anything. In Drupal 8 the module meta tag covers the standard cases but meta tags quick is not available in a usable version. So what to do?

Drupal module context metadata

Understand the elements of a theme

There are hundreds of themes available for free download on the Drupal website. Being able to modify a theme to suite your needs, it is essential to understand their basic elements:

A theme is made up of these major parts:

.info (required)

Elements of a Drupal theme

Use Google Analytics to increase traffic

Google Analytics gives you fresh insights into how visitors use your site, how they arrived on your site, and how you can keep them coming back. Understanding your visitor will help you to optimise your site and to increase the number of visitors. For an easy implementation you can use the Drupal module Google Analytics. The Tutorial below offers you step-by-step instructions to do so.

Use Google Analytics to increase traffic

Use the Drupal CAPTCHA module to avoid spam on your website

A CAPTCHA is a challenge-response test most often placed within web forms to determine whether the user is human. The purpose of CAPTCHA is to block form submissions by spambots, which are automated scripts that post spam content everywhere they can. The CAPTCHA module provides this feature to virtually any user facing web form on a Drupal site.

Theming contact form:

#contact-site-form fieldset {
border: none;
}

The best free stock image websites for your Drupal project (2020)

With human brains processing images much faster than text, good photos are vital for grabbing attention and getting messages across. Unfortunately, we’ve grown accustomed to seeing cheesy stock images of people in suits shaking hands. These stock photos not only lack quality, they also cost a lot of money. Thankfully, there’s been a growing number of websites with beautiful free stock photography popping up all over the web. We selected the best free stock image websites available beginning of 2020.

The best free stock images websites for your Drupal project

Ask questions

If you have a problems or questions get help from the Drupal community. Ask questions on drupal.org/forum or on famous howto sites such as http://drupal.stackexchange.com/.

Drupal Answers

Google is your best friend

If you have a problems or questions related to Drupal it is usually very easy to find the required help online. Copy and paste the exact error message, and consider putting the search term inside double quotes so that Google does a literal search. Alternatively you can ask a question like "How to create a sub theme in Drupal".

Google example search for Drupal "How to create a sub theme in Drupal"

Always verify/enable clean URLs

Usually "clean URLs" URLs is enabled by default with the installation of Drupal. Frequently it happens, that it can't be enabled. Then the URLs will look like "example.com/?q=user." instead of "example.com/user" i.e. they won't be clean. The most common reason is, that the .htaccess file is missing on the root directory of Drupal.

Drupal Enable clean url

Pages

Drupal themes to be compared