Tips and Tricks: Modules

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 the Drupal module GeSHi Filter for syntax highlighting

The Drupal module GeSHi Filter offers you a convenient way to display different code on your website (php, html, css, js, etc.). The GeShi Filter module provides a filter for source code syntax highlighting for a wide range of languages. At the time of this writing the GeSHi library supports highlighting for more than 200 programming languages and configuration syntaxes.

Important notes:

Forget the Drupal SEO modules from LevelTen Interactive

Over time I stumbeled over SEO related Drupal modules from LevelTen Interactive and I tried them. Having all my experiences in mind I came to a very clear conclusion: Forget these modules, don't try to install them if you don't want to waste your time! Why?

Use the Drupal module PDF to ImageField to generate images from PDF Files

If you use a filefield to upload PDFs you might want to display a preview thumbnail or to generate a gallery of images from the document. If so, the Drupal module PDF to ImageField is the solution you are looking for. he PDF To ImageField module provides automatic conversion of uploaded PDF files to images. The module is implemented as an additional widget for
File Field where PDFs are uploaded to. It places generated images into a Image Field on the same content type.

How to get the file path of an image as replacement patterns in views

You can achieve that by using the Image URL Formatter module.

This module adds an url formatter for image field. Then you can output the image url directly.

Usage:

Use the module "Commerce Fancy Attributes" to add a color and/or size selector to the cart form

This module provides a "Rendered term" attribute mode, that shows the rendered term instead of a radio button (degrades to a normal radio button when JS is off) on the add to cart form.

How to use the module to add a color selector:

Drupal module "Commerce Fancy Attributes"

The handy Drupal 8 module "Quick Node Clone" allows you to clone nodes easily

Are you looking for the successor of Node clone?

The Drupal 8 Quick Clone module works very similar as the Drupal 7 Node Clone module. The quick clone module allows users to make a copy of an existing item of site content (a node) and then edit that copy. Doing so the authorship is set to the current user and the menu and url aliases are reset.

Clone

Use the PagePeeker Screenshots module to display screenshots from websites

The probably easiest and fasted way to fetch and display screenshots from websites is to combine the PagePeeker Screenshots with the Link module. Just install and enable both of the modules, add a link field to the content type and select "Pagekeeper thumbnail" as display format (Manage Displays). You can choose between a free, a link-back and a paid version of PagePeeker.

Alternative modules:

How to implement Rooms 7.x-1.8 properly - Problem with full calendar library

Drupal Rooms is a booking and room management solution for hotels, vacation rentals and B&Bs. With the change from Rooms 7.x-1.7 to 7.x-1.8 the installation requirements have changed significantly. This article shows you the changes and how to implement Rooms 7.x-1.7 and Rooms 7.x-1.8 properly. Following the below instructions you can avoid the typical problem with the full calendar library.

Use the Drupal module Menu Firstchild to create menu items without links

By default, Drupal requires that you enter a path for each menu link you add/edit from the Menu administration page. There are cases you may want to create a parent item, without any path, that simply links to its first viewable child item. Menu Firstchild provides this functionality.

Another similar solution (didn't worked smoothly in all cases): Special menu items

Pages

Drupal themes to be compared