Getting the layout right!
I'm happy with the layout now, so it's time to document what I've done.
Firstly, the Header region.
If it's not obvious, I'm using the default bluemarine theme. Under Home » Administer » Site building » Themes » bluemarine I've turned OFF the logo, site name and slogan options. The Mission statement is turned on, as this displays the welcome information on the home page. You enter that information through the Home » Administer » Site Administration » Site Information page. I've also got the Primary and Secondary links turned on.
The header image was generated using a mixture of MS Paint and MS Photo Editor, and then uploaded to the site image folder. The image is displayed using a custom block, titled "banner image", which is then allocated to the header region.
banner image block settings are:
user can not control if they see this block
block appears in every page
block content:
<p align="center"><a href="/" title="Home"><img src="/sites/default/files/Header-logo-65percent.jpg" alt="Home" /></a>
Left Sidebar contains the following blocks:
Primary links
Navigation
Book navigation (This one is set to only appear on book pages)
Search form
The Footer contains the following blocks:
Recent comments
Creative Commons Licence
The last one is another custom block. getting it to display only on book pages is done through a bit of crafty php scriting I found somewhere in the Drupal documentation pages. I can't find the link, but here's the code snippet.
<?php
$match = FALSE;
$types = array('book' => 1);
if (arg(0) == 'node' && is_numeric(arg(1))) {
$nid = arg(1);
$node = node_load(array('nid' => $nid));
$type = $node->type;
if (isset($types[$type])) {
$match = TRUE;
}
}
return $match;
?>
The actual block content is set to html, and contains the html text you can find at http://creativecommons.org/license/results-one?license_code=by-nc-sa&jur...
So that gives you an idea of how the website was set-up. It's standard template, with a couple of custom blocks, and the right options selected for menu items etc.
Richard

Recent comments
9 weeks 4 days ago
48 weeks 4 days ago