<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>

<channel>
	<title>GoMediaZine &#187; Web Development</title>
	<atom:link href="http://www.gomediazine.com/category/tutorials/web-development/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gomediazine.com</link>
	<description>Real world advice from working artists and designers.</description>
	<pubDate>Tue, 18 Nov 2008 19:15:21 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
	<language>en</language>
			<item>
		<title>Create a Killer Band Site in Drupal - Part 6 - Additional Functionality and Resources</title>
		<link>http://www.gomediazine.com/tutorials/create-a-killer-band-site-in-drupal-part-6-additional-functionality-and-resources/</link>
		<comments>http://www.gomediazine.com/tutorials/create-a-killer-band-site-in-drupal-part-6-additional-functionality-and-resources/#comments</comments>
		<pubDate>Wed, 12 Mar 2008 17:03:47 +0000</pubDate>
		<dc:creator>Jeff Finley</dc:creator>
		
		<category><![CDATA[Tutorials]]></category>

		<category><![CDATA[Web Development]]></category>

		<category><![CDATA[grunge]]></category>

		<category><![CDATA[tutorial]]></category>

		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.gomediazine.com/tutorials/create-a-killer-band-site-in-drupal-part-6-additional-functionality-and-resources/</guid>
		<description><![CDATA[<p><em>This tutorial is another special series written guest author <strong>Sean Hodge</strong> from <a href="http://www.aiburn.com" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/www.aiburn.com');">aiburn.com</a> and <a href="http://www.connectioncube.com/" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/www.connectioncube.com');">Connection Cube</a>.  He is an expert in Drupal, which I am totally not familar with.  He intrigued me when he told me that the majority of the bands&#8230;</em></p>]]></description>
			<content:encoded><![CDATA[<p><em>This tutorial is another special series written guest author <strong>Sean Hodge</strong> from <a href="http://www.aiburn.com" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/www.aiburn.com');">aiburn.com</a> and <a href="http://www.connectioncube.com/" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/www.connectioncube.com');">Connection Cube</a>.  He is an expert in Drupal, which I am totally not familar with.  He intrigued me when he told me that the majority of the bands on Sony&#8217;s record label are powered by <a href="http://drupal.org/" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/drupal.org');">Drupal</a>.  Drupal is basically an open source CMS, and I was interested in learning more about it.  So that&#8217;s why he&#8217;s writing this tutorial for us.  You can learn along with me!  </em></p>
<p><a href="http://www.gomediazine.com/tutorials/create-a-killer-band-site-with-drupal-introduction/" >Read the introduction - What&#8217;s Drupal and why?</a><br />
<a href="http://www.gomediazine.com/tutorials/create-a-killer-band-site-in-drupal-part-1-design/" >Read Part 1 - Design it Illustrator</a><br />
<a href="http://www.gomediazine.com/tutorials/create-a-killer-band-site-in-drupal-part-2-slicing-in-illustrator/" >Read Part 2 - Slicing it Illustrator</a><br />
<a href="http://www.gomediazine.com/tutorials/create-a-killer-band-site-in-drupal-part-3-xhtml/" >Read Part 3 - XHTML</a><br />
<a href="http://www.gomediazine.com/tutorials/create-a-killer-band-site-in-drupal-part-4-theming-drupal/" >Read Part 4 - Theming Drupal</a><br />
<a href="http://www.gomediazine.com/tutorials/create-a-killer-band-site-in-drupal-part-5-drupal-admin/" >Read Part 5 - Drupal Admin</a></p>
<h2>Introduction</h2>
<p>In our last tutorial we covered the setup of our band website. We now have a brochure style site in place that could be used to promote GoBand or add community building functionality to. We&#8217;ll wrap up this series by looking at the resources Drupal has to offer to build on this foundation and extend what we have setup.</p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20six/front_annonymous.jpg" alt="Front Page" width="500" height="458" title="Create A Killer Band Site In Drupal   Part 6   Additional Functionality And Resources" /></p>
<h2>Recommended Modules</h2>
<p>There are a handful of Drupal Modules that will help any website. Here is a list with some explanation of what these modules do. <span id="more-530"></span> </p>
<ul>
<li><a href="http://drupal.org/project/Views" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/drupal.org');">Views</a> - Extends the functionality of Drupal by allowing you to reformat content based on a plethora of criteria and then present it on a page or within a block. For example you could show all work that an author created with a view. Views has a handy interface to help you out. This is one of the best modules out there and will likely be in the core of Drupal in the future.</li>
<li><a href="http://drupal.org/project/cck" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/drupal.org');">Content Construction Kit (CCK)</a> - Allows you to add form fields to content. Some of the core functionality of CCK was already moved into Drupal 5. The ability to add custom content types starting as part of CCK before migrating into Drupal Core. If you ever need to define custom fields for new content for your clients this is the set of modules to use.</li>
<li><a href="http://drupal.org/project/pathauto" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/drupal.org');">Path Auto</a> - Takes the Drupal default URL paths and allows you to make them readable automatically. There are options you can choose between that will change the path based on what you select. For example, if you want your blog posts to have URLs based on categories and page titles then no problem. This module can be set to do that.</li>
<li><a href="http://drupal.org/project/panels" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/drupal.org');">Panels</a> - Allows you to create pages that are divided into areas of the page. Very useful for creating columns within your layout that are added on top of your theme.</li>
<li><a href="http://drupal.org/project/simplemenu" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/drupal.org');">SimpleMenu</a> - Adds a drop down navigation to the tip top of the page that works great for administering Drupal.</li>
</ul>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20six/screen-blackblue.preview.png" alt="Simple Menu" width="500" height="267" title="Create A Killer Band Site In Drupal   Part 6   Additional Functionality And Resources" /></p>
<h2>Adding a Blog to the GoBand Site</h2>
<p>First of all don&#8217;t turn on the <b>Blog Module</b> that ships with Drupal unless you want multiple blogs that tie together. It activates more than one blog and allows the mixing of authors posts on the front page of your site. This is overkill for 99 percent of blogs and will likely confuse you. It works great if that&#8217;s what you want to set up. But if you want a common <a href="http://wordpress.org/" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/wordpress.org');">Wordpress</a> style blog then you don&#8217;t need to turn that module on.</p>
<p>If you want a standard kind of blog then just use Drupal Stories. Stories are another content item, other than page, that comes with Drupal. Or create your own content item for your blog. You can turn on the ability to leave comments on any content item in Drupal and viola you have a blog. Sure there is more to it than that in order to add some common blog functionality, but that gets you started.</p>
<p>Here are some links to resources for blogging with Drupal:</p>
<ul>
<li><a href="http://drupal.org/project/akismet" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/drupal.org');">Akismet Module</a> - Is a great way to catch spam.</li>
<li><a href="http://drupal.org/project/feedburner" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/drupal.org');">Feedburner Module</a> - Allows you to organize your output RSS Feed and track subscribers.</li>
<li><a href="http://drupal.org/project/diggthis" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/drupal.org');">Digg This Module</a> - Adds the common Digg button to your blog that allows users to easily Digg the post.</li>
<li><a href="http://drupal.org/project/gravatar" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/drupal.org');">Gravatars</a> allows the ability for user Gravatars to be enabled on your site.</li>
<li><a href="http://drupal.org/project/service_links" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/drupal.org');">Service Links Module</a> - Adds quick linking social tags that allow users to submit the post to popular social networks.</li>
<li><a href="http://drupal.org/node/41373" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/drupal.org');">Single user blog - basic</a> - Is a post on Drupal about creating a single user blog.</li>
<li><a href="http://www.mattfarina.com/2006/07/26/blogging_with_drupal" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/www.mattfarina.com');"> No Nonsense Guide to Blogging with Drupal</a> - A good introduction on choosing to blog with Drupal and some module setup choices.</li>
<li><a href="http://mydrupalblog.lhmdesign.com/" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/mydrupalblog.lhmdesign.com');">My Drupal Blog</a> - Is a blog about blogging and design with Drupal.</li>
</ul>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20six/mydrupalblog.jpg" alt="My Drupal Blog" width="500" height="361" title="Create A Killer Band Site In Drupal   Part 6   Additional Functionality And Resources" /></p>
<h2>Adding Other Community Features</h2>
<p>There are many more community features in Drupal. The ability to run Polls and Forums are built in. There is a lot you can do with creating User Accounts and Permissions that is built into Drupal as well. There are some modules I haven&#8217;t used that are made for building communities in Drupal that you might want to research, for example <a href="http://drupal.org/project/og" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/drupal.org');">Organic Groups</a>. Its also possible to add <a href="http://drupaldojo.com/lesson/integrating-the-image_gallery-and-views-modules" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/drupaldojo.com');">Photo Galleries</a> to your Drupal Website.</p>
<p>Its not possible to cover everything that Drupal can do and point to all its awesome resources. There is just to much. Drupal 5 has over 2000 modules. Drupal 6 is still freshly launched though in a few months it will likely have a staggering amount of resources. Below is a screenshot of the number of <a href="http://drupal.org/project/Modules" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/drupal.org');">Modules</a> available for different categories in Drupal 5.</p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20six/modules.jpg" alt="Drupal Modules" width="500" height="555" title="Create A Killer Band Site In Drupal   Part 6   Additional Functionality And Resources" /></p>
<p>When looking to add functionality to your Drupal site. Research modules well. Do this by searching the <a href="http://drupal.org/forum" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/drupal.org');">Drupal Forums</a> and see what others recommend. You can also research the modules support requests. This will give you an idea on how well the module is maintained. Most Important! Test! Test! Test! Install them on your test site first to make sure they don&#8217;t break your site. Test to prove they solve your needs and are easy to work with.</p>
<h2>More Drupal Resources</h2>
<p>There are some great Drupal resources across the web and on Drupal&#8217;s website.</p>
<ul>
<li><a href="http://drupal.org/handbooks" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/drupal.org');">Drupal Handbooks</a> - Are documentation on Drupal. There is a lot of information here to absorb and many topics. Take it one topic at a time.</li>
<li><a href="http://groups.drupal.org/groups" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/groups.drupal.org');">Drupal Groups</a> - This is an area to get involved with Drupal, meet Drupal people in your region, or follow topic based conversations.</li>
<li><a href="http://www.packtpub.com/drupal-5-themes/book" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/www.packtpub.com');">Drupal 5 Themes</a> - This is a new book on Drupal theming. I haven&#8217;t had a chance to open it up yet. Though I will. There are a number of books coming down the pipeline for Drupal this year. Its going to be a big publishing year for Drupal. I look forward to the book <a href="http://www.packtpub.com/drupal-ecommerce/book" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/www.packtpub.com');">Selling Online with Drupal e-Commerce</a> that will be out soon.</li>
<li><a href="http://www.drupalbook.com/" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/www.drupalbook.com');">Pro Drupal Development</a> - A comprehensive book on developing with Drupal. The <a href="http://www.apress.com/book/downloadfile/3486" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/www.apress.com');">Theme Chapter</a> is freely available and an excellent resource.</li>
<li><a href="http://drupal.org/theme-guide" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/drupal.org');">Theme developer&#8217;s guide v5 and earlier</a> - This is a good guide for working with Drupal 5 themes. Also, download some freely available themes to review from the Drupal <a href="http://drupal.org/project/Themes" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/drupal.org');">Themes</a> directory.</li>
<li><a href="http://api.drupal.org/api/5" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/api.drupal.org');">Drupal API</a> - This will become a valuable resource after you start tinkering with Drupal code.</li>
</ul>
<h2>Lullabot</h2>
<p>Lullabot is a development company that uses Drupal. They also teach Drupal. So, there are lots of quality resources on their site.</p>
<ul>
<li><a href="http://www.lullabot.com/articles" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/www.lullabot.com');">Lullabot Articles</a> - The articles tend to be more advanced. They are a good resource for learning how Drupal functions.</li>
<li><a href="http://www.lullabot.com/audiocast" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/www.lullabot.com');">Lullabot Podcast</a> - The audio podcast is fun. The crew from Lullabot have a long running podcast here. They review different Drupal functionality, modules, interviews, and more.</li>
<li><a href="http://www.lullabot.com/videocast" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/www.lullabot.com');">Lullabot Videos</a> - You can get the videos via a Video Podcast. They are targeted at beginning Drupal users. They have Videos on different Modules, Installing Drupal, and more.</li>
<li><a href="http://www.lullabot.com/news/20080228/lullabot-announces-new-dvd-training-series" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/www.lullabot.com');">Lullabot DVD&#8217;s (Coming Soon)</a> - The trailer for this video series captures the feeling of struggling to understand Drupal well. The image below is from the video, and its funny, partly because its so true. Though keep in mind the space between &#8220;I suck&#8221; and &#8220;I kick ass&#8221; at Drupal is a big space and likely where most Drupal Designers will reside. Hopefully, you will get up to &#8220;I kick ass&#8221; with Drupal theming qickly and with less frustration than I went through.</li>
</ul>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20six/kick_ass_drupal.jpg" alt="Kick Ass with Drupal" width="500" height="303" title="Create A Killer Band Site In Drupal   Part 6   Additional Functionality And Resources" /></p>
<h2>The Drupal Dojo</h2>
<p>The <a href="http://drupaldojo.com/" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/drupaldojo.com');">Drupal Dojo</a> is a training ground for learning Drupal. If your a coder there are lots of lessons here for you. Drupal Ninja coders, individuals with extensive experience with an aspect of Drupal, or Drupal site administrators donate their time to the Dojo. There are prerecorded and live screencasts. You can sign up and participate in the live screencasts. The Sensei running the screencast for that week gives a presentation and those participating ask questions and follow along.</p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20six/drupal_dojo.jpg" alt="Drupal Dojo" width="500" height="83" title="Create A Killer Band Site In Drupal   Part 6   Additional Functionality And Resources" /></p>
<p>Most of the lessons are geared toward learning to become a proficient Drupal Coder. Not all are aimed solely at this group of programmers though. There are sessions dedicated to theming and community building as well. Below is a list of some of these lessons.</p>
<ul>
<li><a href="http://www.drupaldojo.com/lesson/theme-template-files-for-drupal-6" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/www.drupaldojo.com');">Drupal Dojo Lesson 41: Theme Template Files for Drupal 6</a> - This Dojo lesson will get you up to speed with template files in Drupal 6 theming.</li>
<li><a href="http://www.drupaldojo.com/lesson/new-stuff-in-drupal-6-theming" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/www.drupaldojo.com');"> Lesson 32: New stuff in Drupal 6 theming</a> - Find out about all the changes to the theme system in Drupal 6.</li>
<li><a href="http://www.drupaldojo.com/lesson/theming-like-a-pro" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/www.drupaldojo.com');">Lesson 28: Theming like a pro</a> - This is a great study companion to the freely available <a href="http://www.apress.com/book/downloadfile/3486" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/www.apress.com');">Theming Chapter</a> from <a href="http://www.apress.com/book/view/1590597559" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/www.apress.com');">Pro Drupal Development</a>.</li>
<li><a href="http://www.drupaldojo.com/lesson/design-and-construction-of-drupaldojo-website" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/www.drupaldojo.com');">Lesson 16: Drupaldojo.com Design</a> - This lesson reviews the creation of the Dojo theme for the site.</li>
<li><a href="http://www.drupaldojo.com/lesson/lightning-lesson-dmitrig01-turns-psd-into-drupal-theme-part-1-of-2" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/www.drupaldojo.com');"> Lesson null: Lightning Lesson: Dmitrig01 turns a PSD into a Drupal Theme (part 1 of 2)</a> - Learn to go from a Photoshop document to a Drupal Theme quickly.</li>
<li><a href="http://www.drupaldojo.com/lesson/theming-and-the-themer-pack" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/www.drupaldojo.com');">Lesson 06: Theming &#038; the Themer Pack</a> - This lesson reviews the aims of the themer pack project, covers drupal theme concepts in general, and gets down and dirty with some template files.</li>
</ul>
<h2>When to Jump to Drupal 6</h2>
<p>This tutorial series covered Drupal 5. In the middle of the publishing cycel of this tutorial series Drupal 6 was released. This is a good thing. You haven&#8217;t lost anything by learning about Drupal 5. Sure there will be some differences in the new version, but its still Drupal.</p>
<p>If your making a website today should you make it in Drupal 5 or Drupal 6? This is an important question. Until Drupal 6 has been out for about 6 months it will be unlikely that it will fulfill our your sites needs. It takes time for the contributed modules to be available for the newest release of Drupal. Of course it feels great to play with a new toy. I can&#8217;t wait to start playing with Drupal 6. But realistically you should write down your sites goals and see if what you need is available.</p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20six/drupal6.jpg" alt="Drupal 6" width="500" height="438" title="Create A Killer Band Site In Drupal   Part 6   Additional Functionality And Resources" /></p>
<p>Also, documentation for Drupal 6 will take time. Existing resources for Drupal 5 are vast. This includes tutorials, books, modules, code, and lots of forum discussions. I recommend downloading Drupal 6, installing it locally, and playing with it. Get a feel for it. Then when a project comes along that is the right fit go for it. Otherwise, keep using Drupal 5.</p>
<p>In the new release the core system has been improved. I can&#8217;t wait to install a copy of Drupal 6 to play with. I&#8217;m curious how much jQuery has been integrated into the interface. The <a href="http://jquery.com/" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/jquery.com');">jQuery library</a> comes with Drupal by default and each release more javascript and ajax goodness gets into Drupal.</p>
<p>The <a href="http://drupal.org/drupal-6.0" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/drupal.org');">Drupal 6 release announcement</a> has some great information about what new features are available in the new Drupal. Some of the resources about learning Drupal 6 are available on that page. Do check to see what the most recent release candidate is when you Download Drupal 6 though. New minor releases come out regularly to fix critical bugs and security issues that are found. You want to make sure you always have the most recent Drupal release version. There is always a link to the most recent Drupal version on the homepage of <a href="http://drupal.org" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/drupal.org');">Drupal</a>. Below is a an image of a screencast from Lullabot about <a href="http://ftp.drupal.org/files/videocasts/Install-D6.mp4" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/ftp.drupal.org');">Installing Drupal 6</a>.</p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20six/drupal6_install_vid.jpg" alt="Drupal 6 Install Video" width="500" height="393" title="Create A Killer Band Site In Drupal   Part 6   Additional Functionality And Resources" /></p>
<p>Some Drupal 6 Resources to Get You Started</p>
<ul>
<li><a href="http://drupal.org/node/171179" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/drupal.org');">Drupal 6 Theme Guide</a> - Is still under construction though its already a helpful resource for Drupal 6 theming.</li>
<li><a href="http://www.drupaldojo.com/lesson/theme-template-files-for-drupal-6" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/www.drupaldojo.com');">Drupal Dojo Lesson 41: Theme Template Files for Drupal 6</a> - This Dojo lesson will get you up to speed with template files in Drupal 6 theming.</li>
<li><a href="http://drupal.org/videocasts/whats-new-in-6" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/drupal.org');">What&#8217;s New in Drupal 6</a> - Find out about all the changes to the theme system in Drupal 6.</li>
<li><a href="http://drupal.org/node/201788" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/drupal.org');">New i18n and l10n features in Drupal 6</a> - There is a lot you can do with Drupal out of the box with regard to languages. This video showcases these features.</li>
<li><a href="http://drupal.org/node/209561" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/drupal.org');">Theme developer module for Drupal 6 - Screencast</a>- After watching this screencast I have to say this module looks awesome. Its fairly new. I haven&#8217;t tried it yet, but it should help with theming a lot. Especially once you get deeper into theming.</li>
</ul>
<h2>Final Bits of Advice</h2>
<ul>
<li>Always use test sites.</li>
<li>If you&#8217;re tempted to start hacking Drupal&#8217;s core code don&#8217;t. Instead, step back and do some research on how Drupal&#8217;s system of overrides works. </li>
<li>Get involved in the Drupal community. Respectfully interact with other Drupalers. When posting to the forums you&#8217;re likely to get great advice, but remember the advice is from someone donating their time to help you.</li>
<li>Have some fun with Drupal!</li>
</ul>
<h2>Tutorial Series Review</h2>
<p>Below is a summary of the ground covered in this tutorial series:</p>
<ul>
<li><a href="http://www.gomediazine.com/tutorials/create-a-killer-band-site-with-drupal-introduction/" >Create a Killer Band Site with Drupal - Introduction</a> - We introduced this series and gave some examples of Drupal being used to power rock bands and whole record labels. Two prominent examples are <a href="http://www.ozzyosbourne.com/" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/www.ozzyosbourne.com');">Ozzy Ozborne</a> and <a href="http://musicbox.sonybmg.com/" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/musicbox.sonybmg.com');">Sony BMG Records MusicBox</a>.</li>
<li><a href="http://www.gomediazine.com/tutorials/create-a-killer-band-site-in-drupal-part-1-design/">Create a Killer band site in Drupal - Part 1 - Design<a/> - We reviewed the process of designing the &quot;Go Band&quot; band site. We used the vector graphics program Illustrator for this development phase. Though Photoshop is a more popular choice for website design and could be used with Drupal development as well.</li>
<li><a href="http://www.gomediazine.com/tutorials/create-a-killer-band-site-in-drupal-part-2-slicing-in-illustrator/" >Create a Killer Band Site in Drupal - Part 2 - Slicing in Illustrator</a> -  We show you how to slice the design and prep the images for the web in Illustrator.</li>
<li><a href="http://www.gomediazine.com/tutorials/create-a-killer-band-site-in-drupal-part-3-xhtml/" >Create a Killer Band Site in Drupal - Part 3 - XHTML</a> - We covered the process of converting our design to standards based XHTML and Cascading Stylesheets.</li>
<li><a href="http://www.gomediazine.com/tutorials/create-a-killer-band-site-in-drupal-part-4-theming-drupal/" >Create a Killer Band Site in Drupal - Part 4 - Theming Drupal</a> - We converted our XHTML/CSS into a working Drupal theme. We reviewed how to find and use code from freely available themes. We discussed how to build a collection of reusable code.</li>
<li><a href="http://www.gomediazine.com/tutorials/create-a-killer-band-site-in-drupal-part-5-drupal-admin/" > Create a Killer Band Site in Drupal - Part 5 - Drupal Admin</a> - We learned how to install modules, work with blocks, turn on themes, and got to know the backend of Drupal.</li>
<li><a href="#" rel="nofollow" >Create a Killer Band Site with Drupal - Part 6 - Resources</a> - In this tutorial your currently reading we review the extendibility and resources of Drupal and conclude this series below.</li>
</ul>
<h2>Conclusion</h2>
<p>In this 6 part series on Creating a Killer Band Site in Drupal we covered a lot of ground. We followed the process from design, XTHML/CSS coding, Drupal theming, installation in Drupal, and finally Drupal extendibility. The goal of this series was to get you on your feet with Drupal so you can hit the ground running and start creating Killer sites.</p>
<p>Remember each site you build in Drupal, each conversation you participate in on the Drupal forums, and each line of code you write will build your knowledge just a little more about how Drupal works. Try not to get intimidated, but rather look at one piece of the puzzle until you understand that. Then connect it to another piece. And then another piece. And Before you know it you&#8217;ll be seeing the big picture and making Killer sites.</p>
<p>Drupal is a powerful set of tools. It can be used to build great community sites. Whether the communities you&#8217;ll be building will be for rock bands or for something else is up to you. Good luck.</p>
<p><a href="http://www.gomediazine.com/tutorials/create-a-killer-band-site-with-drupal-introduction/" >Read the introduction - What&#8217;s Drupal and why?</a><br />
<a href="http://www.gomediazine.com/tutorials/create-a-killer-band-site-in-drupal-part-1-design/" >Read Part 1 - Design it Illustrator</a><br />
<a href="http://www.gomediazine.com/tutorials/create-a-killer-band-site-in-drupal-part-2-slicing-in-illustrator/" >Read Part 2 - Slicing it Illustrator</a><br />
<a href="http://www.gomediazine.com/tutorials/create-a-killer-band-site-in-drupal-part-3-xhtml/" >Read Part 3 - XHTML</a><br />
<a href="http://www.gomediazine.com/tutorials/create-a-killer-band-site-in-drupal-part-4-theming-drupal/" >Read Part 4 - Theming Drupal</a><br />
<a href="http://www.gomediazine.com/tutorials/create-a-killer-band-site-in-drupal-part-5-drupal-admin/" >Read Part 5 - Drupal Admin</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.gomediazine.com/tutorials/create-a-killer-band-site-in-drupal-part-6-additional-functionality-and-resources/feed/</wfw:commentRss>
<enclosure url="http://ftp.drupal.org/files/videocasts/Install-D6.mp4" length="40456516" type="video/mpeg" />
		</item>
		<item>
		<title>Create a Killer Band Site in Drupal - Part 5 - Drupal Admin</title>
		<link>http://www.gomediazine.com/tutorials/create-a-killer-band-site-in-drupal-part-5-drupal-admin/</link>
		<comments>http://www.gomediazine.com/tutorials/create-a-killer-band-site-in-drupal-part-5-drupal-admin/#comments</comments>
		<pubDate>Wed, 05 Mar 2008 15:54:36 +0000</pubDate>
		<dc:creator>Jeff Finley</dc:creator>
		
		<category><![CDATA[Tutorials]]></category>

		<category><![CDATA[Web Development]]></category>

		<category><![CDATA[grunge]]></category>

		<category><![CDATA[tutorial]]></category>

		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.gomediazine.com/tutorials/create-a-killer-band-site-in-drupal-part-5-drupal-admin/</guid>
		<description><![CDATA[<p><em>This tutorial is another special series written guest author <strong>Sean Hodge</strong> from <a href="http://www.aiburn.com" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/www.aiburn.com');">aiburn.com</a> and <a href="http://www.connectioncube.com/" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/www.connectioncube.com');">Connection Cube</a>.  He is an expert in Drupal, which I am totally not familar with.  He intrigued me when he told me that the majority of the bands&#8230;</em></p>]]></description>
			<content:encoded><![CDATA[<p><em>This tutorial is another special series written guest author <strong>Sean Hodge</strong> from <a href="http://www.aiburn.com" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/www.aiburn.com');">aiburn.com</a> and <a href="http://www.connectioncube.com/" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/www.connectioncube.com');">Connection Cube</a>.  He is an expert in Drupal, which I am totally not familar with.  He intrigued me when he told me that the majority of the bands on Sony&#8217;s record label are powered by <a href="http://drupal.org/" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/drupal.org');">Drupal</a>.  Drupal is basically an open source CMS, and I was interested in learning more about it.  So that&#8217;s why he&#8217;s writing this tutorial for us.  You can learn along with me!  </em></p>
<p><a href="http://www.gomediazine.com/tutorials/create-a-killer-band-site-with-drupal-introduction/" >Read the introduction - What&#8217;s Drupal and why?</a><br />
<a href="http://www.gomediazine.com/tutorials/create-a-killer-band-site-in-drupal-part-1-design/" >Read Part 1 - Design it Illustrator</a><br />
<a href="http://www.gomediazine.com/tutorials/create-a-killer-band-site-in-drupal-part-2-slicing-in-illustrator/" >Read Part 2 - Slicing it Illustrator</a><br />
<a href="http://www.gomediazine.com/tutorials/create-a-killer-band-site-in-drupal-part-3-xhtml/" >Read Part 3 - XHTML</a><br />
<a href="http://www.gomediazine.com/tutorials/create-a-killer-band-site-in-drupal-part-4-theming-drupal/" >Read Part 4 - Theming Drupal</a><br />
<a href="http://www.gomediazine.com/tutorials/create-a-killer-band-site-in-drupal-part-6-additional-functionality-and-resources/" >Read Part 6 -Wrap Up and Additional Resources</a></p>
<h2>Introduction</h2>
<p>In our last tutorial we created our Drupal Theme Files. Now we are going to get familiar with the Administration of Drupal and set up our GoBand website.</p>
<h2>Review</h2>
<p>For review Lullabot has a good video on <a href="http://www.lullabot.com/videocast/installing_drupal_5" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/www.lullabot.com');">Installing Drupal 5</a>. The video has you setup your first user account and change the password. This is really important in Drupal. The first user account is the super administrator. So don&#8217;t loose that login as its real important. Also, we should have our theme files installed from our last tutorial. If you need to, then download a copy of the final <a href="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20five/goband_theme.zip" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/www.gomediahost.com');">Goband Theme</a> files. Place them in the <b>sites > all > themes</b> directory in Drupal. </p>
<h2>Garland Default</h2>
<p>Below is the default Administration screen in Drupal. Notice the warning message in the red box. This is nothing to be alarmed about. Let&#8217;s take care of that. Click on the <b>status report</b> link within that box.</p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20five/garland_admin.jpg" alt="Garland Admin" title="Create A Killer Band Site In Drupal   Part 5   Drupal Admin" /></p>
<p>We covered this in a previous tutorial, but lets make sure you have the <a href="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20five/files.zip" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/www.gomediahost.com');">Files</a> folder installed. Make sure your move the files folder <span id="more-500"></span>we created into the root Drupal install directory.</p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20five/files.jpg" alt="Files" title="Create A Killer Band Site In Drupal   Part 5   Drupal Admin" /></p>
<p>Once you make a choice for Cron and have your <b>Files</b> folder installed in your root directory you&#8217;ll get a good green status report.</p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20five/drupal_status_report.jpg" alt="Status Report" title="Create A Killer Band Site In Drupal   Part 5   Drupal Admin" /></p>
<h2>Turn on Our Unique GoBand Theme</h2>
<p>In the default theme Garland you have a few ways to get around the Administration area. On the left is one option. You&#8217;ll also notice the breadcrumbs at the top of the main column. If you go to the administration page you&#8217;ll also see that you can view all your administration options by task or module. </p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20five/admin_nav_options.jpg" alt="Admin Navigation Options" title="Create A Killer Band Site In Drupal   Part 5   Drupal Admin" /></p>
<p>Before we turn on our GoBand theme we need to make sure our navigation is set up correctly for the theme. There are no breadcrumbs set up in the GoBand theme and there is only a right sidebar and not a left. So, if we don&#8217;t turn set our navigation for the GoBand theme to the right sidebar we&#8217;ll be a little lost when we turn the theme on.</p>
<p>Go to <b>Administer > Site Building > Blocks</b>. Click on <b>goband settings</b>. You&#8217;ll get a preview of the Administration area of our GoBand Theme. Under the regions column set the <b>Navigation</b> to <b>right sidebar</b> and click <b>Save blocks</b> at the bottom. This makes it so that our theme will have a navigation when we turn it on.</p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20five/goband_sidebar_right.jpg" alt="Right Sidebar" title="Create A Killer Band Site In Drupal   Part 5   Drupal Admin" /></p>
<p>Notice how the right side has the Winged Chick Icons. This is not needed for the administration area. So, lets add the code circled below to our theme. After adding this code to your <b>style.css</b> file your results will look like the sidebar in the image above.</p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20five/css_remove_wing_chick_icons.jpg" alt="Remove Wing Chicks" title="Create A Killer Band Site In Drupal   Part 5   Drupal Admin" /></p>
<p>In the navigation, that just got moved to the right, click on <b>Themes</b>. Now as long as you have your theme files for GoBand installed it will be pretty hard to miss the green chicks with wings image, and the bright green GoBand Text. The other themes come with Drupal 5 by default. In the image below we can see that we are still have Garland as our default theme.</p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20five/set_theme_to_goband.jpg" alt="Set Theme to GoBand" title="Create A Killer Band Site In Drupal   Part 5   Drupal Admin" /></p>
<p>Now lets turn on our GoBand theme. Select <b>Enabled</b> and <b>Default</b> radio buttons next to the GoBand Theme. Then at the bottom of the page hit <b>Save configuration</b>. Afterwards, your results should look like the image below.</p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20five/go_band_theme_enabled.jpg" alt="GoBand Theme Enabled" title="Create A Killer Band Site In Drupal   Part 5   Drupal Admin" /></p>
<p>Let&#8217;s change another settings in the Theme before we move on. Click <b>Configure</b> top left below the page title. Uncheck <b>Logo</b> in the <b>Toggle Display</b> column. This is because we don&#8217;t have a logo setup. The logo is part of the header image. Then at the bottom of the page hit <b>Save configuration</b>.</p>
<h2>Let&#8217;s Turn On a Couple of Modules</h2>
<p>Go to <b>Administer > Site Building > Modules</b>. Anything set to <b>Enabled</b> already go ahead and leave it that way. Do check <b>Enabled</b> for <b>Path</b> and <b>Search</b> and click <b>Save configuration</b>. We&#8217;ll be using both of these modules shortly.</p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20five/initial_modules_enabled.jpg" alt="Initial Modules Enabled" title="Create A Killer Band Site In Drupal   Part 5   Drupal Admin" /></p>
<h2>Enable Our Search Form</h2>
<p>Go to <b>Administer > Site Building > Themes > Configure</b>. This will configure the global settings for our themes. Check off <b>Search</b> in the <b>Toggle display</b> column and hit <b>Save configuration</b>. That&#8217;s it. We already have the search set up in our theme. So, all you had to do was enable the module and then turn it on in the theme.</p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20five/enable_search.jpg" alt="Enable Search" title="Create A Killer Band Site In Drupal   Part 5   Drupal Admin" /></p>
<h2>Create Our Home Page</h2>
<p>In our <b>Administration Navigation</b> on the right click <b>Create Content</b>. Then click <b>Page</b>, as that is what we are making. Start out by entering our <b>Title</b> and then place the content of our <b>Body</b>. You&#8217;ll recognize the content from our <b>Main</b> content section in our <a href="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20three/goband_html/index.html" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/www.gomediahost.com');">HTML</a> from the third part of this series. I set my Input Format to PHP code as this means none of the HTML will get automatically converted. Though if you like the auto conversion certainly try a different setting.</p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20five/home_html.jpg" alt="Home HTML" title="Create A Killer Band Site In Drupal   Part 5   Drupal Admin" /></p>
<p>Next we insert our Menu Title as <b>Home</b> and set our Description. We want this to be a part of our <b>Primary links</b>. It will be the first one so give it to a <b>Weight of 1</b>. Set our <b>URL path settings</b> to <b>home</b>. Under <b>Publishing Options</b> check off <b>Published</b>. Then click <b>Submit</b>. Congrats, you&#8217;ve just made your first page in Drupal. Next we want this page to show up on our home page.</p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20five/home_menu_settings.jpg" alt="Home Menu Settings" title="Create A Killer Band Site In Drupal   Part 5   Drupal Admin" /></p>
<p>Go to <b>Administer > Site Configuration > Site Information</b>. Then set the <b>Default front page</b> to <b>Home</b>. While we are here drop in the HTML for our footer under <b>Footer message</b> and hit <b>Save configuration</b>.</p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20five/site_info_home.jpg" alt="Site Info Home" title="Create A Killer Band Site In Drupal   Part 5   Drupal Admin" /></p>
<p>Now check that the home page is correct and that the footer message is showing up. Your <b>Home Page</b> should look like the image below so far.</p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20five/home_page.jpg" alt="Home Page" title="Create A Killer Band Site In Drupal   Part 5   Drupal Admin" /></p>
<h2>Now Let&#8217;s Create Our Other Pages</h2>
<p>Go to <b>Create Content > Page</b>. For the <b>Title</b> use <b>About GoBAND</b> and drop some <a href="http://www.lipsum.com" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/www.lipsum.com');">Lorem Ipsum</a> in for the <b>Body</b> content. For the <b>Menu Settings Title</b> enter <b>About</b>. Give it a <b>Description</b> of <b>About GoBAND</b>. Set the <b>Parent Item</b> to <b>Primary Links</b>. Set the <b>Weight to 2</b>. And the <b>URL path settings</b> to <b>about</b>. Check off <b>Published</b> and hit <b>Submit</b>. Then go ahead and follow a similar process for the <b>Blog</b>, <b>Booking</b>, and <b>Tour Schedule</b> Pages.</p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20five/about_menu_settings.jpg" alt="About Menu Settings" title="Create A Killer Band Site In Drupal   Part 5   Drupal Admin" /></p>
<h2>Create Some Sample Sidebar Content</h2>
<p>Go to <b>Administer > Site Building > Blocks</b>. Then click on <b>Add Block</b> in the top left hand corner of the main content area. Give it a <b>Block description</b> of <b>Sidebar</b>. Then drop in our sidebar content from our HTML file. Select an <b>Input format</b> and hit <b>Save block</b>.</p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20five/block_sidebar_settings.jpg" alt="Block Sidebar Settings" title="Create A Killer Band Site In Drupal   Part 5   Drupal Admin" /></p>
<p>Now we are back in our <b>blocks</b> area. Give the <b>Sidebar</b> a Region of <b>Right Sidebar</b> and a <b>Weight of 1</b>. Give our <b>Navigation</b> a <b>Weight of 9</b> to push it down. The hit <b>Save block</b>.</p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20five/block_sidebar_setup.jpg" alt="Block Sidebar Setup" title="Create A Killer Band Site In Drupal   Part 5   Drupal Admin" /></p>
<h2>Create Links Up Top</h2>
<p>Go to <b>Administer > Site Building > Menus</b>. Then click <b>Add menu</b> in top left of the main content area. Give it a title of <b>Top Nav</b> and hit <b>Submit</b>. Under our newly constructed <b>Top Nav</b> menu click <b>Add item</b>. Fill in the Menu item to point to the front page and hit <b>Submit</b>. See image below.</p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20five/top_menu_add_item.jpg" alt="Top Menu Add Item" title="Create A Killer Band Site In Drupal   Part 5   Drupal Admin" /></p>
<p>Repeat this process for another sample <b>Link</b> for the <b>Top Nav</b>.</p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20five/top_nav_admin.jpg" alt="Top Nav Admin" title="Create A Killer Band Site In Drupal   Part 5   Drupal Admin" /></p>
<p>Next we need to go to <b>Administer > Site Building > Blocks</b>. In the <b>Region</b> column set <b>Top nav</b> to <b>top nav</b> and click <b>Save blocks</b>.</p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20five/top_nav_block.jpg" alt="Top Nav Block" title="Create A Killer Band Site In Drupal   Part 5   Drupal Admin" /></p>
<p>Now click on <b>configure</b> for <b>Top nav</b>. For the <b>Block title</b> put <b>&lt;none&gt;</b>. Then click <b>Save blocks</b>. This will get rid of the <b>Top Nav</b> title that we don&#8217;t want to show up top.</p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20five/top_nav_block_title_none.jpg" alt="Top Nav Block Title None" title="Create A Killer Band Site In Drupal   Part 5   Drupal Admin" /></p>
<h2>Set Access Control</h2>
<p>Go to <b>Administer > User Management > Access Control</b>. This is an important and useful screen to review. If you were to log out you would notice that <b>Search </b> doesn&#8217;t show up. That&#8217;s because by default it won&#8217;t show up for <b>Anonymous Users</b>. Check off the boxes in the image below and then hit <b>Save permissions</b>. Spend some time reviewing the different options on this page. If you want to create new roles for different users its easy to do that and then set permissions for them here. Though that&#8217;s beyond the scope of this tutorial.</p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20five/search_user_access.jpg" alt="Search User Access" title="Create A Killer Band Site In Drupal   Part 5   Drupal Admin" /></p>
<p>After allowing access to the <b>Search</b> we are almost done with this setup. Below is how the site now looks to an <b>Anonymous User</b> to the site.</p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20five/front_annonymous.jpg" alt="Front Anonymous" title="Create A Killer Band Site In Drupal   Part 5   Drupal Admin" /></p>
<h2>Setting Up One Columns</h2>
<p>Go to <b>Administer > Site Building > Blocks</b>. In the <b>Sidebar</b> row click <b>configure</b>. At the bottom of the page insert the user page instructions into the <b>Pages</b> window as shown below. Then hit <b>Save block</b>. This tells Drupal not to display the sidebar on those pages. So we end up with one column and not two for those pages.</p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20five/sidebar_block_user_pages.jpg" alt="Sidebar Block User Pages" title="Create A Killer Band Site In Drupal   Part 5   Drupal Admin" /></p>
<p>We have already set up the our theme to recognize when there is only one column so it displays correctly automatically, see sample below.</p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20five/login_one_column.jpg" alt="Login One Column" title="Create A Killer Band Site In Drupal   Part 5   Drupal Admin" /></p>
<h2>Enable Clean URLs</h2>
<p>Enabling Clean URLs will remove some unsightly characters from the URL: <b>&#8220;?q=&#8221;</b>. Go to <b>Administer > Site Configuration > Clean URLs</b>. First click on <b>Run the clean URL test</b>. If you were successful you&#8217;ll see the message below. Then select <b>Enabled</b> and click <b>Save configuration</b>. Now the ugly <b>&#8220;?q=&#8221;</b> characters have been cleaned from your pristine URLs.</p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20five/clearn_urls.jpg" alt="Clean URLs" title="Create A Killer Band Site In Drupal   Part 5   Drupal Admin" /></p>
<h2>Conclusion</h2>
<p>We&#8217;ve set up the GoBand website, which is awesome. Bask in the spotlight of your first Drupal success. This site is a solid foundation that could be used to promote the band and build a community with. We&#8217;ll conclude this series in the final edition by giving you lots of excellent Drupal resources. So stay tuned as it will be out shortly. In it we&#8217;ll give you further advice on growing your Druapl based site that will keep it Rockin&#8217;.</p>
<p><a href="http://www.gomediazine.com/tutorials/create-a-killer-band-site-with-drupal-introduction/" >Read the introduction - What&#8217;s Drupal and why?</a><br />
<a href="http://www.gomediazine.com/tutorials/create-a-killer-band-site-in-drupal-part-1-design/" >Read Part 1 - Design it Illustrator</a><br />
<a href="http://www.gomediazine.com/tutorials/create-a-killer-band-site-in-drupal-part-2-slicing-in-illustrator/" >Read Part 2 - Slicing it Illustrator</a><br />
<a href="http://www.gomediazine.com/tutorials/create-a-killer-band-site-in-drupal-part-3-xhtml/" >Read Part 3 - XHTML</a><br />
<a href="http://www.gomediazine.com/tutorials/create-a-killer-band-site-in-drupal-part-4-theming-drupal/" >Read Part 4 - Theming Drupal</a><br />
<a href="http://www.gomediazine.com/tutorials/create-a-killer-band-site-in-drupal-part-6-additional-functionality-and-resources/" >Read Part 6 -Wrap Up and Additional Resources</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.gomediazine.com/tutorials/create-a-killer-band-site-in-drupal-part-5-drupal-admin/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Create a Killer Band Site in Drupal - Part 4 - Theming Drupal</title>
		<link>http://www.gomediazine.com/tutorials/create-a-killer-band-site-in-drupal-part-4-theming-drupal/</link>
		<comments>http://www.gomediazine.com/tutorials/create-a-killer-band-site-in-drupal-part-4-theming-drupal/#comments</comments>
		<pubDate>Thu, 28 Feb 2008 16:45:01 +0000</pubDate>
		<dc:creator>Jeff Finley</dc:creator>
		
		<category><![CDATA[Tutorials]]></category>

		<category><![CDATA[Web Development]]></category>

		<category><![CDATA[grunge]]></category>

		<category><![CDATA[tutorial]]></category>

		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.gomediazine.com/tutorials/create-a-killer-band-site-in-drupal-part-4-theming-drupal/</guid>
		<description><![CDATA[<p><em>This tutorial is another special series written guest author <strong>Sean Hodge</strong> from <a href="http://www.aiburn.com" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/www.aiburn.com');">aiburn.com</a> and <a href="http://www.connectioncube.com/" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/www.connectioncube.com');">Connection Cube</a>.  He is an expert in Drupal, which I am totally not familar with.  He intrigued me when he told me that the majority of the bands&#8230;</em></p>]]></description>
			<content:encoded><![CDATA[<p><em>This tutorial is another special series written guest author <strong>Sean Hodge</strong> from <a href="http://www.aiburn.com" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/www.aiburn.com');">aiburn.com</a> and <a href="http://www.connectioncube.com/" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/www.connectioncube.com');">Connection Cube</a>.  He is an expert in Drupal, which I am totally not familar with.  He intrigued me when he told me that the majority of the bands on Sony&#8217;s record label are powered by <a href="http://drupal.org/" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/drupal.org');">Drupal</a>.  Drupal is basically an open source CMS, and I was interested in learning more about it.  So that&#8217;s why he&#8217;s writing this tutorial for us.  You can learn along with me!  </em></p>
<p><a href="http://www.gomediazine.com/tutorials/create-a-killer-band-site-with-drupal-introduction/" >Read the introduction - What&#8217;s Drupal and why?</a><br />
<a href="http://www.gomediazine.com/tutorials/create-a-killer-band-site-in-drupal-part-1-design/" >Read Part 1 - Design it Illustrator</a><br />
<a href="http://www.gomediazine.com/tutorials/create-a-killer-band-site-in-drupal-part-2-slicing-in-illustrator/" >Read Part 2 - Slicing it Illustrator</a><br />
<a href="http://www.gomediazine.com/tutorials/create-a-killer-band-site-in-drupal-part-3-xhtml/" >Read Part 3 - XHTML</a><br />
<a href="http://www.gomediazine.com/tutorials/create-a-killer-band-site-in-drupal-part-5-drupal-admin/" >Read Part 5 -Drupal Admin</a></p>
<h2>Introduction</h2>
<p>In our last tutorial we coded our XHTML and Cascading Style Sheets. Now we are going to turn that code into a Druapl Theme.</p>
<h2>Setup Drupal</h2>
<p>First download a copy of the final <a href="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20four/goband_theme.zip" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/www.gomediahost.com');">Goband Theme</a> files. That way you&#8217;ll have it to refer to as you work through this tutorial.</p>
<p>Next you want to download the most recent version of Drupal 5. Go to <a href="http://drupal.org" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/drupal.org');">Drupal.org</a> and look for the link on the right of the screen. Then make sure you get Drupal installed. Lullabot has a good video on <a href="http://www.lullabot.com/videocast/installing_drupal_5" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/www.lullabot.com');">Installing Drupal 5</a>. You will need either a local test environment setup or a host that is Drupal compatible. I&#8217;m on a Mac and I use <a href="http://www.mamp.info/en/index.php" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/www.mamp.info');">MAMP</a> for local testing. Lullabot has a good video for setting up a <a href="http://www.lullabot.com/videocast/install_local_web_server_mac_osx" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/www.lullabot.com');">Local Mamp Test Server</a> on your Mac. You could certainly develop with Drupal and have a different setup. Lullabot has more resources for setting up a local test site on other computer types. Check out their <a href="http://www.lullabot.com/videocast" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/www.lullabot.com');">Videos</a> section. I keep mentioning Lullabot. They are well known in the Drupal community for producing really good websites for big companies, offering seminars, and running a Drupal podcast. They have some great Drupal resources.</p>
<p>Once you have Drupal installed rename your Drupal install folder to your project name. In this case its named <b>goband</b>. The image below has invisible files shown, as there are important files like the .htaccess file to be aware of. For the rest of this tutorial I&#8217;ll have invisible files turned off though.</p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20four/file_structure.jpg" alt="File Structure" title="Create A Killer Band Site In Drupal   Part 4   Theming Drupal" /></p>
<h2>Create Your Theme Directory</h2>
<p>There are a multitude of template languages that Drupal can work with. The most common is PHPTemplate that uses Drupal&#8217;s own theme engine. There are two places to put your Drupal theme. The most obvious is in <span id="more-497"></span>the <b>themes</b> folder. That works fine and will make your theme accessible to your website. Now if you want to have this theme power multiple sites then you can put it in <b>sites > all > themes</b>. You may need to create the <b>themes</b> folder inside the <b>all</b> directory. I&#8217;ve grown accustomed to using the second multi-site option.</p>
<p>So take your folder from last week that has your XHTML, CSS, and image files and copy it over to <b>sites > all > themes</b>. Pick a name for this theme folder. I chose <b>goband</b>.</p>
<p>Next move the <b>files</b> folder into the root Drupal install directory. When you install Drupal it will prompt you to create this folder. If you did that then just replace it.</p>
<p>At this beginning stage our theme folder should look like the image below. The only change so far is we have moved out the <b>files</b> folder</p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20four/theme_placement.jpg" alt="Theme Placement" title="Create A Killer Band Site In Drupal   Part 4   Theming Drupal" /></p>
<h2>Set Up Our Basic Theme Files</h2>
<p>Rename our <b>index.html</b> file to <b>page.tpl.php</b>. Then create a new file called <b>template.php</b>. Just leave it blank for now. There are more theme files we could create to customize Drupal, but we&#8217;ll keep it relatively simple. I will show you an example of how to do more advanced theming though with the Search area later in this tutorial.</p>
<p>Next we have a couple of images. In the backend of Drupal there is a page where you choose your site&#8217;s theme. A visual example of the site is needed there. I used a selection from a screenshot of the site. Its width is 150px and its height is 100px. The image needs to be named <b>screenshot.png</b> for Drupal to recognize it. Its shown below bottom left. Then I made a favicon thats taken from <b>ico_sexy_angel.jpg</b>. I use Dynamic Drive&#8217;s <a href="http://tools.dynamicdrive.com/favicon/" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/tools.dynamicdrive.com');">FavIcon Generator</a>. You can see the favicon in use bottom right. Drop the favicon right into your theme folder and name it <b>favicon.ico</b>.</a></p>
<p><img src="screenshot_and_favicon.jpg" alt="Screenshot and Favicon" title="Create A Killer Band Site In Drupal   Part 4   Theming Drupal" /></p>
<p>Our basic theme files are now in place. Your theme folder should now look like the image below.</p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20four/file_structure_update_1.jpg" alt="File Structure Update 1" title="Create A Killer Band Site In Drupal   Part 4   Theming Drupal" /></p>
<h2>Some Resources for Theming</h2>
<p>Now that we have our files setup we can work with some code on our main theme page <b>page.tpl.php</b>. We will transform our html code into a working Drupal php file. Its not as scary as it sounds.</p>
<p>The easiest way to do this is to copy and paste code from existing themes. I tend to reuse code from other projects I&#8217;ve worked on. You can also take a look at any of the Drupal.org freely available <a href="http://drupal.org/project/Themes" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/drupal.org');">Themes</a>. Being able to look at other&#8217;s source code is the beauty of Open Source projects. There is also a good theming overview on Drupal: <a href="http://drupal.org/theme-guide" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/drupal.org');">Theme Developer&#8217;s Guide</a>. A truly awesome resource is a freely available chapter from the <b>Pro Drupal Development</b> book: <a href="http://www.apress.com/book/downloadfile/3486" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/www.apress.com');">Chapter 8 - The Theme System</a></p>
<p>A good theme to take a look at when your getting started is called Zen. It was built for the purpose of learning how to create Drupal themes. Go ahead and download the <a href="http://drupal.org/project/zen" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/drupal.org');">Zen</a> Theme. We&#8217;ll be opening it up and looking at its source code.</p>
<h2>Drupalizing Our Head Section</h2>
<p>Currently our head section is plain HTML and looks like the image below.</p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20four/head_html.jpg" alt="Head HTML" title="Create A Killer Band Site In Drupal   Part 4   Theming Drupal" /></p>
<p>To see how this section looks in the Zen theme view the image below.</p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20four/head_zen_theme.jpg" alt="Head Zen Theme" title="Create A Killer Band Site In Drupal   Part 4   Theming Drupal" /></p>
<p>Now copy and paste from Zen. Where our theme differs just copy what I have below. Our head section looks almost identical to the Zen theme. All we are doing here is replacing some links with Drupal variables and some minor php. This way drupal can create everything dynamically. Each page title can be made on the fly for example. Here is a link to the variables available for page.tpl.php: <a href="http://drupal.org/node/11812" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/drupal.org');">Available Variables</a>.</p>
<p>The cool thing is that for most sites this section will look identical. Zen differs a little here as it has some additional features with sub themes that makes its head section a little special. Modify the code until you get the results shown below.</p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20four/head_goband.jpg" alt="Head Goband" title="Create A Killer Band Site In Drupal   Part 4   Theming Drupal" /></p>
<p>Keep in mind that we are linking to our existing stylesheets in our <b>Head</b> section. When we turn on this theme in our next tutorial it will read our existing stylesheets. Drupal does have some default styles that can effect your stylesheets. So, you might have to make a few changes when you go into Drupal from the CSS of our previous tutorial. But overall the path from XHML/CSS to a Drupal theme is smooth.</p>
<h2>Theming Our Body Section</h2>
<p>First of all you can erase all the content from your file. We have a copy of our HTML file saved. We&#8217;ll use that in our next tutorial when we set up Drupal. So, we are only concerned with the structure of the HTML. We don&#8217;t need any of the paragraph content for example.</p>
<h2>Let&#8217;s Start with Our Page and Content Wrappers</h2>
<p>Any dynamic Drupal theme will have some way of detecting how many columns are present and a way to target them through the CSS. Zen uses a more complicated way of doing this. It does give it the benefit of being highly configurable. But we are going to keep things simple in this tutorial. I found some simple php code that can be used for this from another theme. Below is our current HTML for our page wrappers.</p>
</p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20four/wrapper_html.jpg" alt="Wrapper Html" title="Create A Killer Band Site In Drupal   Part 4   Theming Drupal" /></p>
<p>Replace that with the code below. What it does is tell Drupal that if the right sidebar is present to display a class of <b>two_column</b> onto our <b>page</b> div.</p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20four/wrapper_goband.jpg" alt="Wrapper Goband" title="Create A Killer Band Site In Drupal   Part 4   Theming Drupal" /></p>
<p>Here is what the opening of our <b>Content Wrappers</b> looks like. They are located inside of the <b>Page Wrappers</b>.</p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20four/wrappers_content_html.jpg" alt="Content Wrappers" title="Create A Killer Band Site In Drupal   Part 4   Theming Drupal" /></p>
<p>With this code in place we can target items on the page separately based on wether one or two columns are present. So we can serve up a different background to our <b>Content Wrappers</b>. Below is the related CSS. When targeting the two column view we get the class next to the <b>Page</b> id from the code we inserted above.</p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20four/wrappers_css.jpg" alt="Content Wrappers" title="Create A Killer Band Site In Drupal   Part 4   Theming Drupal" /></p>
<h2>Theming Our Top Section</h2>
<p>For the <b>Top</b> section of our HTML file we used some default outputted Drupal code for the <b>Search</b> area. We are going to replace that. So, the code will shrink significantly here when replacing our HTML with PHP and Drupal Variables. Below is our HTML.</p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20four/top_html.jpg" alt="Top HTML" title="Create A Killer Band Site In Drupal   Part 4   Theming Drupal" /></p>
<p>Lets review the code we are replacing it with. The <b>Top Nav</b> gets replaced with a php if statement. This kind of statement is commonly used for regions. It checks to see if that region is being used and if so it will display that region. We&#8217;ll review declaring regions when we discuss our template.php file a little later in this tutorial. The <b>Search</b> HTML is being replaced with a Drupal Variable. When <b>Search</b> is turned on in Drupal it will automatically show up there.</p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20four/top_goband.jpg" alt="Top Goband" title="Create A Killer Band Site In Drupal   Part 4   Theming Drupal" /></p>
<h2>Theming Our Header Section</h2>
<p>There isn&#8217;t much to the <b>Header</b> section. We are not changing the HTML code much. We just place some theme code in here in case we want to assign a logo to it later on. As its built right now you can&#8217;t click on the logo to go Home. Having a logo variable declared here allows us the option to add that later if we want to. The Zen theme&#8217;s logo code is almost the same as what we are using for our theme shown below.</p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20four/header_goband.jpg" alt="Header Goband" title="Create A Killer Band Site In Drupal   Part 4   Theming Drupal" /></p>
<h2>Theming Our Primary Navigation Section</h2>
<p>Our HTML code for the Primary Navigation is below.</p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20four/primary_nav_html.jpg" alt="Primary Nav" title="Create A Killer Band Site In Drupal   Part 4   Theming Drupal" /></p>
<p>We replace our HTML links with another if statement. There is more than one variable option to use to display your <b>Primary Navigation</b>. The one we are using below outputs some classes that we&#8217;ve used in our stylesheet. The <b>First</b> class is the unique one we need to get our home button to look right. And the code below will output that. Also, notice I changed the <b>ul</b> for the  <b>primary_nav</b> id below to a <b>div</b>. Its a necessary update to the code after I did some testing.</p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20four/primary_nav_goband.jpg" alt="Primary Nav Goband" title="Create A Killer Band Site In Drupal   Part 4   Theming Drupal" /></p>
<h2>Theming Our Main Content Section</h2>
<p>We replace our <b>Main</b> div with the code below. You&#8217;ll see there is a real similarity to what we&#8217;ve done in previous sections. We are replacing our content with template variables and in some cases if statements.</p>
<p>The placement of these variables will dictate the order in which items will appear within our <b>Main</b> content. The <b>Mission</b> statement is something I rarely use on a site, but its here in case you want to have a site mission statement. <b>Content Top</b> is one of the regions we&#8217;ll be setting up when we discuss the template.php file. The <b>Title</b> is the Content&#8217;s Title. That&#8217;s straight forward. <b>Tabs</b> are part of our backend interface. <b>Messages</b> and <b>Help</b> print out based on user actions. And then lastly our <b>Content</b> will be output below all these elements. When we make some content in the next tutorial this is where it will output.</p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20four/main_goband.jpg" alt="Main Goband" title="Create A Killer Band Site In Drupal   Part 4   Theming Drupal" /></p>
<h2>Theming Our Right Sidebar</h2>
<p>Where going to replace the content in our sidebar with some more template variables and wrap the whole thing in a simple if statement. The cool thing about if statements is that you don&#8217;t have to be a programmer to understand how they work. Its really straight forward. It just means <b>if</b> this is true <b>then</b> keep reading the rest of this code inside the statement. When the if clause is not met it will not read anything inside of it, but rather pass it by.</p>
<p>Once it gets to a <b>print</b> command then that means output that code. It will only read that command though if the surrounding if clause is met. When you have either <b>Secondary Navigation</b> or content assigned to the <b>sidebar right</b> region then the first if statement will be met. The <b>Secondary Navigation</b> is wrapped in an if statement of its own own. On pages that don&#8217;t have <b>Secondary Navigation</b> the code inclosed in that statement won&#8217;t show up at all.</p>
<p>Below is our <b>Right Sidebar</b> code.</p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20four/sidebar_goband.jpg" alt="Sidebar Goband" title="Create A Killer Band Site In Drupal   Part 4   Theming Drupal" /></p>
<h2>Theming Our Footer</h2>
<p>Below is our <b>Footer</b> html. In our next tutorial we will input this into a field in the administration area of Drupal.</p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20four/footer_html.jpg" alt="Footer Html" title="Create A Killer Band Site In Drupal   Part 4   Theming Drupal" /></p>
<p>The <b>Footer Message</b> variable will output this field in the Drupal admin panel.</p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20four/footer_goband.jpg" alt="Footer Goband" title="Create A Killer Band Site In Drupal   Part 4   Theming Drupal" /></p>
<h2>Closure</h2>
<p>This is what Drupal has to say about the <b>Closure</b> variable: <i>&#8220;Needs to be displayed at the bottom of the page, for any dynamic javascript that needs to be called once the page has already been displayed.&#8221;</i> I&#8217;m not going to argue with that. I just make sure to remember to put it in my themes. You can see it below as well as our closing HTML tags. That wraps up our page.tpl.php file. Lets move on.</p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20four/closure_goband.jpg" alt="Closure Goband" title="Create A Killer Band Site In Drupal   Part 4   Theming Drupal" /></p>
<h2>The Drupal Ninja&#8217;s Weapon of Choice</h2>
<p><b>Template.php</b> is where the magic happens. This is where you put your dynamic code. We&#8217;ll start off by reviewing our regions code. This is really simple to do and needed on just about any theme your going to make. Below is the region code for this template within the <b>Template.php</b> file. We open up the file with an opening php tag. We don&#8217;t want to close it though at the end of our file. That&#8217;s just how Drupal works. You use the same code as below to add any regions to your theme. This same code can be copied and placed into any theme you make. You can then add more regions using the same style of formatting. The left side is the assigned name <b>(example: top_nav)</b> and the right side is the human readable name <b>(example: top nav)</b>. Drupal will need to read the left side for region placement. The right side is just for the user to see an easy to read name in the admin interface.</p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20four/regions_goband.jpg" alt="Goband Regions" title="Create A Killer Band Site In Drupal   Part 4   Theming Drupal" /></p>
<p>After declaring your regions you can then target them in <b>page.tpl.php</b>. For example we did this in our <b>Top</b> Section. See the code in the image below: <b>&lt;?php print $top_nav; ?></b>. Use this convention to tell Drupal where to place a region in your theme. In our next tutorial we&#8217;ll review how to target these regions in the Blocks area of Drupal&#8217;s administration interface.</p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20four/top_goband.jpg" alt="Top Goband" title="Create A Killer Band Site In Drupal   Part 4   Theming Drupal" /></p>
<h2>Theming the Search Form</h2>
<p>First we want to finish up our <b>template.php</b> file. We&#8217;re going to add some dynamic code that will allow us to create a separate file to theme the <b>Search Form</b>. This is needed for our theme its also an advanced example of Drupal theming. I found the solution on this page: <a href="http://drupal.org/node/45295" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/drupal.org');">Customizing the search forms</a>. It explains how to use it and you can copy and paste the code. The code is shown below.</p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20four/search_function.jpg" alt="image" width="500" height="191" title="Create A Killer Band Site In Drupal   Part 4   Theming Drupal" /></p>
<p>Next we create a new file named <b>search-theme-form.tpl.php</b> and place the code below. This code allows us to add our own image as the submit button of the search form. I copied most of the code below from somewhere and then just tweaked it. You can see its mostly HTML.</p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20four/search_file_code.jpg" alt="Search File Code" title="Create A Killer Band Site In Drupal   Part 4   Theming Drupal" /></p>
<h2>Theming Drupal&#8217;s Administration Interface</h2>
<p>Walking you through how to theme the Drupal administration interface is beyond the scope of this tutorial. Though there is some code that does that included in the theme files. You&#8217;ll see it in the last section of our updated <b>style.css</b> file. Below is a preview of what we&#8217;ll be working with next week.</p>
<p>
<img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20four/admin_goband.jpg" alt="Admin Goband" title="Create A Killer Band Site In Drupal   Part 4   Theming Drupal" /></p>
<p>Also, keep in mind that with client projects and even your own you&#8217;ll have to account for the time it will take to theme the administration interface versus using a separate theme for the administration area.</p>
<p>I often use one of the theme&#8217;s <a href="http://drupal.org/project/garlandrtl" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/drupal.org');">Garland</a> that is included with Drupal&#8217;s download for the administration area on client sites. For most clients it helps them to know when they are in the administration area and when they are in the site by using this strategy. Garland also has a cool color switcher that you can use. This means you don&#8217;t have to write any code for the administration theme if you use Garland. Just change the color and your done. Its great that Drupal gives you the option to use the same theme or a separate theme for your Administration area.</p>
<h2>Building Up Your Library of Drupal Theme Snippets</h2>
<p>After you&#8217;ve looked at more <a href="http://drupal.org/project/Themes" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/drupal.org');">Free Drupal Themes</a> and as you make more of your own Drupal themes you&#8217;ll start to build up a library of php.  Its great to have a snippet you can grab when your project requires a specific functionality. Drupal has a directory where can look up <a href="http://drupal.org/node/45471" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/drupal.org');">Theme Snippets</a> or search across <a href="http://drupal.org/" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/drupal.org');">Drupal</a> for code as well. Sometimes code resides off of Drupal on blogs for example. So don&#8217;t rule out a good google search.</p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20four/drupal_org.jpg" alt="Drupal Site" title="Create A Killer Band Site In Drupal   Part 4   Theming Drupal" /></p>
<p>Keep in mind Eighty percent of theming in Drupal can be done by anyone with a knowledge of HTML and CSS. Depending on the project usually another fifteen percent of what you need can be found easily by searching Drupal or looking at other themes. The last five percent will require help. That may mean hiring someone. If your not a php programmer and you can&#8217;t find code to do what you need in your theme you can always <a href="http://drupal.org/paid-services" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/drupal.org');">Hire a Drupal Programmer</a> for those specific occasions. Or you can try posting a request for help to the <a href="http://drupal.org/forum" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/drupal.org');">Drupal Forums</a>. You may also find that some existing <a href="http://drupal.org/project/Modules" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/drupal.org');">Drupal Modules</a> can fulfill your needs rather than trying to hard code something into your theme.</p>
<h2>Conclusion</h2>
<p>We covered a lot of ground in this tutorial as well. You&#8217;ll learn after getting some more experience with Drupal theming that this theme was kept basic to keep the scope narrow enough to cover in a tutorial. There is so much more you can do with Drupal themes. In the next part of this series we&#8217;ll be looking at the Drupal administration interface, importing our content, and getting our Goband site setup. Let me know if you have any theming questions. Also, start exploring the resources I mentioned in this tutorial. They have been really helpful to me.</p>
<p><a href="http://www.gomediazine.com/tutorials/create-a-killer-band-site-with-drupal-introduction/" >Read the introduction - What&#8217;s Drupal and why?</a><br />
<a href="http://www.gomediazine.com/tutorials/create-a-killer-band-site-in-drupal-part-1-design/" >Read Part 1 - Design it Illustrator</a><br />
<a href="http://www.gomediazine.com/tutorials/create-a-killer-band-site-in-drupal-part-2-slicing-in-illustrator/" >Read Part 2 - Slicing it Illustrator</a><br />
<a href="http://www.gomediazine.com/tutorials/create-a-killer-band-site-in-drupal-part-3-xhtml/" >Read Part 3 - XHTML</a><br />
<a href="http://www.gomediazine.com/tutorials/create-a-killer-band-site-in-drupal-part-5-drupal-admin/" >Read Part 5 -Drupal Admin</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.gomediazine.com/tutorials/create-a-killer-band-site-in-drupal-part-4-theming-drupal/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Create a Killer Band Site in Drupal - Part 3 - XHTML</title>
		<link>http://www.gomediazine.com/tutorials/create-a-killer-band-site-in-drupal-part-3-xhtml/</link>
		<comments>http://www.gomediazine.com/tutorials/create-a-killer-band-site-in-drupal-part-3-xhtml/#comments</comments>
		<pubDate>Tue, 12 Feb 2008 16:20:50 +0000</pubDate>
		<dc:creator>Jeff Finley</dc:creator>
		
		<category><![CDATA[Tutorials]]></category>

		<category><![CDATA[Web Development]]></category>

		<category><![CDATA[grunge]]></category>

		<category><![CDATA[tutorial]]></category>

		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.gomediazine.com/tutorials/create-a-killer-band-site-in-drupal-part-3-xhtml/</guid>
		<description><![CDATA[<p><em>This tutorial is another special series written guest author <strong>Sean Hodge</strong> from <a href="http://www.aiburn.com" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/www.aiburn.com');">aiburn.com</a> and <a href="http://www.connectioncube.com/" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/www.connectioncube.com');">Connection Cube</a>.  He is an expert in Drupal, which I am totally not familar with.  He intrigued me when he told me that the majority of the bands&#8230;</em></p>]]></description>
			<content:encoded><![CDATA[<p><em>This tutorial is another special series written guest author <strong>Sean Hodge</strong> from <a href="http://www.aiburn.com" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/www.aiburn.com');">aiburn.com</a> and <a href="http://www.connectioncube.com/" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/www.connectioncube.com');">Connection Cube</a>.  He is an expert in Drupal, which I am totally not familar with.  He intrigued me when he told me that the majority of the bands on Sony&#8217;s record label are powered by <a href="http://drupal.org/" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/drupal.org');">Drupal</a>.  Drupal is basically an open source CMS, and I was interested in learning more about it.  So that&#8217;s why he&#8217;s writing this tutorial for us.  You can learn along with me!  </em></p>
<p><a href="http://www.gomediazine.com/tutorials/create-a-killer-band-site-with-drupal-introduction/" >Read the introduction - What&#8217;s Drupal and why?</a><br />
<a href="http://www.gomediazine.com/tutorials/create-a-killer-band-site-in-drupal-part-1-design/" >Read Part 1 - Design it Illustrator</a><br />
<a href="http://www.gomediazine.com/tutorials/create-a-killer-band-site-in-drupal-part-2-slicing-in-illustrator/" >Read Part 2 - Slicing it Illustrator</a><br />
<a href="http://www.gomediazine.com/tutorials/create-a-killer-band-site-in-drupal-part-4-theming-drupal/" >Read Part 4 - Theming in Drupal</a><br />
<a href="http://www.gomediazine.com/tutorials/create-a-killer-band-site-in-drupal-part-5-drupal-admin/" >Read Part 5 -Drupal Admin</a></p>
<h2>Introduction</h2>
<p>In our last tutorial we sliced up our graphics. Now we are going to take those graphics and move on to coding the XHTML and Cascading Style Sheets.</p>
<h2>File Setup</h2>
<p>I&#8217;m on a Mac. The programs I use for coding are firstly <a href="http://www.panic.com/coda" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/www.panic.com');">Coda</a>. Its a great program that you can use for coding and ftp. You can see a screenshot below. When I need a more specific tool to a need at hand I use <a href="http://macrabbit.com/cssedit" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/macrabbit.com');">CSSEdit</a>, <a href="http://macromates.com" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/macromates.com');">TextMate</a>, or <a href="http://www.panic.com/transmit" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/www.panic.com');">Transmit</a>.</p>
<p>First off, below is a screenshot of the file directory. You&#8217;ll want yours to match this structure for this tutorial. You&#8217;ll need the exported photos from the last tutorial as shown below as well.</p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20three/files.jpg" alt="Files" title="Create A Killer Band Site In Drupal   Part 3   Xhtml" /></p>
<h2>Standards Based XHTML</h2>
<p>Standards based design is a common part of web design today. Here are a few links if you need to beef up your skills in this area: <a href="http://alistapart.com" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/alistapart.com');">A List Apart</a>, <a href="http://www.simplebits.com" rel="nofollow" "http://www.456bereastreet.com" onclick="javascript:urchinTracker ('/outbound/article/www.simplebits.com');">465 Berea Street</a>, and <a >SimpleBits</a>. Standards based design is a movement away from table structured layout. There is also a focus on semantics, which basically means naming your classes and id&#8217;s on what they do and not what they look like. Overall, you want to create html code that is <span id="more-487"></span>simple and structured around the data. Of course in practice you often end up with a handful of extra divs that are there just to support the appearance of the site. Its still a huge step forward from the bad old days of Font tags, ouch.</p>
<p>This tutorial will hand you the XHTML code. We will cover the more interesting parts with some detail as we work our way through the Cascading Style Sheets. We&#8217;ll skip the basics of inserting paragraph tags and things like the doctype setup. Refer to the XHTML download below for that. This tutorial will focus on the process of creating a Standards Based site and on the most important CSS elements. It will present some of the XHTML as it relates to the CSS as well.</p>
<p>Here is a link to the <a href="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20three/goband.html" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/www.gomediahost.com');">XHTML Code</a>. We will also give you the final CSS as a resource as well, <a href="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20three/goband_html/style.css" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/www.gomediahost.com');">CSS Code</a>. You may want to reconstruct the CSS as we go along for practice though, or at least to review it carefully. Here are links to our IE specifc stylesheets <a href="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20three/goband_html/ie/ie_6.css" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/www.gomediahost.com');">ie_6.css</a> and <a href="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20three/goband_html/ie/ie_7.css" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/www.gomediahost.com');">ie_7.css</a>. We&#8217;re concerning ourselves with coding and testing back to IE6 in this tutorial, not further. Refer to this <a href="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20three/goband_html/index.html" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/www.gomediahost.com');">Working Example</a> as you follow along as well.</p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20three/code.gif" alt="Files" title="Create A Killer Band Site In Drupal   Part 3   Xhtml" /></p>
<h2>CSS Reset</h2>
<p>After a section that names the document and tracks the dates of updates my stylesheets almost always start with a CSS Reset. A CSS Reset is used to balance out browsers default behavior. Every browser has there own default styles for elements. So, there are differences in the way Firefox and Internet Explorer will display the hr tag for example. By using a reset they will both display the hr tag the way you specify it without discrepancies. So the goal of a CSS Reset is to create a clean slate to start your CSS coding from. Here is a link to the Reset I use: <a href="http://meyerweb.com/eric/thoughts/2007/04/12/reset-styles" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/meyerweb.com');">Reset Styles at MeyerWeb</a>. After naming your stylesheet go ahead and place the reset next.</p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20three/reset_styles.jpg" alt="CSS Reset Styles" title="Create A Killer Band Site In Drupal   Part 3   Xhtml" /></p>
<p><em>Note: This CSS Reset though does not reset the default stylesheets that are set up in Drupal. There are numerous stylesheets that will need to be accounted for when we move over to Drupal. We will discuss this further when we get to the next tutorial in this series.</em></p>
<h2>Base HTML</h2>
<p>This is the name I give to the group of styles that make up our basic HTML elements. Its a good starting point for any style sheet after the Reset. The elements styled in this section are not exhaustive, but are a good start. <em>Refer to the stylesheet download for the list.</em></p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20three/base_html.gif" alt="Base HTML" title="Create A Killer Band Site In Drupal   Part 3   Xhtml" /></p>
<h2>Our Layout</h2>
<p>In the next section of our stylesheet we account for our page layout and design. Its important to plan our entire page at this point. We&#8217;ll start out with defining our outer most layers and then work our way in. First off all, we will have page wrappers to use to define our content width and to assign our background to. We assign our page background to the <b>page_wrapper</b> id. I set the background to this wrapper rather than the body because there is a module I almost always use in Drupal that would have a small conflict if assigning the background to the body. I&#8217;ll cover that in the coming tutorials.</p>
<h2>Page Wrappers</h2>
<p>The <b>page_wrapper</b> is floated:left, given a width of 100 percent, and the background image is set to repeat-x so it will stretch the length of the browser screen. We also make sure to set a position of relative to the page id so if we use absolute positioning later on it will be placed within the wrapper. We will review this technique in the <b>Top Navigation and Search</b> section.</p>
<h3>Page Wrapper Html</h3>
<pre>
&lt;div id="page_wrapper"&gt;
 &lt;div id="page" class="two_column"&gt;

 &lt;/div&gt;&lt;!-- /page -->
&lt;/div&gt;&lt;!-- /page_wrapper -->
</pre>
<h3>Page Wrappers CSS</h3>
<pre>
#page_wrapper {
 background: #28201d url(images/bg/bg_page.jpg)
repeat-x 0 0;
 float: left;
 width: 100%;
}
#page {
 width: 960px;
 margin: 0 auto;
 position: relative;
}
</pre>
<h2>Overall Page Layout</h2>
<p>Next we define the layout for our major sections. We have the <b>Top</b> that will hold our <b>Top Navigation</b> and <b>Search Area</b>. The <b>Header</b> that will hold our header design. Our <b>Primary Navigation Bar</b> is a part of the basic page layout though we&#8217;ll cover it in our navigation section. Then we have our <b>Content</b> section that will hold our content backgrounds: our <b>Main</b> content column and our <b>Sidebar_Right</b> column. The <b>Footer</b> will hold our legalese and some links.</p>
<h3>Layout Sections Html</h3>
<pre>
&lt;div id="top"&gt;

