Book Image

Drupal 6 Panels Cookbook

By : Bhavin (Vin) Patel
Book Image

Drupal 6 Panels Cookbook

By: Bhavin (Vin) Patel

Overview of this book

<p>The Drupal Panels module allows a site administrator to create customized layouts for multiple uses. At its core, it is a drag and drop content manager that lets you visually design a layout and place content within that layout. Guidance is required when it comes to successfully implementing panels in your CMS. The Panels module lacks sufficient documentation and most Drupal users are left in the lurch with many unanswered questions.<br /><br />This book comes to your rescue and discusses all that you need to successfully incorporate Panels in your Drupal CMS. You will learn everything from setting up Panels, through using it, to integrating it with other modules. The book discusses the various problems involved in using Panels along with their solutions. It shows you how to reap added benefits using Panels.<br /><br />The book is a collection of simple useful recipes that gives a very clear understanding from the basics of Panels to complex implementations to generate Web 2.0 layouts. It begins with the basics and gradually delves deeper into the complexities of Panels. You will learn how to set up CTools and Panels, upgrade from Panels 2 to Panels 3, about page layout, theming, and lots more. The layout of the book is a series of interconnected but distinct recipes that gives a basic understanding of usage of Panels in Drupal and also the advanced settings that makes Panels one of the most powerful modules .You will learn to master the Panels user interface and theme each panel quickly with a series of practical recipes. You will be able to integrate powerful Drupal modules like Organic Views, Advanced Profile Kit, Views, CCK, and many more to create socially connected Web 2.0 websites.</p>
Table of Contents (17 chapters)
Drupal 6 Panels Cookbook
Credits
About the Author
Acknowledgement
About the Reviewer
Preface

Preface

To date, Drupal is the most popular enterprise-level CMS. It now powers thousands of popular websites on the Internet. Most of the pages of your Drupal website will follow the general layout defined by your theme, which is normally a header section on the top, a footer at the bottom, left and/or right sidebars, and a content section in the middle. However, a few pages of your website need to have a different layout. This is where Panels come into the picture. Panels allow you to create sections and many possible layouts.

Do you want to make custom Drupal pages and impressive front page layouts? And more importantly, do you want to know how to make them without coding? Just keep reading!

What this book covers

Chapter 1, Getting Started, explains what Panels are and why we should use them. This chapter gives an introduction to Panels and helps you to set up Panels on your Drupal code base. It details all of the steps required to get Panels up and running.

Chapter 2, Changing Panel Interface, as the name suggests will help you build Panels through the Panels User Interface. The chapter teaches the basics of Panels, such as creating a clone of a layout page, adding menus to Panels, and using contexts. We also make impressive layouts taking examples of well-known Internet websites using Panels.

Chapter 3, Theming for Panels, helps us dive further and use CSS for Panels so that we can customize the look and feel of individual Panels within the page.

Chapter 4, Implementing Panels, is a chapter centered on building website looks with Panels. It shows you how to create a custom front page for a website. It gives insight to creating a node edit form with a Panel and also the process of generating a node override within Panels. It also gives you knowledge for using Mini panels.

Chapter 5, Panels with Organic Groups, shows how Panels work with Organic Groups to give a multisite functionality. The power of Panels helps the user to generate individual pages for each user or a group.

Chapter 6, Panels with CCK, is where you will learn how to use custom Content types with Panels. Create your own Content type and display the nodes of the Content type in Panels.

Chapter 7, Advanced Profile Kit, guides you in generating powerful User Profiles with Panels and the Advanced Profile Kit to boost up your next social media project on Drupal.

Chapter 8, Panels-related Modules, is where we will stop and see some interesting modules mash up with Panels such as creating language panels for multilingual websites, making Facebook-type messages, and creating a form within a Panel.

Chapter 9, Views, shows how we can use Views as a wonderful combination with Panels to create powerful features. In this chapter, we cover recipes to make a dynamic news update site and to make video Panels.

Chapter 10, Creating a Travel Website Using Panels, helps build a multifunctional travel website using Panels. We start from creating the wireframes, making custom Content types, generating views for each Content type, and then making Panels to display the dynamic content. The chapter itself is a crash course in generating a powerful dynamic website in a matter of hours not days!

In the Appendix to this book, you will find the chapter-wise list of modules used in the recipes.

What you need for this book

Knowledge of running a Drupal site is essential. Basic HTML, PHP, and JavaScript knowledge is a prerequisite for the book. But don't worry, you will be provided step by step explanations throughout the book. You will find this book very easy to follow.

Who this book is for

This book is for Drupal developers who want to enhance the attractiveness of their website and make it impressive.

Conventions

In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.

New terms and important words are shown in bold. Words that you see on the screen, in menus, or dialog boxes for example, appear in the text like this: "Paste the copied content into the Import data box and click on Import."

Note

Warnings or important notes appear in a box like this.

Note

Tips and tricks appear like this.

Reader feedback

Feedback from our readers is always welcome. Let us know what you think about this book—what you liked or may have disliked. Reader feedback is important for us to develop titles that you really get the most out of.

To send us general feedback, simply send an e-mail to, and mention the book title via the subject of your message.

If there is a book that you need and would like to see us publish, please send us a note in the SUGGEST A TITLE form on www.packtpub.com or e-mail.

If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, see our author guide on www.packtpub.com/authors.

Customer support

Now that you are the proud owner of a Packt book, we have a number of things to help you to get the most from your purchase.

Note

Downloading the example code for the book

You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.

Errata

Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you find a mistake in one of our books—maybe a mistake in the text or the code—we would be grateful if you would report this to us. By doing so, you can save other readers from frustration and help us improve subsequent versions of this book. If you find any errata, please report them by visiting http://www.packtpub.com/support, selecting your book, clicking on the errata submission form link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata will be uploaded on our website, or added to any list of existing errata, under the Errata section of that title. Any existing errata can be viewed by selecting your title from http://www.packtpub.com/support.

Piracy

Piracy of copyrighted material on the Internet is an ongoing problem across all media. At Packt, we take the protection of our copyright and licenses very seriously. If you come across any illegal copies of our works, in any form, on the Internet, please provide us with the location address or website name immediately so that we can pursue a remedy.

Please contact us at with a link to the suspected pirated material.

We appreciate your help in protecting our authors and our ability to bring you valuable content.

Questions

You can contact us at if you are having a problem with any aspect of the book, and we will do our best to address it.