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.

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

User Default Page or Login Destination for login redirects in Drupal 8 and 7

The Drupal modules User Default Page and Login Destination allow you to customize the destination that a user is redirected to after logging in, registering or logging out.

Login

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"

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

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.

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

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

Clean URLs not working? Check your .htaccess file!

Here are some of the most common reasons why your clean URLs may not be working (assuming you're using a normal Linux/Apache hosting environment).

1. Your site is in a subdirectory, or you're using an Alias, but you didn't set RewriteBase

2. Your .htaccess file didn't get uploaded at all

3. Your .htaccess file is corrupt

4. Pager and other query strings don't work

https://drupal.org/node/256410

Using Drupal, HTML5, and Javascript to Create Hybrid Internet Apps

Author: Jared Whitehead

In the ever evolving internet world, an issue that has been arising is “how do I take an existing website and make it cross-browser compatible?” Of course the simplest answer to this would be to create a style sheet for each browser, it’s easy but it can take up a lot of time and hassle. The same issue comes up when you want the website to be viewable on a mobile device as well.

Pages

Drupal themes to be compared