&lt;/div&gt;&lt;!-- /top -->

&lt;div id="header"&gt;

&lt;/div&gt;&lt;!-- /header -->

&lt;div id="primary_nav_bar">

&lt;/div>&lt;!-- /primary_nav_bar -->

&lt;div id="content"&gt;

&lt;/div&gt;&lt;!-- /content -->

&lt;div id="footer"&gt;

&lt;/div&gt;&lt;!-- /footer -->
</pre>
<h3>Layout Sections CSS</h3>
<p>Most of our sections will utilize floating layouts. Here is a link to read up on using floats for layouts if your not familiar with it: <a href="http://css.maxdesign.com.au/floatutorial" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/css.maxdesign.com.au');">Floatutorial</a>.</p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20three/floatutorial.jpg" alt="Floatutorial" title="Create A Killer Band Site In Drupal   Part 3   Xhtml" /></p>
<p>The <b>top</b> is an exception. We&#8217;ll discuss the <b>top</b> shortly. The primary navigation will be discussed shortly as well. The footer is simple enough that it doesn&#8217;t require a style to define its dimensions, although it is its own section in regards to the HTML layout.</p>
<p>The <b>header</b> defines its exact dimensions because we have an image to put in there that has a specific width and height.  The <b>content</b> section will begin after the primary navigation bar and then end before the footer. Like most of the layout, the <b>header</b> and <b>content</b> are floated.</p>
<pre>
#header {
 background: url(images/bg/bg_header.jpg)
