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.

Drupal Commerce: How to collect additional case specific (rules) information during checkout

Using Drupal Commerce to create a webshop one very often encounters situations, where one needs to retrieve additional information from customers on a case per case basis. Maybe if a particular product or product type is in the basket or if specific information for the product delivery needs to be retrieved. So you wish you could add more profile types and you could enable and disable them based on predefined rules.

Drupal module "Customer Profile Type UI"

Allow users to smoothly scroll up the page

If your website offers long pages or lists it is highly recommended to offer the visitors an easy, smooth and quick way to scroll-up to the top of the page. One solution to adress this issue is the implementation of a scroll to top button or link, which is typically displayed in the right or left bottom corner of the website.

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 Screenfly to test the responsiveness of your Drupal website

Screenfly is a must-use emulation tool because of its wide coverage of platforms. You can customize it the way you would like to test your website under various categories.

Alternatives that are free, easy to use and quick (i.e. no sign-up needed):

Rapidly test your website for cross browser compatibility across 300+ browsers.
http://www.browserstack.com/screenshots

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

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

Shrink PNG files for your Drupal website: Easy, quick and professional

TinyPNG uses smart lossy compression techniques to reduce the file size of your PNG files. By selectively decreasing the number of colors in the image, fewer bytes are required to store the data. The effect is nearly invisible but it makes a very large difference in file size!

https://tinypng.com/

TinyPNG: Shrink PNG files easy, quick and professional

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

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

Pages

Drupal themes to be compared