Hi,

I have 2 snippets for my navigation.

1. Primary Navigation:

- 8< --
<div><a href="/"><img alt="UKTUG" height="50" width="85px"
src="/images/uktug/texlogo_50.png" /></a></div>

<h2 class="structural">Site Navigation</h2>
<ul id="primarynavigation">
<li><a href="/">Home</a></li>
<li><a href="/membership">Membership</a></li>
<li><a href="/events">Events</a></li>
<li><a href="/resources">Resources</a></li>
<li><a href="/constitution">Constitution</a></li>
<li><a href="/baskerville">Baskerville</a></li>
<li class="last"><a href="/contact">Contact</a></li>
<li><a href="/about">About</a></li>
</ul>

<a href="/"><img width="760px" height="100px" alt="Masthead Image of a
Lion, the TeX mascot" src="/images/uktug/lions/100/grey/<r:random>
<r:option>grey</r:option>
<r:option>mgm</r:option>
<r:option>mow</r:option>
<r:option>sculpture</r:option>
<r:option>grass</r:option>
<r:option>bronze</r:option>
<r:option>iron</r:option>
<r:option>holborn</r:option>
<r:option>dollar</r:option>
<r:option>photo</r:option>
<r:option>fairmount</r:option>
<r:option>eye</r:option>
<r:option>dayglo</r:option>
<r:option>sand</r:option>
<r:option>hsbc</r:option>
<r:option>green</r:option>
<r:option>boston</r:option>
<r:option>egypt</r:option>
<r:option>door</r:option>
<r:option>china</r:option>
</r:random>_100.jpg" /></a>
-- 8< --

2. SecondaryNavigation
-- 8< --
<h2 class="structural">Breadcrumbs</h2>
<p class="breadcrumbs"><r:breadcrumbs separator=" &rarr; " /></p>

<h2 class="structural">Child Pages</h2>
<ul id="secondarynavigation">
<li class="structural"><r:title /></li>
<r:children:each><li>&rarr; <r:link /></li></r:children:each>
</ul>

And then this 'Normal' Layout:
-- 8< --
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
  "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd";>
<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title><r:title /></title>

<link href="/favicon.ico" rel="shortcut icon" />
<link rel="stylesheet" type="text/css" href="/stylesheet.css" />
<r:if_content part="stylesheet"><style type="text/css">
<r:content part="stylesheet"/>
</style></r:if_content>

</head>

<body>
<div id="main">

<div id="header">
<r:snippet name="primarynavigation" />

<r:snippet name="secondarynavigation" />
<hr />
</div>


<div id="content">

<h1><r:title /></h1>

<div id="body">
<r:content />
</div>

<div id="footer">
<hr />
<r:snippet name="footer" />
</div>

</div>

</div>
</body>
</html>
-- 8< --

Note the smart way of including page-level CSS by just creating a
'stylesheet' Page Part in the Admin Interface, but if no part of that
name exists then the page does now show any signs of it. (Just added
to Receipes on Wiki :-)

I also want to follow the <r:if_child> to the secondarynavigation so instead of

<h2 class="structural">Child Pages</h2>
<ul id="secondarynavigation">
<li class="structural"><r:title /></li>
<r:children:each><li>&rarr; <r:link /></li></r:children:each>
</ul>

I can do

<h2 class="structural">Child Pages</h2>
<ul id="secondarynavigation">
<r:if_children>
<r:children:each><li>&rarr; <r:link /></li></r:children:each>
</r:if_children>
</ul>

But not had time yet :-)

-- 
Regards,
Dave
_______________________________________________
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to