repeat-x 0 0;
 float: left;
 width: 960px;
 height: 204px;
}
#content {
 margin-top:15px;
 width: 960px;
 padding: 0;
 display: block;
 float:left;
}
</pre>
<h2>Content Section</h2>
<p>Our <b>Content</b> section is made up of three outer divs. <b>content</b>, <b>content_top</b>, and <b>content_bottom</b>. We target these divs by first targeting a class of <b>two_column</b> that we applied to our <b>page</b> div. This is done so that we can have a one column layout as also. We will cover that in our next tutorial.</p>
<h3>Content Section HTML</h3>
<pre>
&lt;div id="content">
 &lt;div id="content_top">
  &lt;div id="content_bottom">

  &lt;/div>&lt;!-- /content_bottom -->
 &lt;/div>&lt;!-- /content_top -->
&lt;/div>&lt;!-- /content -->
</pre>
<h3>Content Section CSS</h3>
<p>All of the three ids below are floated and they fit within each other. To take advantage of the document flow, the middle background is applied to the first <b>content</b> div. Then the top and bottom backgrounds are applied to the subsequent divs and therefore will rest on top of the middle background. This is how we get the pieces to fit together. They overlap.</p>
<pre>
.two_column #content {
 width: 960px;
 padding: 0;
 display: block;
 background: url(images/bg/bg_content_two_col_mid.jpg)
