Book Image

Drupal 7 Cookbook

By : Dylan Spencer James
Book Image

Drupal 7 Cookbook

By: Dylan Spencer James

Overview of this book

<p>Drupal 7 is a modern Content Management System famed for its flexibility and power. Using Drupal you can easily create custom functionality that would otherwise have to be purchased in many of the other leading CMSs.<br /><br />"Drupal 7 Cookbook" is filled with recipes to help you to do more with Drupal and improve your skills. Chapters range from content creation, to theming, to managing your site. You will learn how to create your own content types and use them to create Views, Blocks, and Pages. This book will take you from novice to pro in just 12 chapters.<br /><br />In a wide variety of practical recipes, you will learn how to work with views and panels, how to provide translations for your content to create a multilingual site, and to integrate your site with social media. You can develop the Zen starter theme or learn how to create custom cross-browser compatible Drupal themes, including themes for mobile devices. The Drupal 7 Cookbook contains all of the means necessary to take your skills from those of a novice Drupal user to a proficient site builder.</p>
Table of Contents (18 chapters)
Drupal 7 Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface

Chapter 3. Working with Blocks

In this chapter we will cover:

  • Adding a new block

  • Creating a submenu block

  • Creating a Superfish menu block

  • Creating a block with Views

  • Adding a new block region to a theme

  • Creating a mega footer menu

  • Conditional display of a block

Introduction

Blocks constitute one of the fundamental methods of display in Drupal. Throughout this chapter we will be exploring how to add simple content blocks. Following this we will use blocks to expand upon Drupal's menu system by creating a submenu block from the main menu items, and then we will see how we can enhance the main navigation so that it becomes a drop-down menu.

Blocks aren't limited to basic content and menus, and we shall introduce the power of views in creating a simple views block. We will also look at how we can expand on the available regions of a theme, enabling greater positioning flexibility. Following this, and armed with the knowledge of creating menu blocks, we will go about constructing a mega footer menu. Finally...