Drupal 6 Site Blueprints - Ogunjobi Timi - E-Book

Drupal 6 Site Blueprints E-Book

Ogunjobi Timi

0,0
23,27 €

-100%
Sammeln Sie Punkte in unserem Gutscheinprogramm und kaufen Sie E-Books und Hörbücher mit bis zu 100% Rabatt.
Mehr erfahren.
Beschreibung

In Detail

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

Approach

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.

Who this book is for

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:

Android
iOS
von Legimi
zertifizierten E-Readern

Seitenzahl: 215

Bewertungen
0,0
0
0
0
0
0
Mehr Informationen
Mehr Informationen
Legimi prüft nicht, ob Rezensionen von Nutzern stammen, die den betreffenden Titel tatsächlich gekauft oder gelesen/gehört haben. Wir entfernen aber gefälschte Rezensionen.



Table of Contents

Drupal 6 Site Blueprints
Credits
About the Author
About the Reviewers
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Errata
Piracy
Questions
1. I.M. Smart, Ph.D.—Building a Personal Site
Theme
Build I.M. Smart's site
Modules
Optional Core modules
Contributed modules
Basic content
Create a new Content type
Categorize content
Test the submission form
Images
Create the About Me page
Create Blog posts
Create a Publication
Create a Contact form
Display content
Create quick menus with the Taxonomy Menu module
Menus
Latest blog posts
Permissions
Finishing up
Summary
2. Verree High School—Building a School Site
Theme
Build the Verree High School site
Modules
Optional Core modules
Contributed modules
Enable modules
Configure the Webform module
Configure the File uploads module
Create the Downloads Content type
Handle attachments and images
Test the Downloads submission form
Create a Webform
Create Name field
Create an Email field
Create a Gender field
Create the Date of Birth field
Create the Interest field
View the Form
Display content
Downloads summary Page
Create Menus
Finishing up
Summary
3. Global Hitchhikers Club—Building an Aficionado's Site
Theme
Build the Global Hitchhikers Club site
Modules
Optional Core modules
Contributed modules
Basic content
User settings
User profile
Name
Date of Birth
Gender
Configure the Blog entry Content type
Images
Create new categories
Add new terms
Test the Blog submission form
Display content
Create quick menus with the Taxonomy Menu module
Quick searching
Menus
Finishing up
Summary
4. Breaking Events—Building an Events Site
Theme
Build the Breaking Events site
Modules
Optional Core modules
Contributed modules
Enable modules
Basic content
Configure the Events module
Event overview
Time zone handling
Date and time
Configure the Notification module
Configure the Event Content type
Images
Create new categories
Test the Event submission form
Display content
Create quick menus with the Taxonomy Menu module
Menus
Calendar and Upcoming events blocks
Finishing up
Summary
5. Drupbook—Building a Community Site
Theme
Build Drupbook
Modules
Optional Core modules
Contributed modules
Basic content
User settings
Name
Date of Birth
Gender
Faculty
About Me
Configure the Blog entry Content type
Images
Test the Blog submission form
Configure Polls
Configure Forums
Configure Chat
Configure Organic groups
Create new Group Content type
Create a Group
Put it all together
Front page
Menus
Finishing up
Summary
6. The Daily Drupe—Building a Newspaper Site
Theme
Build The Daily Drupe online
Modules
Optional Core modules
Contributed modules
Categorize content
Create new Content types
Create new categories
Test the submission form
Images
Display content
Create quick menus with the Taxonomy Menu module
Forums
The lead story block
The latest editorial block
The latest features block
The latest news block
Front page
Editorial and User login blocks
Finishing up
Summary
7. Dridgets Inc.—Building an E-commerce Site
Theme
Build the Dridgets Inc. web shop
Modules
Optional Core modules
Contributed modules
Basic Ubercart configurations
Image configurations
Basic Store settings
Country settings
Payment settings
Store settings
Shipping quote settings
Image handling
Add a Product to the store
Have we done this right?
Joe Bling selects a Dridget
Joe Bling is taken to the cart
Joe Bling goes for checkout
Shipping cost calculated
Display Products
Front page
Finishing up
Summary
8. Drupelburg Accommodations—Building a Directory Site
Theme
Build Drupelburg Accommodations
Modules
Optional Core modules
Contributed modules
Basic content
Images
Create new Content type
Create new categories
List categories
Add terms
Test the Houses for Rent submission form
Create postings
Display content
Create quick menus with the Taxonomy Menu module
Blocks
Front Panels
Search
Permissions
Finishing up
Summary
9. Nosh'r—Building a Photo Sharing Site
Theme
Build Nosh'r
Modules
Optional Core modules
Contributed modules
Configure the Fivestar module
Basic content
Create Images and galleries
Configure the Image Content type
Create the Image galleries
Image Taxonomies
Test the Image submission form
Display content
Create quick menus with the Taxonomy Menu module
Latest Image block
Site navigation
Create the Menu for Continent and Galleries page views
Assign the Gallery to the front page
Finishing up
Summary
10. Drupelburg Conference Venues—Building a Conference Facilities Booking Site
Theme
Build Drupelburg Conference Venues
Modules
Optional Core modules
Contributed modules
Configure the Availability Calendars module
Configure the Fivestar module
Basic content
Create a new Content type
Images
Test the Venue submission form
Edit the Availability Calendar
Display content
Quick searching
Other pages
Menus
Login and Navigation blocks
Finishing up
Summary
11. Alienspotting—Building a Google Map Site
Theme
Build Alienspotting
Modules
Optional Core modules
Contributed modules
Enable modules
Configure GMap
GMap Location
Configure Location
Basic content
Configure the Story Content type
Number of locations
Collection settings
Display settings
Images
Test the Story submission form
Display content
Node locations
Recent comments
Finishing up
Summary
12. Weird Hap'nins—Building a News Aggregating Site
Theme
Build Weird Hap'nins
Modules
Optional Core modules
Contributed modules
Configure the Poormanscron module
Configure the Aggregator module
Basic content
Add feeds
Display the feeds
Newsfeed blocks
Create the front page post
Menus
Finishing up
Summary
A. Installation and Configuration
Install on a local computer
Installation on Wampserver
Install Drupal 6 on localhost
Install Drupal on a remote server
Other installation possibilities
Configuration and backend administration
Site information
Theme settings
B. Optimizing your Site
Page cache
Minimum cache lifetime
Page compression
Block cache
Bandwidth optimizations
Optimize CSS files
Optimize JavaScript files
Clear cached data
Other optimization techniques
Throttle
Boost
Advanced cache
C. Themes and Modules
Index