repeat-y 0 0;
 float:left;
}
.two_column #content_top {
 width: 960px;
 padding: 0;
 display: block;
 background: url(images/bg/bg_content_two_col_top.jpg)
no-repeat 0 0;
 float:left;
}
.two_column #content_bottom {
 width: 960px;
 padding: 0;
 display: block;
 background: url(images/bg/bg_content_two_col_bottom.jpg)
no-repeat left bottom;
 float:left;
}
</pre>
<p>These boxes are special. They are rounded and the top background image has a gradient applied to it. As long as the top background is cut after a point where its gradient becomes solid then it will work out fine to put these together. The middle section needs to be a solid repeating color that connects to the top background image after the gradient has fully broke to a solid color. I&#8217;ll also mention that you don&#8217;t want the top background to be longer than your sites content or else the gradient will get cut before it connects to the middle part.</p>
<p><em>If our content was ever as short as the image below then our gradient would not look right. This is because the top background image has to be as long as the gradient. Fortunately, our content will never be this short.</em></p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20three/goband_content_gradient_issue.jpg" alt="Goband Content Background Gradient Issue" title="Create A Killer Band Site In Drupal   Part 3   Xhtml" /></p>
<p><em>You can see in the image below that if the content is just a little longer there are no gradient display issues.</em></p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20three/go_band_content_stretch.jpg" alt="Goband Content Background Gradient Issue Fix" title="Create A Killer Band Site In Drupal   Part 3   Xhtml" /></p>
<h2>Inner Content Sections: Main and Sidebar_Right</h2>
<h3>Inner Content HTML</h3>
<p>The basic setup of the Inner Content is two columns. We have already taken care of the presentation of our background boxes. We do need to get our columns to float correctly though. Below is the basic setup of the two columns. Refer to the download for the rest of the HTML inside.</p>
<h3>Inner Content HTML</h3>
<pre>
&lt;div id="main">

