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

Creating a new theme using Zen


In this recipe, we will be creating a sub-theme that inherits from the Zen theme. This is a very popular technique that dramatically reduces the time needed to build a theme as most of the groundwork is already done for you.

Getting ready

For this recipe you will need FTP access to your site and an FTP client if you are not working from localhost.

How to do it...

We start by installing and enabling the Zen theme. Once installed, we will create the sub-theme using the STARTERKIT provided by the Zen theme. Finally, we will configure and enable the new theme.

  1. 1. Go to the Zen project page: http://drupal.org/project/zen.

  2. 2. Copy the tar.gz URL of the latest Recommended release of the Zen theme:

  3. 3. Go to your Drupal site and select Module from the admin menu.

  4. 4. Select +Install new module.

  5. 5. Paste the URL in the Install from URL field, then click on Install.

  6. 6. Select Enable newly added themes.

  7. 7. Scroll to the Disabled themes section and select Enable for the newly installed...