HowTos

Drupal 7 will no longer be supported after January 5, 2025. Learn more and find resources for Drupal 7 sites

HowTo pages are short, highly-targeted articles on how to accomplish a specific task. They are contributed by the community in response to a need for concise information. HowTo pages differ from Tutorials in that they are most often a single page document and directly relate to either a certain function of a module, a goal-based task, or a "Did you know Drupal can do this?" paragraph. For example, where a tutorial might describe the process of creating and theming customized user profiles, a HowTo article would explain the steps needed to enable custom avatar uploads for all user's profiles.

Add PHP code to the body of a Drupal 7 Block

This article is for Drupal 7 developers who have tried to put PHP code in the body of a Custom Block, but can't get it to run.

Accessing commerce order data from the send mail Rules action

It is common to send a confirmation email when a Commerce order has been completed. It is not obvious how to access data from the Rules

Add Google Webmasters Tools verification meta tag via the themes template.php file.

This guide refers to the meta tag verification method available for Google Webmaster Tools and these instructions are specific for Drupal 7.

Add a markup element to a Views Exposed Filter form

Use a function in template.php to add a markup element to a Views Exposed filter form.

Adding File Encryption to existing Drupal 7 site

Background

Build a Drupal 7 HTML5 Video Subtitling/Closed-captioning System

Overview

Build a simple conditional field in Views 7.x-3.x

You can make conditional fields in views without using additional modules like Views PHP.

CTools Plugins without Panels, step by step

CTools plugins and Panels are great and play together very well. It's almost as if they were made for each other--weren't they? However, I

Cascading select using views

Introduction

Change default strings (text) without using full translation system

Methods

Control/modify display settings (author and date) on posts

When you create an article or page in Drupal 7, by default, it displays Author and Date information after the title, something like:

Copy the form buttons on node creation pages to the top

Background:

Create a Node in Code

The code below presents a simple example of the means by which you can create a node in PHP code. This example makes no use of the Entity

Create a Rule to Evaluate If a Logged-in User Has Created Content of Type X

I recently encountered a situation where I wanted to redirect a user to create a custom content type on login if that content doesn't

Create a custom User Registration form with FAPI D7

There are many reasons to create a custom User Registration form in Drupal, so I won't get into the "Why?" of it. This isn't a tutorial

Create a fixed position customized information box

Create a fixed position customized information box similar to the Devel Themer module for specific users, but with your own information.

Creating an activity newspaper website using D7

Creating an activity newspaper website using D7

Creating iFrame-ready Widgets with Views and Templates

You can use views and a specific, trimmed-down page template to create blocks or pages containing widget content to be viewed in an iframe.

Customize the default user registration form

Firstly, in your theme's root directory add the following to template.php. If the file does not exist, create it.

Display User's Points of Specific Category in a Block on Content Profile

Modules used:

Embed a date-specific event calendar

It is fairly simple to display an event calendar for all event content on a site, but sometimes we need to display an date-specific calendar

FAQ using Views

Here is a recipe for creating a FAQ using nodes and Views. I did this in Drupal 7 but it should work in D6 also, although some steps will be

Flot Usage Example

It took me a little while to figure out how to use flot ( http://drupal.org/project/flot ) with drupal. I post the following example to make

Future-proof your Drupal 7 site

Drupal 8 is coming! But what decisions can you make now on your current or new Drupal 7 sites to make transitioning to Drupal 8 easier?

How to Create an Image Gallery in Drupal

Here is one way to to make an image gallery in Drupal 7 (the same theory will hold for Drupal 6 and, I presume, Drupal 8). This will create

How to Make a Simple Module with a Form and Menu Link

This guide will show you how to add a form to your website that is accessed through its own URL. This guide will go over module creation,

How to Set up Google AdSense for Search without using a custom module

How to Set up Google AdSense for Search without using a custom module

How to add jQuery UI libraries to a page

Drupal 7 ships with jQuery UI 1.8.7, so you don't need to add the actual library code unless you wish to use a different version. jQuery UI

HowTos

HowTo pages are short, highly-targeted articles on how to accomplish a specific task. They are contributed by the community in response to

Image gallery with Imagefield and Taxonomy

Background: Upgrading site from Drupal 5 to 7. The D5 site used image module that came with a ready to use image gallery. We had hundreds of

Making a Guestbook, a Gallery, a Status Wall, Chat Room ...

If you are already using the following modules, you can easily make a guestbook or an http://drupal.org/project/facebook_status alternative

Move field's help text (description) between the label and input element(s)

A common problem with field types that takes up a lot of screen estate is that the help text disappears at the bottom and users won't notice

Moving node settings on the edit form

Drupal 7, together with Display Suite forms and the Fieldgroup module, gives developers the awesome ability to group fields together in

Subscribe a user to specific OG group using Rules

The following export is from pandaPowder's comment in OG issues:

Writing a module that handles node access

Using node grants and realm access system control which user can perform operations such as view, update, and delete on a per node basis

Yin/Yang Multisite Staging

Overview

Guide maintainers

lolandese's picture