&lt;/div>&lt;!-- /main -->

&lt;div id="sidebar_right">

&lt;/div>&lt;!-- /sidebar_right -->
</pre>
<h3>Inner Content CSS</h3>
<p>First of all we float the <b>main</b> column to the left. Then we float our <b>right_sidebar</b> to the right. We set our width with the padding subtracted for both columns. We  have a standard two column float layout for our inner content.</p>
<pre>
/* @group main */
#main {
 width: 600px;
 display: block;
 float: left;
 margin-left: 0;
 padding: 0 20px 30px;
}
/* @end main */

/* @group sidebar_right */
#sidebar_right {
 float: right;
 width: 260px;
 display: block;
 padding: 0 20px 30px;
}
/* @end sidebar_right */
</pre>
<p>Later in the stylesheet we list all the aesthetic style for the <b>main</b> and <b>right_sidebar</b> columns. Refer to the stylesheet download for that. Of special interest is the promotional area. We establish an area for the photos in our <b>main</b> column that uses the same techniques as above to float the layout. So these promotional areas are floated within the floated <b>main</b> column. <em>View the CSS below</em>.</p>
<pre>
#promo_one_front {
 float: left;
 width: 408px;
 display: block;
}
#promo_two_front {
 float: right;
 width: 178px;
 display: block;
}
</pre>
<h2>Primary Navigation</h2>
<p>Horizontal Navigation is a popular choice on the web and its not that difficult to achieve.</p>
<h3>Primary Navigation XTHML</h3>
<p>We create our XHTML first. We are making some unique ids. We are also placing classes that we will be able to tap into once we get over to Drupal.</p>
<p><em>Note: the HTML below is not exactly what the Drupal default output will look like, but what we are taping into will be there. Drupal will output more classes as well. But what is listed below is what we will be concerned with for our style sheet. It will work in our next tutorial were we theme in Drupal.</em></p>
<pre>
&lt;div id="primary_nav_bar">

