Book Image

Building Powerful and Robust Websites with Drupal 6

By : David Mercer
Book Image

Building Powerful and Robust Websites with Drupal 6

By: David Mercer

Overview of this book

<p><br />Drupal is a hugely popular and widely celebrated open-source Content Management System that is day-by-day becoming the first choice of people for building blogs and other websites. Sir Tim Berners-Lee (the father of the Internet), Hillary Clinton, and many others utilize Drupal to fulfil their online requirements.<br /><br />Drupal is an elegantly designed, well-supported and flexible platform that anyone can use in order to create their own website. With such a powerful tool at your fingertips there is no longer any need to pay professionals to design a site when you can do the same job yourself absolutely free. All it takes is a bit of practice!<br /><br />This book meets the booming demand for well presented, clear, concise, and above all practical information on how to move from knowing you want a website all the way through to designing and building it like a pro, and finally successfully managing and maintaining it.<br /><br />Experienced technical author David Mercer expertly guides the reader through all the stages of building a professional website in a plain, articulate manner. Aimed in particular at beginners to Drupal, this book will allow readers to advance rapidly up the learning curve to the point where they can tackle any problem with confidence.</p>
Table of Contents (16 chapters)
Building powerful and robust websites with Drupal 6
Credits
About the Author
About the Reviewer
Preface

Preface

The Internet is arguably one of the most profound achievements in human history. It has become so pervasive in our lives that we hardly even notice it—except when it happens to be unavailable! It's one of those things that make you sit back and wonder how people got along without it in the old days. Without the ability to surf the Internet to order groceries, do our banking, book flights and make travel arrangements, meet friends, meet partners, download music and videos, study, run businesses, trade shares, run campaigns, express views, share ideas, learn about other people… where would we be?

Fundamentally, in a world of so many people, where the sheer vastness of our societies is a hindrance to communication, the Internet has stepped up to the plate and brought everyone that little bit closer together. Utilizing a stunning array of technologies, spread out over the entire globe, the Internet has simply dropped the barriers of time and geographical distance to turn the entire world into a local community center.

Lately, the all-encompassing focus of commerce on the Internet has begun to shift. Millions upon millions of people are waking up to the possibility of sharing their lives and experiences with others through the medium of blogs and social media. Others simply want an online presence to show off their work, art, or music. Still others have important causes and need the Internet to disseminate information or provide a meeting point for like-minded people. Whatever the demands, the Internet has to find a way to efficiently meet these needs or face being superseded by something else in the future.

What the Internet needs is something that makes it easy for people to do whatever it is they want without having to pour intellectual resources into understanding the technologies on which the Internet is based. What the Internet has got is precisely this—Drupal!

Drupal is what you need to use to build anything from a static homepage, to a fully-fledged, customizable, and interactive website in several languages, with tens of thousands of users all over the world. Assuming you fall somewhere between these two extremes, this book is what you need to guide you on your way.

Building powerful and robust websites with Drupal 6 will help cut down your learning time by providing precisely the information you need when you need it. It will help to reduce the trial and error associated with learning Drupal and provide practical, methodical and efficient processes and content to help you become a knowledgeable and competent website creator and administrator.

What This Book Covers

Chapter 1 introduces you to the world of Drupal and looks at where Drupal comes from, where it's going, and what it can offer you. Because it is important to understand the nature of the tasks that lie ahead, it also discusses how to plan and build your website. 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 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, and also how to obtain modules that are not part of the standard distribution. This chapter ends off with a discussion on how to control blocks and menus.

Chapter 4 looks at the most general settings that 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 5 concerns itself with the topic of access control. Drupal has a sophisticated role-based access control system that is fundamentally important for controlling how users access your site. This chapter will give you the information required to implement proper access controls.

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 custom content can be created.

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 and 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 implementing openID functionality, to working with Actions and Triggers or providing enhanced language support, all the way through to building dynamic content using jQuery and Javascript, you will find something to enhance your website and add that something special.

Chapter 10 takes a pragmatic look at the types of tasks you will need to be proficient in to successfully run and maintain a Drupal site. Whether it's 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.

What You Need for This Book

You need to have the following:

  • PHP, Apache and MySQL (Apache2triad or XAMPP)

  • Drupal 6

Who is This Book for

This book is for people with little to now experience in website design, people who are not familiar with PHP, MySQL or HTML, and above all people with little to no experience in using Drupal. Intermediate Drupal users may also find this book helpful because of its broad, practical coverage of all the Drupal fundamentals.

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.

There are three styles for code. Code words in text are shown as follows: "We can include other contexts through the use of the include directive."

A block of code will be set as follows:

	#header {
background: #193547;
border: 1px solid #aaa;
border-bottom: none;
}

When we wish to draw your attention to a particular part of a code block, the relevant lines or items will be made bold:

#header {
background: #FF0000;

border: 1px solid #aaa;
border-bottom: none;
}

New terms and important words are introduced in a bold-type font. Words that you see on the screen, in menus or dialog boxes for example, appear in our text like this: "clicking the Next button moves you to the next screen".

Note

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 drop an email to , making sure to mention the book title in 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 email .

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.

Errata

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

Questions

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