Drupal Howtos

A how-to is a short description of how to accomplish a specific task. This is a compilation of Drupal related howto's which I provided to friends or which I applied myself. Targeting the Drupal beginner they provide simple and detailed step-by-step descriptions with pictures.

How to change the title of the Drupal Blog page?

Surprisingly there is no option in the admin interface to change the title of the blog page which is generated by the blog module. Though you can change the title by changing the menu link. But sometimes you probably want to keep the menu link, but change the blog title or you want to have different titles in the menu and on the page. If so you can change the title by editing the blog module. This is not a very proper solution, but it is apparently the most efficient. Don't forget to log this change, because with an update of the blog module you will loose this change.

Views Slideshow is hiding the menu. How to solve the problem?

Problem: The Views Slideshow i.e. the Slide/Picture of Views Slidehow is hiding the menu (Dropdown, Nice Menu, Superfish, etc.). If one knows how, this is quickly solved by changing the "z-index" of the menu. The z-index property specifies the stack order of an element. An element with greater stack order is always in front of an element with a lower stack order.

Using "Inspect Element" to find CSS problems

How can I see my php settings?

Step-by-step instructions how to see the PHP values of your server using a phpinfo.php file. PHP has many environmental variables that you are able to update as needed. For example, you may need to update your php memory_limit to prevent certain scripts from running out of memory. In order to change these values, you must first be able to see what they are.

How to hide an empty shopping cart with drupal commerce

  1. Find the "Shopping cart block" view
  2. Create a new block display
  3. Edit the"Commerce Order:Order ID" contextual filter
  4. Set it to Provide default value > Type = Current user's cart order ID
  5. Then use that new block you have just created in your site. It will not show if the cart is empty

How to solve the CSS conflict between the Marinelli theme and the Gallery Formatter module?

If you use the Gallery Formatter module based on the Imagefield within the Marinelli theme, the arrows of the gallery don't appear as they should (see step 1). This is apparently a CSS problem caused by conflict between the theme related CSS and the module related CSS. This howto shows you how to quickly solve the problem.

How to automatically sort uploaded images and files in Drupal 7 (Multiupload)

By default, the multiupload imagefield and filefield don't sort the uploaded items by name. If you upload many images and files to your website, this can be a serious issue, since you have to sort the items manually. In Drupal 7, the issue can be resolved with a very simple change in the Multiupload Filefield Widgett (7.x).

Drupal views & lightbox: How to add lightbox to a view of images

Do you have a view of images and you want to add the lightbox functionality to it? Nothing more easy than that!

The sharing URL link does not show the thumbnail image on Facebook

There are a number of reasons why the sharing url link does not show the thumbnail image on Facebook. Most frequently because the first image found on a page doesn't match the minimal image requirements (The image must be at least 50px by 50px and have a maximum aspect ratio of 3:1. Supports PNG, JPEG and GIF formats.).

Drupal Commerce Shipping by Weight

- Download the modules Physical Fields and Commerce Physical Product

https://www.drupal.org/project/physical
https://www.drupal.org/project/commerce_physical

- Download the patch file #27 & #13. Use a program to patch the files. The module file gets changed, and commerce_physical.rules.inc gets created. Please find the patched files for Commerce Physical Product 7.x-1.x-dev 2015-Sep-19 enclosed

- Upload, overwrite and clear all caches.

How to remove the users' blog link? OR How to transform the Blog module into a single user blog?

By default, the Drupal core Blog module is configured as a multiple user blog. This is very often not the desired solution, because the website should just contain a single user or a site wide blog, which isn't differentiated into different user blogs. Unfortunately Drupal core offers no possibilities to change that. Thus each blog entry comes along with a link to the username's blog, what is either not desired - because although multiple users are blogging the blog should appear as a site wide blog - or awkward - because it is always the same username.

Pages

Drupal themes to be compared