&lt;ul id="primary_nav">
&lt;li class="first">&lt;a class="active" href="#">Home&lt;/a>&lt;/li>
&lt;li>&lt;a href="#">About&lt;/a>&lt;/li>
&lt;li>&lt;a href="#">Blog&lt;/a>&lt;/li>

&lt;li>&lt;a href="#">Booking&lt;/a>&lt;/li>
&lt;li>&lt;a href="#">Tour Schedule&lt;/a>&lt;/li>
&lt;/ul>&lt;!-- /primary_nav -->

&lt;/div>&lt;!-- /primary_nav_bar -->
</pre>
<h3>Primary Navigation CSS</h3>
<p>First we set the background for for the <b>primary_nav_bar</b>. We continue to use floats in this layout. The <b>primary_nav_bar</b> creates another section for our theme. We set a height to work with for the <b>primary_nav_bar</b>. So it is not vertically flexible. Its easier to work with for our design at an exact size.</p>
<p>Then we attach our divider image to the <b>primary_nav_li</b> on the right to give some added detail of shading and highlight in between each nav button.</p>
<p>Next we start coding our button links. Notice that using padding means you need to shorten the height to correspond to the added padding. Our images for the <b>primary_nav a</b>, <b>primary nav a: hover</b>, and <b>primary_nav a.active</b> are actually the same sliced image. We are just telling the image to move to show either the normal or active images. This technique is called Sliding Doors. Here is a link to the original article on A List Apart <a href="http://www.alistapart.com/articles/slidingdoors" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/www.alistapart.com');">Sliding Doors</a>. If your not familiar with that technique than its a good place to get started reading up on it.</p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20three/sliding_doors_css.jpg" alt="Sliding Doors CSS Styles" title="Create A Killer Band Site In Drupal   Part 3   Xhtml" /></p>
<p>To show our unique home button we will take advantage of the <b>first</b> class. We are using the same technique here and virtually the same code, but we use a unique image that has the left side rounded.</p>
<pre>
#primary_nav_bar {
 background: url(images/bg/bg_primary_nav.jpg)
