Drupal 6 Site Blueprints Ready-made plans for 12 different professional Drupal sites Timi Ogunjobi BIRMINGHAM - MUMBAI This material is copyright and is licensed for the sole use by William Anderson on 26th August 2009 4310 E Conway Dr. NW, , Atlanta, , 30327 Drupal 6 Site Blueprints 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: 1120809 Published by Packt Publishing Ltd. 32 Lincoln Road Olton Birmingham, B27 6PA, UK. ISBN 1-904819-04-1 www.packtpub.com Cover Image by Karl Moore ([email protected]) This material is copyright and is licensed for the sole use by William Anderson on 26th August 2009 4310 E Conway Dr. NW, , Atlanta, , 30327 Credits Author Editorial Team Leader Timi Ogunjobi Akshara Aware Reviewers Project Team Leader Dan Morrison Priya Mukherji Ken Rickard Project Coordinator Ashwin Shetty Acquisition Editor David Barnes Proofreader Dirk Manuel Development Editor Dhiraj Chandiramani Indexer Monica Ajmera Technical Editor Hithesh Uchil Production Coordinator Dolly Dasilva Copy Editor Leonard D'Silva Cover Work Dolly Dasilva This material is copyright and is licensed for the sole use by William Anderson on 26th August 2009 4310 E Conway Dr. NW, , Atlanta, , 30327 About the Author 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. This material is copyright and is licensed for the sole use by William Anderson on 26th August 2009 4310 E Conway Dr. NW, , Atlanta, , 30327 About the Reviewers 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. This material is copyright and is licensed for the sole use by William Anderson on 26th August 2009 4310 E Conway Dr. NW, , Atlanta, , 30327 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 material is copyright and is licensed for the sole use by William Anderson on 26th August 2009 4310 E Conway Dr. NW, , Atlanta, , 30327 Table of Contents Preface 1 Chapter 1: I.M. Smart, Ph.D.—Building a Personal Site 7 Theme 8 Build I.M. Smart's site 8 Modules 9 Optional Core modules 9 Contributed modules 9 Basic content 9 Create a new Content type 10 Categorize content 11 Test the submission form 14 Images 15 Create the About Me page 16 Create Blog posts 17 Create a Publication 18 Create a Contact form 18 Display content 20 Create quick menus with the Taxonomy Menu module 20 Menus 20 Latest blog posts 22 Permissions 22 Finishing up 23 Summary 24 Chapter 2: Verree High School—Building a School Site 25 Theme 26 Build the Verree High School site 26 This material is copyright and is licensed for the sole use by William Anderson on 26th August 2009 4310 E Conway Dr. NW, , Atlanta, , 30327 Table of Contents Modules 27 Optional Core modules 27 Contributed modules 27 Enable modules 27 Configure the Webform module 28 Configure the File uploads module 29 Create the Downloads Content type 30 Handle attachments and images 32 Test the Downloads submission form 33 Create a Webform 34 Create Name field 37 Create an Email field 38 Create a Gender field 39 Create the Date of Birth field 40 Create the Interest field 41 View the Form 42 Display content 43 Downloads summary Page 43 Create Menus 43 Finishing up 45 Summary 45 Chapter 3: Global Hitchhikers Club—Building an Aficionado's Site 47 Theme 48 Build the Global Hitchhikers Club site 49 Modules 49 Optional Core modules 50 Contributed modules 50 Basic content 50 User settings 51 User profile 52 Name 52 Date of Birth 54 Gender 54 Configure the Blog entry Content type 56 Images 58 Create new categories 59 Add new terms 61 Test the Blog submission form 62 [ ii ] This material is copyright and is licensed for the sole use by William Anderson on 26th August 2009 4310 E Conway Dr. NW, , Atlanta, , 30327 Table of Contents Display content 63 Create quick menus with the Taxonomy Menu module 63 Quick searching 64 Menus 64 Finishing up 65 Summary 66 Chapter 4: Breaking Events—Building an Events Site 67 Theme 68 Build the Breaking Events site 69 Modules 69 Optional Core modules 69 Contributed modules 69 Enable modules 70 Basic content 70 Configure the Events module 70 Event overview 71 Time zone handling 71 Date and time 72 Configure the Notification module 72 Configure the Event Content type 73 Images 75 Create new categories 75 Test the Event submission form 78 Display content 80 Create quick menus with the Taxonomy Menu module 80 Menus 81 Calendar and Upcoming events blocks 82 Finishing up 84 Summary 85 Chapter 5: Drupbook—Building a Community Site 87 Theme 88 Build Drupbook 88 Modules 89 Optional Core modules 89 Contributed modules 90 Basic content 90 User settings 90 Name 92 Date of Birth 94 Gender 94 [ iii ] This material is copyright and is licensed for the sole use by William Anderson on 26th August 2009 4310 E Conway Dr. NW, , Atlanta, , 30327
Description: