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 "bare-bones" theme from scratch


The benefits of using a "starter" theme should not be under-estimated as they provide a means of rapidly producing a standards-compliant, cross-browser theme, where the groundwork has been done before you begin. However, it's important for a theme developer to understand the architecture of a Drupal theme from the ground up.

This recipe is not so much about what features and functionalities a Drupal theme can contain, but instead, what they should contain, as a bare minimum.

In this recipe, we will be building a very basic theme which will contain no CSS styling, HTML resets, or custom regions, but only the bare framework for "themers" who want to develop a theme in its entirety.

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 will start the recipe by creating a blank folder for the new theme to which we add the info file. We will then configure the info file...