repeat-x;
 float: left;
 color: #fff;
 text-transform: uppercase;
 width: 960px;
 height: 30px;
 margin-top: 8px;
}
#primary_nav li {
 float:left;
 display:inline;
 height: 30px;
 margin: 0;
 background: url(images/bg/bg_divider.jpg)
no-repeat top right;
 padding: 0 2px 0 0;
}
#primary_nav a {
 background: url(images/bg/bg_btn_primary_nav.jpg)
no-repeat top left;
 color: #698f24;
 float:left;
 display:block;
 position:relative;
 height: 22px;
 padding: 8px 14px 0;
 text-decoration:none;
 font-weight:bold;
 vertical-align: middle;
 font-size: 12px;
}
#primary_nav a:hover {
 color: #b7d62d;
 background: url(images/bg/bg_btn_primary_nav.jpg)
no-repeat 0 -30px;
 cursor: pointer;
}
#primary_nav a.active {
 color: #b7d62d;
 background: url(images/bg/bg_btn_primary_nav.jpg)
no-repeat 0 -30px;
}
#primary_nav .first a {
 background: url(images/bg/bg_btn_primary_nav_home.jpg)
no-repeat top left;
 color: #698f24;
 float:left;
 display:block;
 position:relative;
 height: 22px;
 padding: 8px 14px 0;
 text-decoration:none;
 font-weight:bold;
 vertical-align: middle;
 font-size: 12px;
}
#primary_nav .first a:hover {
 color: #b7d62d;
 background: url(images/bg/bg_btn_primary_nav_home.jpg)
no-repeat 0 -30px;
 cursor: pointer;
}
#primary_nav li.first a.active {
 color: #b7d62d;
 background: url(images/bg/bg_btn_primary_nav_home.jpg)
no-repeat 0 -30px;
}
</pre>
<h2>Top Section: Top Navigation and Search</h2>
<p>Now lets get into the details of absolute positioning inside relative containers. I&#8217;ve always liked this technique. It works really well. Here is a good link that explains this technique in detail: <a href="http://www.stopdesign.com/articles/absolute" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/www.stopdesign.com');">Making the Absolute, Relative</a>.</p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20three/absolute_relative.jpg" alt="Absolute Relative CSS" title="Create A Killer Band Site In Drupal   Part 3   Xhtml" /></p>
<p>For our purposes the <b>top</b> has been given a position of relative and it is already centered because its inside the bounds of the centered <b>page_wrapper</b>. It also has a width of 960px. When we position our elements within the <b>top</b> absolutely they will be placed according to this relative wrapper.
<p>Without absolute positioning the <b>top</b> section would be in the document flow. It would push our header content down and make it not match up with our background image. Not what we want. <em>See the image below</em>.</p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20three/top_problem.jpg" alt="Top Positioning Problem" title="Create A Killer Band Site In Drupal   Part 3   Xhtml" /></p>
<p><em>Below is the orrected version after absolute positioning has been applied.</em></p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20three/top_corrected.jpg" alt="Top Positioning Problem Corrected" title="Create A Killer Band Site In Drupal   Part 3   Xhtml" /></p>
<h3>Top Section HTML</h3>
<pre>
&lt;div id="top">
 &lt;div id="top_nav">
  &lt;ul>
   &lt;li>&lt;a href="#">Link&lt;/a>&lt;/li>
   &lt;li>&lt;a href="#">Link&lt;/a>&lt;/li>
  &lt;/ul>
 &lt;/div>&lt;!-- /top_nav -->

 &lt;form action="/search/node" method="post" id="search-theme-form">

  &lt;div id="search" class="container-inline">
   &lt;div class="form-item">
    &lt;input type="text" maxlength="128" name="search_theme_form_keys"
id="edit-search-theme-form-keys"  size="15" value=""
title="Enter the terms you wish to search for." class="form-text" />
   &lt;/div>&lt;!-- /form-item -->

   &lt;input type="image" src="files/icons/ico_search.jpg"
name="op" value="Search" id="search_icon"  />
   &lt;input type="hidden" name="form_token"
id="edit-search-theme-form-form-token"
value="26c6ef5d24a9b8af03b19f05131a19bc"  />
   &lt;input type="hidden" name="form_id"
id="edit-search-theme-form" value="search_theme_form"  />

 &lt;/div>&lt;!-- /search -->
 &lt;/form>	

&lt;/div>&lt;!-- /top -->
</pre>
<h3>Top Navigation CSS</h3>
<p>There are a few way you could do this I decided to target the <b>top ul</b>. This will effectively pull the top navigation out of the document flow. We give it a position of absolute and then place it down a bit from the top and over from the right far enough to leave room for our search area. That covers our major placement for this. The rest is aesthetics.</p>
<p><em>Note: I tend to copy code from previous projects I made. This saves time. But it has the disadvantage of having to remove unnecessary styles. You might see a few styles that are unnecessary here and there. Feel free to point them out in the comment section for some *kudos*.</em></p>
<pre>

#top {
 position: relative;
 display: block;
 width: 960px;
}
#top ul {
 position: absolute;
 top: 8px;
 right: 210px;
 margin-top: 2px;
 float: right;
}
#top ul li {
 color:#120900;
 display:inline;
 font-size: 12px;
}
#top_nav a {
 color:#120900;
 margin: 0 6px 0 0;
 padding: 0;
 font-size: 12px;
 text-align: right;
}
#top_nav a:hover {
 text-decoration: underline;
}
</pre>
<h3>Search CSS</h3>
<p>We place our <b>Search</b> with a position of absolute, which removes it from the document flow as well. We give it a specific width so our search button shows up correctly. And we continue to use floats to get our elements to align correctly. Again, some aesthetics in the code below as well.</p>
<pre>
#search {
 background: url(../images/bg/bg_search.png)
no-repeat 0 0;
 position: absolute;
 top: 8px;
 right: 0;
 width: 202px;
 display: inline;
 clear: none;
 z-index: 100;
}
#search .form-item input {
  background-color:#f2f6f9;
  border:1px solid #003e57;
  float:left;
  height:16px;
  margin:2px 5px 0 0;
  width:170px;
}
#edit-search-theme-form-keys {
 height: 14px;
 display: block;
 float: left;
}
</pre>
<h2>Targeting Internet Explorer and Testing in Internet Explorer</h2>
<p>Internet Explorer will almost always need some special styling to get your standards based design to look right. Conditional comments is one method of targeting styles for Internet Explorer browsers. Here is a good link about conditional comments on Quirksmode: <a href="http://www.quirksmode.org/css/condcom.html" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/www.quirksmode.org');">Conditional Comments</a>.</p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20three/conditional_comments.jpg" alt="Conditional Comments" title="Create A Killer Band Site In Drupal   Part 3   Xhtml" /></p>
<p>Place the following code just before the end of the head of your index.html file:</p>
<pre>
&lt;!--[if IE 7]>
&lt;link href="ie/ie_7.css" rel="stylesheet" type="text/css" />

&lt;![endif]-->

