Customize a Video Thumbnail in Drupal

Introduction and Requirements

When you upload a video to Drupal from YouTube or Vimeo, an automatically generated thumbnail will be created. This is normally not a big deal, but wouldn't it be nice if you could have complete control over the thumbnail that is associated with the video? Thankfully, with Drupal's File Entity module, you can. In this tutorial, we will add the ability to add a custom video thumbnail to a video in Drupal. As an added bonus, we will use the ... Read More

Dynamically Link to Each Month In Drupal's Calendar

Introduction and Requirements

Drupal's Calendar module allows you to page between months. However, it can be frustrating for a user to have to page several months in either direction if they know what month they want to view. For example, if the current month is June but a user wants to see upcoming events in December, they would need to click through 5 times. In this tutorial, we are going to solve this problem by creating a menu where each menu item will link to each month. As an added bonus, we will make sure that the menu... Read More

Batch Upload Field Collection Items to Create an Image Gallery

Introduction and Requirements

Let's say you want to create an image gallery on your site. Let's say that each image also needs a caption and a photo credit field. One solution would be to create a field collection of and image, text and long text field. However, the most image galleries contain many images. It would be very time consuming to have to upload each image individually. Enter Field Collection Bulkupload. With Field Collection Bulkupload you can drag and drop multiple images onto... Read More

Dynamically Control FlexSlider Caption Position and Color in Drupal

Introduction and Requirements

Drupal's Flex Slider module allows site builders to add rotating slides with captions. Using custom CSS, site themers can adjust the caption's position and color. This is useful when the caption color might be hard to read against the slide, or is positioned awkwardly. However, wouldn't it be nice to have complete control over the caption's color, position and background color right within the CMS? 

The above image shows a FlexSlider... Read More

Display a Calendar On Taxonomy Pages In Drupal

Introduction and Requirements

Let's say you have a content type with a date field and term reference field. This content type could be specifically for events. Because of this, you most likely would like to display this content type in a calendar format. Luckily, Drupal's Calendar module does just that. However, if a user were to visit any of the term pages associated with that content type, they would simply get a list of content by default.

... Read More

Create a List Tab For Drupal Calendar

Introduction and Requirements

Drupal's Calendar module allows an easy way for site builders to display events in a month, week day and year format right out of the box. However, I recently needed to add an additional tab to the view display to list all upcoming events. The requirements were that this would become the default display for the view, meaning that the list would display be default if user didn't supply any arguments to the URL. For example, if the user navigated to example.com/events they would see... Read More

Configure Drupal's Search API to Search Field Collections and Paragraphs

Intro

This tutorial will assume that you are somewhat familiar with the Search API module. It also assumes you are using the Search API with the Search API Database Search and Search API Pages modules. The goal here is to ensure paragraph and field collection fields are being indexed by Search API and associated with their host node.

... Read More

Drupal Configure SMTP Module to Work with Gmail [Updated]

At this point, there have been many great tutorials written about configuring Drupal's SMTP Authentication Support with Gmail. However, these tutorials are out dated, and do not take into account Google's added security settings. In this tutorial I'll show you how to configure Drupal's SMTP Authentication Support module and update Gmail's security setting.

Install and Configure SMTP Module

  1. Install the SMTP Authentication Support module in the usual way.

... Read More

Correctly Display Repeating Dates In Drupal

Configure Site Date and Time

admin/config/regional/date-time

Enable The Necessary Modules

  • Date
  • Date All Day
  • Date API
  • Date Popup
  • Date Repeat API
  • Date Repeat Field
  • Date Tools
  • Date Views

Configure A Repeating Date Field

Make sure you have at least one date field configured to handle repeating dates.

Under MORE... Read More

Update Drupal Field Settings For Fields With Data In Database

Sometimes you need to edit a field's configuration once there is already data store in the database for this field. If you try to do this, you'll get the following message.

There is data for this field in the database. The field settings can no longer be changed.

In this tutorial, we'll work through this issue by following these steps.

  1. Create a new field that satisfies our needs.
  2. Export all the... Read More

Pages