Drupal 6 http://www.rarepattern.com/taxonomy/term/410/all en Somewhere over Garland's rainbow http://www.rarepattern.com/nodes/2009/somewhere-over-garlands-rainbow <!-- google_ad_section_start --><div class="field field-type-filefield field-field-image"> <div class="field-items"> <div class="field-item odd"> <a href="/nodes/2009/somewhere-over-garlands-rainbow" class="imagecache imagecache-380 imagecache-linked imagecache-380_linked"><img src="http://www.rarepattern.com/files/imagecache/380/rarepattern-new-design-2010a618.png" alt="screenshot of new site" title="The new design (noted for when this site is changed again in the future)" class="imagecache imagecache-380" width="380" height="319" /></a> </div> </div> </div> <p><a href="http://drupal.org/node/91964">Garland has been a good thing for Drupal</a>, overall, mainly for the color module. Anyone remember what it replaced in Drupal core? Yeah, it was pretty ugly. Context is important. So even though Garland is something of a front-end developer's nightmare, it has its purpose for the new Drupal user wanting to do at least a modicum of customization to the site's look, without resorting to coding.</p> <p>And it has served its purpose here. I leaned on Garland (or actually her fixed-width daughter, Minelli) for my blog here for many months ... maybe more than a year. I honestly don't recall. It was since I upgraded to Drupal 6, when I didn't have time to work up a new theme. Garland gave me something so at least I could present the content here (such as it is).</p> <p>But thanks to the fabulous <a href="http://drupal.org/project/ninesixty">NineSixty theme</a>, I was able to whip something together yesterday afternoon — the theme you are seeing <a href="http://rarepattern.com">right here on rarepattern.com</a>. That's right, it took me just one afternoon, even though I was hand-coding a few templates. NineSixty made it all so easy!</p> <p>I had been <em>designing</em> using the <a href="http://960.gs">960 grid</a> for quite some time now, but I had never employed the Ninesixty Drupal theme for implementation before. After hearing all the buzz at <a href="http://design4drupal.org">Design 4 Drupal Boston 2009</a>, I was definitely curious to try it out. Now was my chance.</p> <p>My own prior themes for rarepattern had been pretty hacky — quick throw-togethers with plenty of shortcuts. With NineSixty, I spent less time and resorted to fewer hacks. I still have some extraneous styles lurking, and of course there's the usual mark-up excess of some Drupal modules like CCK, but this was about quick implementation, with the emphasis on <em>quick</em>.</p> <p>One of the beauties of NineSixty is that your page layout mark-up and CSS are pretty much already done. You actually accomplish most of your own layout adjustments directly in your page.tpl.php template. Just copy NineSixty's own into your own theme folder — the folder you created to make a <a href="http://drupal.org/node/225125">child theme</a> of NineSixty — and edit the classes on the various regions.</p> <p><code>grid-8</code> means 8 grid columns wide</p> <p><code>prefix-1</code> means 1 empty grid column before</p> <p><code>suffix-2</code> means 1 empty grid column after</p> <p>And there's more — <code>push-x</code> and <code>pull-x</code>, for example — to give you all kinds of power. Just change the classes assigned to each region, and your page falls into place.</p> <p>The rest is just "skinning."</p> <!-- google_ad_section_end --> 960 grid design Drupal Drupal 6 grid systems NineSixty theme themes Mon, 14 Dec 2009 21:56:02 +0000 Laura Scott 271 at http://www.rarepattern.com