Drupal: Creating Blogs, Forums, Portals, and Community Websites

There is a newer version of this book available - Drupal 7
Drupal: Creating Blogs, Forums, Portals, and Community Websites
eBook: $23.99
Formats: PDF, PacktLib, ePub and Mobi formats
save 50%!
Print + free eBook + free PacktLib access to the book: $63.98    Print cover: $39.99
save 37%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Table of Contents
Sample Chapters
  • David Mercer's new Drupal 7 book is now here!
  • Install, configure, administer, maintain and extend Drupal.
  • Control access with users, roles and permissions
  • Structure your content using Drupal’s powerful CMS features
  • Includes coverage of  release 4.7

Book Details

Language : English
Paperback : 284 pages [ 235mm x 191mm ]
Release Date : May 2006
ISBN : 1904811809
ISBN 13 : 9781904811800
Author(s) : David Mercer
Topics and Technologies : All Books, CMS and eCommerce, Content Management (CMS), Drupal, Open Source

Table of Contents

Chapter 1: Introduction to Drupal
Chapter 2: Setting Up the Development Environment
Chapter 3: Basics I: Site Configuration
Chapter 4: Basics II: Adding Functionality
Chapter 5: Users, Roles, and Permissions
Chapter 6: Basic Content
Chapter 7: Advanced Content
Chapter 8: Drupal's Interface
Chapter 9: Advanced Features and Modifications
Chapter 10: Running Your Website
Appendix A: Deployment
  • Chapter 1: Introduction to Drupal
    • Drupal—An Overview
    • How Drupal Came to Be
    • What Drupal Has to Offer
    • Uses of Drupal
    • Building a Drupal Site
      • Planning Your Site
      • Analyzing the Proposed Solution
        • Feasibility
        • Phone a Friend
        • Critical versus Desirable Criteria
      • The Demo Website
    • The Drupal Community
      • Support
      • Handbooks
      • Forum
      • Downloads
      • Contribute
      • Contact and Community
    • The Drupal License
    • Summary
  • Chapter 2: Setting Up the Development Environment
    • The Drupal Environment
    • Obtaining and Installing PHP, Apache, and MySQL
    • Obtaining and Installing Drupal
    • Upgrading Drupal
    • Troubleshooting Common Problems
    • A Short Tour of Drupal
      • A Couple of Important Settings
      • Creating an Administrative User
      • Using the Administrative Panel
      • A Sample Drupal Page
    • Summary
  • Chapter 4: Basics II: Adding Functionality
    • Adding Modules
    • Third-Party Modules
      • Downloading Modules
      • Installing Modules
    • Configuring Modules
      • Forum
      • Locale
      • Comments
      • Content Types
      • Search
      • Upload
    • Menus and Primary Links
    • Using Modules
    • Working with Blocks
      • Adding Blocks
      • Configuring Blocks
    • Summary
  • Chapter 5: Users, Roles, and Permissions
    • Planning an Access Policy
    • Roles
    • Permissions
      • Setting Permissions with Taxonomy Access Control
    • Users
      • Administering Users
      • Configuring Users
    • Access Rules
    • Summary
  • Chapter 6: Basic Content
    • Content Types
    • Working with Content
      • Content Options
      • Administering Content
    • Content-Related Modules
      • Aggregator
      • Archive
      • Similar Entries
      • Taxonomy Block
    • Summary
  • Chapter 7: Advanced Content
    • HTML, PHP, and Content Posting
      • Input Formats and Filters
      • HTML
      • Creating a Feature-Rich Page
      • Posting a Feature-Rich Page
    • Categorization
      • What and Why?
      • Implementing Taxonomies in Drupal
        • Introduction to Vocabularies
        • Dealing with Descriptors
        • Posting Content with Categories Enabled
        • Hierarchies
        • Content Structure
    • Summary
  • Chapter 8: Drupal's Interface
    • Planning a Web-Based Interface
      • Visual Design
      • Language
      • Images
    • How Drupal's Interface Works
    • CSS
    • Themes
      • Choosing a Base Theme
      • Configuring Your Themes
      • Customizing Your Theme
        • Images
        • Colors
        • Page Modifications
    • Summary
  • Chapter 9: Advanced Features and Modifications
    • Flexinode
      • Downloading and Installing Flexinode
      • Creating a Custom Content Type
      • Adding Structure
    • AdSense
      • Installing and Configuring AdSense
      • Adding Google Ads to Your Pages
      • Adding Google Ads to Your Content
    • Advanced Site Modifications
      • Scrolling News Ticker
        • Obtaining the Ticker
        • Creating the Content
      • Dynamic Content Page
        • Incorporating the Application into the Theme
        • Building the Content Page
    • Summary
  • Chapter 10: Running Your Website
    • Backups
      • phpMyAdmin
      • The mysqldump Utility
    • Cron and Scheduled Tasks
      • The Crontab
      • Windows Scheduled Tasks
      • Poormanscron
    • Throttling
    • Patching
    • Website Activities
      • Search Engine Optimization
      • Maintaining Users
    • Summary
  • Appendix A: Deployment
    • Getting Ready to Deploy
      • Make Sure the Host Is Ready
      • Get the Files Ready
      • Get the Database Ready
    • Transfer the Files
    • Setting Up the Site
      • Set Up the Files
      • Set Up the Database
      • Configure the Site
      • Access Problem?
    • Testing
    • Summary

