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 import multiple files/images into one field with Drupal feeds tamper

I tested the D7 version.

1) Install and turn on the Feeds Tamper module
2) Go to admin/structure/feeds and select tamper for the importer you want to apply it. Add the plugin explode for the multiple value fields
3) Make sure to have separator to be "," instead of ", " (there's an extra space after , ) when you export from either CVS or services views. This is important, because it'll break file enclosure file handling.

Troubleshooting "500 Internal Server Error" Drupal

  1. If possible run cron and clear caches (1-9) with Drush
  2. Change of PHP version to match the Drupal version used. For older Drupal 7 versions possibly downgrade to PHP 5.6. For Drupal 8 possibly upgrade to PHP 7.0 +
  3. Increase PHP Memory limit to at least 256M
  4. Copying of original .htaccess and settings.php from Drupal installation. Disable/Remove to see if it is the cause of the problem.
  5. Check-up and correction of user rights, 755 and 440 special files
Drupal 500 Internal Server Error

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.

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

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!

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.

Drupal Commerce Shipping by Weight

- Download the modules Physical Fields and Commerce Physical Product


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

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

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 themes to be compared