Drupal 6 Site Blueprints

Timi Ogunjobi

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: 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]>)

Credits

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

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.

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.

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.

Preface

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!

What this book covers

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.

What you need for this book

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.

Who this book is for

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.

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 our text like this: "Click on the edit link in front of the vocabulary Continent".

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 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.

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 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

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.

Questions

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.

Chapter 1. I.M. Smart, Ph.D.—Building a Personal Site

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:

An "About me" page—showing his personal profile and interestsA page that will list all of his publicationsA Blog to tell the world what he is currently doing, with a list of the latest blog posts displayed on the front pageA Contact form that site visitors can use to send an email to I.M. Smart

Theme

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:

Build I.M. Smart's site

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:

To create a new Content type called "Publication", under which he can list all of his workTo be able to allocate terms to describe each added workTo be able to display a Page view of the list of publicationsTo be able to create a Block view of the list of his daily blog postsTo create a simple Contact form

Modules

In order to create the desired web site, we will be using some essential Drupal modules.

Optional Core modules

The following optional Core modules will be required:

Blog—will enable him create his blog postsTaxonomy—will enable him to classify his blog postsComment—will allow all visitors to his web site to comment on, and to discuss his blog posts and publicationsContact—will allow site visitors to send him personal messagesUpload—will allow the upload of files into content

Contributed modules

The following contributed modules will also be used:

Taxonomy Menu—will allow taxonomy vocabularies to be transformed into menus easilyIMCE—will give the ability to upload and manage files and imagesImage—will allow the inclusion of images in content

Basic content

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".

Create a new Content type

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:

Click on the Add content type link at the top of the page. You will then be presented with a form.Add the Content type description and the general rules for the adding and display of content for this new Content type, in the places where they need to be in the form. Here are some guidelines:
a. In the Identification fields, add the Name and the Description of the Content type (in this case "Publication").b. In the Submission form settings, you can choose the titles that you want to give the fields. By default, you are presented with Title (for the title of the submission), Body (for the main story), and also fields specifying the minimum length of the article before it can be accepted for submission, as well as another place where you can describe submission guidelines for this Content type. Leave this at the system default setting.c. In the Workflow setting we need to determine the default options:
i. Do you want the article to be immediately published and available for use on the site, immediately after submission? If so, select the Published checkbox.ii. Do you want to promote the article to the front page? If so, select the Promoted to front page checkbox.iii. Do you want the article to remain at the top of the list of contents on the site? If so, select the Sticky at top of list checkbox.
d. In the Comments settings panel, indicate whether you want to allow comments to be made on articles of this Content type or not, and if you do, how these comments will be handled. As previously mentioned, Smart wants to allow comments to be added to his publications by site visitors.

Categorize content

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.