David Mercer

David Mercer was born in August 1976 in Harare, Zimbabwe. Having always had a strong interest in science, David came into regular contact with computers at university where he graduated "cum laude" with majors in applied math and math. His technical books are now sold worldwide and have been translated into French, German, Polish, Greek, Spanish and many more. His book on Drupal 6 was reviewed on Slashdot and went on to become a best seller. Mercer's books are recommended reading at higher learning institutes like MIT, and he has a write-up on Wikipedia. David divides his time between consulting for companies and organizations in a wide variety of industries, helping them to develop and implement cutting edge systems. He also contributes to interesting web-based projects like design-a-webpage (http://www.design-a-webpage.com) that allows people to create beautiful, effective landing pages in minutes - absolutely no code or Web experience required. He also maintains a blog, training and support site for his readers at http://www:siteprebuilder.com. Site prebuilder provides quizzes and exercises that accompany his books, and serves as his primary online presence and contact point. When he isn't working (which isn't that often) he enjoys playing guitar (generally on stage and unrehearsed) and getting involved in outdoor activities ranging from touch rugby and golf to water skiing and snowboarding.

Code Downloads

Download the code and support files for this book.

Submit Errata

Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.


- 1 submitted: last submission 11 Jan 2012

Errata type: Errata | Page number: 64 |

DMHL Menu does not display the list of blocks in the Admin-Blocks page.


Sample chapters

You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.

Frequently bought together

Drupal: Creating Blogs, Forums, Portals, and Community Websites +    Deep Inside osCommerce: The Cookbook =
50% Off
the second eBook
Price for both: $27.00

Buy both these recommended eBooks together and get 50% off the cheapest eBook.

What you will learn from this book

Chapter 1 introduces you to the world of Drupal and looks at where Drupal comes from, where its going and what it can offer you. Because it is important to understand the nature of the tasks which lie ahead, it also discusses how to plan and build your website, taking a sneak preview of the book's demo Website in the process. Finally, we scrutinize the Drupal community and learn how to make the most of Drupal as an organized, living entity and not just a piece of software.

Chapter 2 deals with how to get everything you need up and running on a development machine and also briefly looks at how all the requisite technologies gel together to produce your working Drupal site. Once everything is up and running, and after looking over some of the more common installation problems, the chapter presents a short tour of Drupal in order to give you an idea of what to expect.

Chapter 3 looks at the most general settings which all Drupal administrators need to contend with. Everything from determining your site's name to dealing with the cache or file system settings gets treated here before we look at more focused and complex issues in the chapters to come.

Chapter 4 sees us adding functionality to the newly created site. The focus of this chapter is really on modules and how they can be added and enabled, or even how to obtain modules that are not part of the standard distribution. Since blocks are often required to display the functionality provided by modules, this chapter ends off with a discussion on how to control blocks.

Chapter 5 concerns itself with the topic of access control. Drupal has a sophisticated role based access control system, which is fundamentally important for controlling how users access your site. This chapter will give you the information you need to implement whatever access controls you require.

Chapter 6 gets to the heart of the matter by beginning the book's coverage on content. Working with content, what content types are available, administering content and even a discourse on some of the more common content related modules serve as a basis for moving to more advanced content related matters that follow in the next chapter.

Chapter 7 gives you the edge when it comes to creating engaging and dynamic content. While this chapter doesn't require you to be an expert in HTML, PHP and CSS it does introduce you to the basics and shows how, with a little knowledge, extremely powerful and professional content can be created. That's only half the story, because later on it looks at categorization and how this particular feature of Drupal sets it apart from everything else out there.

Chapter 8 gives you a run down of how attractive interfaces are created in Drupal through the use of themes. As well as discussing briefly some of the considerations that must be taken into account when planning your website, it ends off by looking at how to make important modifications to your chosen theme.

Chapter 9 really adds the icing on the cake by looking at a host of more advanced topics. From creating flexible content types and generating revenue from ads, all the way through to building dynamic content using Ajax, you will find something to enhance your website and add that something special.

Chapter 10 takes a pragmatic look at the type of tasks you will need to be proficient in in order to successfully run and maintain a Drupal site. Whether its setting up cron jobs or making backups of your database, everything you need to do throughout the course of running your newly created website will be covered here.

Appendix A deals with the all important topic of deployment. Because all major work should be done on a copy of your Website on a development machine, this appendix presents a sound process for taking the finished product and making it available for public consumption on your host site.

Drupal Hosting:


In Detail

Drupal is one of the most popular content management systems on the internet. Based on PHP/MySQL, its power and flexibility combined with its exceptional design mean it is already on the way to becoming the de facto standard for CMS Websites. Drupal’s modular design and structured source code make it both highly flexible and easily extended and modified. Drupal is extremely scalable, making it ideal for both a simple personal website as well as an industrial strength commercial or institutional web presence.

Drupal is a model open source project in that it has a large, friendly community of people who contribute to the project in various ways.  Drupal is not only free and easy to use, but this community provides on going mutual support.

Drupal’s power means choosing an initial pathway can be daunting. The flexibility and power of its content management features mean the right approach needs to be taken.  This book takes you from initial set up through site design and creation in a series of carefully structured steps. While there are a few advanced topics that are beyond the scope of the book, all of the core stages of creating a website using Drupal are covered in detail.


A complete guide to every aspect of creating a variety of different websites using Drupal.  A trove of well-considered and practical information is presented in a logical and intuitive manner so that you can either build up your site step by step by reading from cover to cover or, alternatively, focus on your specific needs by diving into each chapter as required. 

This book has been written against the latest release v4.7.

For David Mercer's new Drupal 7 book click here.


Who this book is for

This book will suit anyone who has a need to create a content rich website. Whether you are:

  • Adding a personal web page
  • Building a forum
  • Writing a collaborative book
  • Retailing goods
  • Creating a blog
  • Launching a community Website

This book will prove to be an indispensable companion. Both experts and beginners to computing alike will find the information contained herein to be accessible and easy to intuit.

Code Download and Errata
Packt Anytime, Anywhere
Register Books
Print Upgrades
eBook Downloads
Video Support
Contact Us
Awards Voting Nominations Previous Winners
Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software