&lt;!--[if IE 6]>
&lt;link href="ie/ie_6.css" rel="stylesheet" type="text/css" />
&lt;![endif]-->
</pre>
<p>You can see that this will link to a separate style sheet for IE7 and another one for IE6. Often you&#8217;ll need some additional special care for IE6 as IE7 does have a lot of standards based improvements.</p>
<p>The ie_7.css file only needs a small fix for the top unordered list placement:</p>
<pre>
#top ul {
 margin-top: 6px;
}
</pre>
<p>The ie_6.css file needs that same fix as well as some adjustment to the width of the search:</p>
<pre>
#search {
 width: 206px;
}
#top ul {
 margin-top: 6px;
}
</pre>
<p>With testing for Internet Explorer I use a Virtual Machine on my Mac. I haven&#8217;t found a Virtual Machine I&#8217;m happy with. I may break down and buy a PC at some point. I always start on the Mac and Test in Firefox predominately (and Safari also) and then jump over to Windows to test Firefox and IE on the PC towards the end of the coding process. I only test for Opera and other browsers when the client specifically requests it.</p>
<h2>Conclusion</h2>
<p>We covered a lot of ground in this tutorial. For those of you just getting started with standards based design check out the classic links provided in this tutorial and utilize the comments below to ask any questions you have. I&#8217;ll be happy to help and I know there are some experienced web designers following along with this series that can help out as well. Stay tuned for the next tutorial were we will be learning to build a Drupal theme.</p>
<p><a href="http://www.gomediazine.com/tutorials/create-a-killer-band-site-with-drupal-introduction/" >Read the introduction - What&#8217;s Drupal and why?</a><br />
<a href="http://www.gomediazine.com/tutorials/create-a-killer-band-site-in-drupal-part-1-design/" >Read Part 1 - Design it Illustrator</a><br />
<a href="http://www.gomediazine.com/tutorials/create-a-killer-band-site-in-drupal-part-2-slicing-in-illustrator/" >Read Part 2 - Slicing it Illustrator</a><br />
<a href="http://www.gomediazine.com/tutorials/create-a-killer-band-site-in-drupal-part-4-theming-drupal/" >Read Part 4 - Theming in Drupal</a><br />
<a href="http://www.gomediazine.com/tutorials/create-a-killer-band-site-in-drupal-part-5-drupal-admin/" >Read Part 5 -Drupal Admin</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.gomediazine.com/tutorials/create-a-killer-band-site-in-drupal-part-3-xhtml/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Create a Killer Band Site in Drupal - Part 2 - Slicing in Illustrator</title>
		<link>http://www.gomediazine.com/tutorials/create-a-killer-band-site-in-drupal-part-2-slicing-in-illustrator/</link>
		<comments>http://www.gomediazine.com/tutorials/create-a-killer-band-site-in-drupal-part-2-slicing-in-illustrator/#comments</comments>
		<pubDate>Wed, 30 Jan 2008 17:44:47 +0000</pubDate>
		<dc:creator>Jeff Finley</dc:creator>
		
		<category><![CDATA[Tutorials]]></category>

		<category><![CDATA[Web Development]]></category>

		<category><![CDATA[grunge]]></category>

		<category><![CDATA[tutorial]]></category>

		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.gomediazine.com/site-news/create-a-killer-band-site-in-drupal-part-2-slicing-in-illustrator/</guid>
		<description><![CDATA[<p><em>This tutorial is another special series written guest author <strong>Sean Hodge</strong> from <a href="http://www.aiburn.com" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/www.aiburn.com');">aiburn.com</a> and <a href="http://www.connectioncube.com/" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/www.connectioncube.com');">Connection Cube</a>.  He is an expert in Drupal, which I am totally not familar with.  He intrigued me when he told me that the majority of the bands&#8230;</em></p>]]></description>
			<content:encoded><![CDATA[<p><em>This tutorial is another special series written guest author <strong>Sean Hodge</strong> from <a href="http://www.aiburn.com" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/www.aiburn.com');">aiburn.com</a> and <a href="http://www.connectioncube.com/" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/www.connectioncube.com');">Connection Cube</a>.  He is an expert in Drupal, which I am totally not familar with.  He intrigued me when he told me that the majority of the bands on Sony&#8217;s record label are powered by <a href="http://drupal.org/" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/drupal.org');">Drupal</a>.  Drupal is basically an open source CMS, and I was interested in learning more about it.  So that&#8217;s why he&#8217;s writing this tutorial for us.  You can learn along with me!  </em></p>
<p><a href="http://www.gomediazine.com/tutorials/create-a-killer-band-site-with-drupal-introduction/" >Read the introduction - What&#8217;s Drupal and why?</a><br />
<a href="http://www.gomediazine.com/tutorials/create-a-killer-band-site-in-drupal-part-1-design/" >Read Part 1 - Design it Illustrator</a><br />
<a href="http://www.gomediazine.com/tutorials/create-a-killer-band-site-in-drupal-part-3-xhtml/" >Read Part 3 - XHTML</a><br />
<a href="http://www.gomediazine.com/tutorials/create-a-killer-band-site-in-drupal-part-4-theming-drupal/" >Read Part 4 - Theming in Drupal</a><br />
<a href="http://www.gomediazine.com/tutorials/create-a-killer-band-site-in-drupal-part-5-drupal-admin/" >Read Part 5 -Drupal Admin</a></p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20one/22__%23%24%21@%25%21%23__iconimage.png" alt="22__%23%24%21@%25%21%23__iconimage Create a Killer Band Site in Drupal - Part 2 - Slicing in Illustrator" class="center" title="Create A Killer Band Site In Drupal   Part 2   Slicing In Illustrator" /></p>
<h2>Introduction</h2>
<p>We started this Series in Adobe Illustrator. Its a great tool for web design. Certainly Photoshop is more common, but Illustrator has some flexible advantages. Everything is kept vector and therefore if a client makes some changes its quick to fix. So, I&#8217;m going to cover slicing in Illustrator in this tutorial. If you built the last design in Photoshop or if you would like to open up this document in Photoshop then the process for slicing there is virtually the same. There are only subtle differences.</p>
<h2>Set Up Our Prep File</h2>
<p>In our last tutorial we created our layout as a mockup that is fit for client presentation. Open up that file and save it as goband_layout_prep.ai. In this tutorial we will remove any parts of the layout that don&#8217;t need to be sliced for the coding of the website. See the image below for what our file will look like for slicing. </p>
<p>Most of the text is removed. And I repositioned elements for optimal setup for slicing. The search icon is moved over to the right. The photos and single icon in the sidebar are moved down to make room for <span id="more-470"></span>slicing the column backgrounds. The main column and sidebar column are shortened to 458px high. A 960px wide by 150px high rounded rectangle is added at the bottom. No, this is not for a footer (though you could use it for that also). It is for theming a one column view in Drupal. There are some login and password screens for example that are one column. It also gives our client a one column option for some of their content.</p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20two/iconimage.png" alt="intro" class="center" title="Create A Killer Band Site In Drupal   Part 2   Slicing In Illustrator" /></p>
<p>For slicing purposes I created three primary navigation bars. The are all the same size but have different pieces that will fit together to make our coded navigation bar. The top one is the full background. The middle one is for our normal non-active button states. And the bottom one is for our rollover and active button states. All four of the button images are 30px tall by 300px wide. Notice in the image below that there are two different button shapes. This is because our home button has a unique rounded left side. We need to account for that in our slicing preparation. The image below is at one hundred percent. The 2px wide by 30px tall divider area is not shown below. We will see a close up of the divider once we get to slicing that section.</p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20two/1__%23%24%21@%25%21%23__iconimage.png" alt="1__%23%24%21@%25%21%23__iconimage Create a Killer Band Site in Drupal - Part 2 - Slicing in Illustrator" class="center" title="Create A Killer Band Site In Drupal   Part 2   Slicing In Illustrator" /></p>
<p>Before we move on I want to make sure you have all your strokes set up correctly for accurate slicing. In the image below I have the upper primary navigation bar selected. In the Strokes Palette I clicked on Align Stroke to Inside. Its the middle button next to Align Stroke. The top navigation in the image below has this set. The bottom one is still set to the default, which is Align Stroke to Center. There are guides placed to make this clearer. The bottom stroke on the bar is shown as still overlapping the guides. This needs to be fixed for our slices to look right. We want all the boxes to look like the top one. Go ahead and apply this technique to all the boxes that have strokes set in your layout.</p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20two/2__%23%24%21@%25%21%23__iconimage.png" alt="2__%23%24%21@%25%21%23__iconimage Create a Killer Band Site in Drupal - Part 2 - Slicing in Illustrator" class="center" title="Create A Killer Band Site In Drupal   Part 2   Slicing In Illustrator" /></p>
<h2>Slicing the Top of Our Layout</h2>
<p>We are going to slice this layout working from top to bottom and left to right. The Slice Tool is pictured in the image below. Create a slice that starts at the top left of our document that is 50px wide by 104px high. This will be our background image.</p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20two/3__%23%24%21@%25%21%23__iconimage.png" alt="3__%23%24%21@%25%21%23__iconimage Create a Killer Band Site in Drupal - Part 2 - Slicing in Illustrator" class="center" title="Create A Killer Band Site In Drupal   Part 2   Slicing In Illustrator" /></p>
<p>We&#8217;ll slice our header next. If you place guides at 100px and 1060px it will make it easier to draw the slice. I drew the slice from the top of our document down a little past the bottom of the header.</p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20two/4__%23%24%21@%25%21%23__iconimage.png" alt="4__%23%24%21@%25%21%23__iconimage Create a Killer Band Site in Drupal - Part 2 - Slicing in Illustrator" class="center" title="Create A Killer Band Site In Drupal   Part 2   Slicing In Illustrator" /></p>
<p>Utilize the settings at the top of Illustrator (see image below). Make sure you got your width at exactly 960px. Also, zoom in and make sure your right on the guides. </p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20two/5__%23%24%21@%25%21%23__iconimage.png" alt="5__%23%24%21@%25%21%23__iconimage Create a Killer Band Site in Drupal - Part 2 - Slicing in Illustrator" class="center" title="Create A Killer Band Site In Drupal   Part 2   Slicing In Illustrator" /></p>
<p>Now we draw another slice around our search button. Pictured below the Slice Select Tool is highlighted. This is used to move around slices that you&#8217;ve drawn. You can also manipulate corners similar to any box in Illustrator.</p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20two/6__%23%24%21@%25%21%23__iconimage.png" alt="6__%23%24%21@%25%21%23__iconimage Create a Killer Band Site in Drupal - Part 2 - Slicing in Illustrator" class="center" title="Create A Killer Band Site In Drupal   Part 2   Slicing In Illustrator" /></p>
<h2>Slicing Our Primary Navigation</h2>
<p>First we slice the top primary navigation bar to get our background. We create a slice 960px wide by 30px high. </p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20two/7__%23%24%21@%25%21%23__iconimage.png" alt="7__%23%24%21@%25%21%23__iconimage Create a Killer Band Site in Drupal - Part 2 - Slicing in Illustrator" class="center" title="Create A Killer Band Site In Drupal   Part 2   Slicing In Illustrator" /></p>
<p>Then we create two slices over our middle and bottom primary navigation buttons. The normal and active states will make up one image. Below is a close up image of the two slices that will make up our primary navigation buttons. There is one slice for the unique home button on the left and one slice for the rest of the buttons on the right. The dimensions are 300px wide by 60px high. </p>
<p>We will be using the sliding doors technique for our buttons. So, there are no image flickers on the buttons. There are a lot of posts on this technique, but get started with the <a href="http://www.alistapart.com/articles/slidingdoors" rel="nofollow"  onclick="javascript:urchinTracker ('/outbound/article/www.alistapart.com');">original article at A List Apart</a>. And then research further on the web from there if you would like to learn more. We will be touching on this topic again in our next tutorial though.</p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20two/8__%23%24%21@%25%21%23__iconimage.png" alt="8__%23%24%21@%25%21%23__iconimage Create a Killer Band Site in Drupal - Part 2 - Slicing in Illustrator" class="center" title="Create A Killer Band Site In Drupal   Part 2   Slicing In Illustrator" /></p>
<p>Let&#8217;s not forget about slicing our primary navigation button divider. Below is a close up of the slice at 2px wide by 30px high. We only need one slice, but we&#8217;ll be using this image multiple times next to our buttons.</p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20two/9__%23%24%21@%25%21%23__iconimage.png" alt="9__%23%24%21@%25%21%23__iconimage Create a Killer Band Site in Drupal - Part 2 - Slicing in Illustrator" class="center" title="Create A Killer Band Site In Drupal   Part 2   Slicing In Illustrator" /></p>
<h2>Slicing Our Content Area Columns</h2>
<p>We are going to cut our columns into three pieces horizontal pieces. We will be coding these boxes to accommodate infinite length, irregardless of how much content we fill them with. </p>
<p>Next measure where your gradient becomes a solid color. Also, make sure the break of your gradient is the same for your main content area and your sidebar. I use a tool called xScope for the Mac to measure where the gradient breaks onscreen. I find this tool helps a lot for measuring colors and sizes no matter what program or browser I have open. Place a guide where the solid color begins. Slicing it this way means that you can have a gradient at the top, but it will blend into a solid color well. Consider using guides for your column cuts. As, this will give you more accurate results.</p>
<p>Now create your top content column slice. My top slice is 960px wide by 68px high. This slices across both our columns. You could choose to slice them separately. Its a stylistic design decision to make here. Slicing across both columns together means that we can code it so that our columns will always be the same length, irregardless of which one has more content.</p>
<p>Then I create a solid center piece that is 960px by 50px high. I usually stick with a length of 50px for solid repeatable areas. This may be more conservative than necessary, but I&#8217;ve had good results with this. The last slice of the two column boxes is the bottom part. It is much shorter than the top because there is no gradient to be concerned about here. The bottom is 640px wide by 15px high.</p>
<p>We also want to create slices of our photos. The size of the slice for the large photo on the left is 408px wide by 265px high. The size of the photo of the drummer on the right is 178px wide by 265px high.</p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20two/10__%23%24%21@%25%21%23__iconimage.png" alt="10__%23%24%21@%25%21%23__iconimage Create a Killer Band Site in Drupal - Part 2 - Slicing in Illustrator" class="center" title="Create A Killer Band Site In Drupal   Part 2   Slicing In Illustrator" /></p>
<p>Let&#8217;s finish the two column content area by slicing up our sexy winged chick icon, as we&#8217;ll be needing that. </p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20two/11__%23%24%21@%25%21%23__iconimage.png" alt="11__%23%24%21@%25%21%23__iconimage Create a Killer Band Site in Drupal - Part 2 - Slicing in Illustrator" class="center" title="Create A Killer Band Site In Drupal   Part 2   Slicing In Illustrator" /></p>
<p>The final slices of our document are for our one column content box. We will carve this up at the same dimensions as we did in our two column slices above. Start by drawing a slice from the top left 960px wide and 69px high. Then we will slice our middle part. Draw another slice 960px wide by 50px high. Our last slice will be 960px wide by 15px high to make up our one column content box bottom image. The image below shows how all our final slices look for the entire document.</p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20two/12__%23%24%21@%25%21%23__iconimage.png" alt="12__%23%24%21@%25%21%23__iconimage Create a Killer Band Site in Drupal - Part 2 - Slicing in Illustrator" class="center" title="Create A Killer Band Site In Drupal   Part 2   Slicing In Illustrator" /></p>
<h2>Naming Our Images</h2>
<p>I wanted to make this a separate section for the purposes of this tutorial. But you may find it a better workflow to name your images as you slice them. Also note, if you don&#8217;t name your slices you can still save them. The default names will be the document title, followed by the underscore, followed by the unique slice number, followed by the extension. It will save you time though to name all your images in Illustrator.  If you name your slices in Illustrator they will be ready to use, as is, after exporting. Also, if you go back in and make edits you want the simplest process possible for saving those updates. Having the images your changing already named makes it that much quicker and easier.</p>
<p>I&#8217;ve found a couple of peculiarities in naming images in Illustrator when comparing it to doing the same thing in Photoshop. In Photoshop all you have to do is grab the Slice Select Tool, double click on a slice, and you&#8217;ll get a window that allows you to name the slice. </p>
<p>In Illustrator you select the slice with the Slice Select Tool then go to Object > Slice > Slice Options and Name the Slice in the Window. Then hit OK. I leave all the other fields blank. Ultimately we will only be exporting images and not any code. We&#8217;ll be writing the code ourselves. Below is an image of the page background image being named. </p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20two/13__%23%24%21@%25%21%23__iconimage.png" alt="13__%23%24%21@%25%21%23__iconimage Create a Killer Band Site in Drupal - Part 2 - Slicing in Illustrator" class="center" title="Create A Killer Band Site In Drupal   Part 2   Slicing In Illustrator" /></p>
<p>We will need to repeat this process for all the images that we are slicing. My naming strategy involves deciding what the image will be used as. Then I assign a uniform set of initial letters to images followed by the underscore followed by its unique name. So for all images that make up backgrounds I use a a format similar to the above screenshot. &ldquo;bg&rdquo; is the use followed by the &ldquo;underscore&rdquo; and its unique name of &ldquo;page&rdquo;. It will make up the page designs background. </p>
<p>Its good to bring a universal system to all approaches you do in web design. The overhead of one small project is minimal, but multiply that by all the projects you work on and you&#8217;ll find that doing things the same way on each project will save you lots of time. I&#8217;ll show a screenshot of the images after export that will give you some more ideas for naming your images.</p>
<h2>Optimizing and Exporting Our Images</h2>
<p>Once you have all your slices named go to File > Save for Web &#038; Devices and you&#8217;ll get a Dialogue Window shown below. A note on Slicing: In regards to naming your slices it is possible to name your slices in this window. You can grab the Select Slice Tool and double click on sliced images and then name them. Though, unlike in Photoshop, it does not have the advantage of saving those names in the Illustrator file once you leave this dialogue window. Because of this, the technique outlined in the section above is the best one to use for naming slices in Illustrator. Hopefully, Adobe fixes this in the future, as this is a convenient window to use for naming.</p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20two/14__%23%24%21@%25%21%23__iconimage.png" alt="14__%23%24%21@%25%21%23__iconimage Create a Killer Band Site in Drupal - Part 2 - Slicing in Illustrator" class="center" title="Create A Killer Band Site In Drupal   Part 2   Slicing In Illustrator" /></p>
<p>Now we will choose our image settings. First grab the Select Slice Tool in the Save Dialogue Window and drag it across all the slices or hit (Command/Ctrl + A). Then choose JPEG High (which is a Quality of 60 Percent and is Optimized). For most projects I keep it simple and save all images at this setting. Though if you notice low quality output for any images at this setting then go back and bump it up. Likely we will need to do this for a few images. </p>
<p>For clients that have the budget and desire to have you optimize the images carefully, you can go back and tweak each image separately. Bump the quality down and test results. Continue doing this bump quality down, export, retest in browsers until you find the lowest image size that still gives quality results. Its a tedious and time consuming process that you have to account for in the budget of a web design project. It allows you to optimize web images to their fullest. This process is often used for high traffic websites to speed up the loading of the site and decrease the amount of data consumed on each page load.</p>
<p><img src="http://www.gomediahost.com/zine/tutorials/drupal%20series/part%20two/15__%23%24%21@%25%21%23__iconimage.png" alt="15__%23%24%21@%25%21%23__iconimage Create a Killer Band Site in Drupal - Part 2 - Slicing in Illustrator" class="center" title="Create A Killer Band Site In Drupal   Part 2   Slicing In Illustrator" /></p>
<p>Now Lets hit Save. We get another window. In this Save Optimized As Window Choose Forma