23,27 €
Drupal is a powerful CMS used to build all kinds of web sites. But when you're urgently tasked with building a specific kind of site, it's not always obvious which plugins to use or where to begin. If I could show you simple directions to create Drupal web sites for personal or business use within a day, without the initial need to bother about the in-depth details of using Drupal, would you be interested? Build first learn later!
This book will give you a competitive edge by helping you to rapidly implement prototype web projects for personal and business use. With this book almost anyone with just a bit of Drupal knowledge can build a web site and tailor it to his/he needs.
This book is a project-based guide to developing web applications with Drupal. It should enable you to take full advantage of the powerful core features offered by the Drupal framework together with the many available contributed modules and themes to develop applications within hours. You will be guided, by means of illustrated hands-on example projects, to build foundation projects that you may easily adapt or enhance to create even more powerful web projects. If you want to develop exciting web applications for profit or pleasure this book is for you.
This book is, however, not an introduction to Drupal, nor an in-depth manual for using Drupal; and even though it partially covers some basics such as installation and how to create nodes, this is only done in the process of building the featured projects. Readers should therefore already have an understanding of the basic Drupal terminologies, how to access and to use the administration pages, and also how to customize by uploading and engaging new themes
This project-oriented book uses illustrative screenshots to provide a starting foundation for 12 powerful Drupal web site projects for tailoring to your needs, including community, blog network, e-commerce store, photo sharing, Google mashup, and so on
The hands-on example projects in this book are based on fictitious web site development briefs, and they illustrate practical ways of applying Drupal. The book dives straight into the process of constructing the featured projects. A chapter is dedicated to each example web site project. Each chapter contains a fictitious brief from which we derive the list of core and contributed modules that we will require to implement the project. Then each chapter progresses into step-by-step instructions for building the web project, aided by the extensive use of screenshots.
When you have completed each project, you will have the knowledge and confidence to apply the techniques you have learned to create your own custom web application.
This book is for anybody who wants to build a range of Drupal sites, and see how to apply the many available Drupal plugins and features in different scenarios. If you develop Drupal sites professionally, or would like to try building web sites as a freelancer, this is a great book to help you get started.
Sie lesen das E-Book in den Legimi-Apps auf:
Seitenzahl: 215
Copyright © 2009 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: August 2009
Production Reference: 2140809
Published by Packt Publishing Ltd.
32 Lincoln Road
Olton
Birmingham, B27 6PA, UK.
ISBN 978-1-847199-04-1
www.packtpub.com
Cover Image by Karl Moore (<[email protected]>)
Author
Timi Ogunjobi
Reviewers
Dan Morrison
Ken Rickard
Acquisition Editor
David Barnes
Development Editor
Dhiraj Chandiramani
Technical Editor
Hithesh Uchil
Copy Editor
Leonard D'Silva
Editorial Team Leader
Akshara Aware
Project Team Leader
Priya Mukherji
Project Coordinator
Ashwin Shetty
Proofreader
Dirk Manuel
Indexer
Monica Ajmera
Production Coordinator
Dolly Dasilva
Cover Work
Dolly Dasilva
Timi Ogunjobi is a Technical Writer, Web Developer, and Open Source evangelist. Trained as an engineer, Timi has been developing web applications, in several frameworks, for more than five years, and has also been writing, for more than a decade, on a wide variety of topics, including fiction, business, and technology.
Timi balances his time between programming, reviewing, writing, and contributing to interesting web-based and community projects. When he isn't working (which isn't that often) he enjoys playing jazz guitar and getting involved in outdoor activities—principally cricket, golf, and swimming.
Timi is the principal architect of Websesame—www.websesame.com—a software development and technical writing company based primarily in London, but also with a presence in USA, and in Africa to where he loves to retreat. Websesame typically undertakes CMS, LMS, and ERP based projects and web applications in particular.
Timi has previously had another Drupal book published, titled "Adventures in Drupal". He has also published several fiction and nonfiction books, and has been featured in several anthologies.
The creation of this book was first made possible by God.
Then it was made possible by David Barnes of Packt Publishing who said "If you think it is possible, then go for it!".
My family facilitated the creation of this book by knowing how important it is to keep out of my way (especially when I am on a mission from God).
Finally, it was made possible by me, of course.
I thank you all for reading ... and also give special thanks to Lyn Brown.
Dan Morrison is dman on Drupal.org. He has been working with computers since the times when 3.5 KB RAM was a big deal, the Internet since the days it was in black and white, and text-only, and has been developing almost exclusively with Drupal for several years now.
Based in Wellington, New Zealand, he helped develop New Zealand's first online banking system in 1997. Since then—in between periods spent juggling cocktails in disco bars—he's worked on many different web sites, including several of the largest intranets in New Zealand.
Currently he spends too much time making things in Drupal just because they are cool, and works at helping companies and government departments with semantic data migration and metadata publishing in his spare time. Late at night, he helps on the Drupal forum and struggles with source control.
He likes coffee, cats, and cocktails.
Ken Rickard is a senior programmer at Palantir.net, a Chicago-based firm specializing in developing Drupal web sites. He is a frequent contributor to the Drupal project and is the maintainer of the Domain Access, MySite, and Menu Node API modules. At Palantir, he architects and builds large-scale web sites for a diverse range of customers, including Foreign Affairs magazine and the University of Chicago.
From 1998 through 2008, Ken worked in the newspaper industry, beginning his career managing web sites, and later becoming a researcher and consultant for Morris DigitalWorks. At Morris, Ken helped launch BlufftonToday.com, the first newspaper web site launched on the Drupal platform. He later led the Drupal development team for SavannahNOW.com. He co-founded the Newspapers on Drupal group (http://groups.drupal.org/newspapers-on-drupal) and is a frequent advisor to the newspaper and publishing industries.
In 2008, Ken helped start the Knight Drupal Initiative, an open grant process for Drupal development, funded by the John L. and James S. Knight Foundation. He is also a member of the advisory board of PBS Engage, a Knight Foundation project to bring social media to the Public Broadcasting Service.
I must thank the entire staff at Palantir, the Drupal community, and, most of all, my lovely and patient wife, Amy, without whom none of this would be possible.
This is a book about building simple web sites with Drupal—and having fun doing it. This book will enable you to build 12 exciting and simple web projects, and to create quick prototypes of commonly-used applications within hours. This book will give you a competitive edge by helping you to rapidly implement web projects for personal and business use—without having to pay a developer to do it for you. With this book, almost anyone with just a bit of Drupal knowledge can build a complex web site by mixing the individual projects together. Instant Drupal!
The hands-on example projects in this book are based on fictitious web site development briefs, and they illustrate practical ways of applying Drupal. A chapter is dedicated to each example web site project. Each chapter contains a fictitious brief from which is derived the list of core and contributed modules that will be required to implement the project.
In Chapter 1, Isaac Meredith Smart is a professor of Sociology at Drupelburg University. His need is quite simple, and all he intends to do is to build a personal web site that will provide some shameless publicity to promote him professionally.
In Chapter 2, Verree High School is one of the most popular schools in Drupelburg. The school board of governors has decided to build a new web site, which will basically tell the world about the school, its facilities, and its staff.
In Chapter 3, The Global Hitchhikers Club is an online club for hobos and compulsive travelers. The purpose of the club web site is to enable members to keep an online blog of their travels, and provide a means for advising other club members on their own travels.
In Chapter 4, "Electric" Skid Jackson is a retired break-dancer and a full time choreographer and owner of the Def Freeze dance crew. Skid has an idea for a web site where all of the street dance events all over the world can be listed according to their location, so that he can be the first to know what is shaking.
In Chapter 5, Tony Tortilla is a student at Drupelburg University. Tony thinks that the social life could be vastly improved if the University had its own community web site where the students could get to know each other a little better.
In Chapter 6, The Daily Drupe is the only newspaper in Drupelburg, and it has a local circulation. The intention is to replicate the content of The Daily Drupe online, in a way that will enable the online edition to be easily updated on a real-time basis.
In Chapter 7, Dridgets Inc is the foremost manufacturer of bespoke widgets in Drupelburg. Their dridgets have won awards internationally and are considered to be vastly superior to other, mass-produced widgets, manufactured by so many unscrupulous garage factories. In order to consolidate their success, Dridgets have decided to set up an online e-commerce store to sell their widgets.
In Chapter 8, Wally Fishbourne has the idea to create an online directory where people can post details of accommodation available for rent, share, and sale all over Drupelburg. He is looking at a simple directory with listing and display features, rather in the style of Gumtree and Craigslist.
In Chapter 9, William and Elizabeth Bunter are organizing an online food appreciation community. They intend to enroll members from all over the world to share their food photos on a new web site, where the users will submit photos of their food for all other members to admire and rate.
In Chapter 10, Drupelburg Conference Venues (DCV) has been organizing conferences and events for many years. Now they think that much of their operation may be eased and much of their overheads reduced if they had a web presence. DCV is looking to create a web site where facilities can be listed and booked in real time.
In Chapter 11, Winston Groovy returned home to his wife Rita in Kingston Jamaica after being missing for two days, claiming to have been abducted by aliens. So Rita Groovy has decided to create a web site to aggregate occurrences of alien sightings all over the world to save other people the heartache of having their loved ones permanently lost to extra-terrestrial kidnappers.
In Chapter 12, bad news is always good news for the press. Vaughan Pyre has decided to take advantage of this and create a web site that will aggregate bad news and weird happenings from all over the world. The content of the site will be entirely derived from RSS feeds from several sources, with each feed being automatically retrieved and its items displayed on the web site.
In Appendix A you will learn to install and configure Drupal.
In Appendix B you will learn to optimize your Drupal site.
In Appendix C you will find a list of modules and themes used in this book, as well as links to their project pages.
All of the projects in this book are based on Drupal 6. A list of the contributed modules and themes employed, and links to their project pages, is provided in Appendix C.
This book is for anyone who wants to build a range of Drupal sites, and who wants to see how to apply the many available Drupal plugins and features in different scenarios. If you develop Drupal sites professionally, or would like to try building web sites as a freelancer, this is a great book to help you get started.
However, this book is not for absolute beginners. It is not a "dummies" book and users are advised to familiarize themselves with basic Drupal terminology and operations such as creating content, and uploading and enabling themes and modules. Some installation and configuration details are provided in the Appendix, and users are also encouraged to visit the Drupal project site (http://drupal.org) where ample help exists both in documentation and a very active users' forum.
This book will not make you an expert in developing with Drupal; it will not even bring you close. However, it should help you get your feet wet and make you unafraid to plunge deeper into the wonders of creating killer sites with a truly amazing framework.
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 our text like this: "Click on the edit link in front of the vocabulary Continent".
Tips and tricks appear like this.
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 email to <[email protected]>, and 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 send an email to <[email protected]>.
If there is a topic that you have expertise in and you are interested in either writing or contributing to a book on, refer to author guide on www.packtpub.com/authors.
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.
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 so, you can save other readers from frustration, and help us to 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 let us know link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata added to any list of existing errata. Any existing errata can be viewed by selecting your title from http://www.packtpub.com/support.
Piracy of copyright 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 <[email protected]> with a link to the suspected pirated material.
We appreciate your help in protecting our authors, and our ability to bring you valuable content.
You can contact us at <[email protected]> if you are having a problem with any aspect of the book, and we will do our best to address it.
Isaac Meredith Smart is a professor of Sociology at Drupelburg University. His need is quite simple, and all he intends to do is to build a personal web site that will provide some shameless publicity to promote him professionally. The objective is to give his students, as well as the entire academic community, as much information about himself as is decently permitted. Isaac wants his web site to have the following features:
Smart has chosen the "AD The Morning After" theme (which is a contribution to the Drupal project) because he loves the design. The front page will feature a teaser for Smart's profile at the top of the content area, and a list of his most recent blog posts in a block at the bottom of the front page. The final layout of Smart's web site can be seen in the following screenshot:
Okay, this guy Smart doesn't appear particularly likeable does he, and isn't this quite typical of university professors? But let's put our prejudices aside for a couple of hours and get his work done for him. The major tasks in building the web site for Isaac Smart will be:
In order to create the desired web site, we will be using some essential Drupal modules.
The following optional Core modules will be required:
The following contributed modules will also be used:
Smart's site is quite basic. The About Me page can be safely created from the Story Content type, and that is what we are going to do. However, to add an element of danger to the project, we will be including a new Content type for his publications, and we will call it just that—"Publication".
By navigating to the Administer page of the site and then to the Content management section, we will find the Content types link.
If we access this page, then we will see the various Content types listed there. Here, we need to create a new Content type for "Publication".
To create the "Publication" Content type:
We first need to establish how the content is going to be organized for use on the site. This is quite easy because we have created only one new Content type, named Publication, that will have taxonomy terms—Books and Papers—attached to it. By doing this, we will have set the ground rules for how content will be created and displayed on the site.