17488 Posts in 4473 Topics by 1978 members
Page: 1 2
|Go to End|
15 February 2007 at 6:23pm
The way we do things like navigation, are through page controls. eg.
<% control Menu(1) %>
<li class="$LinkingMode"><a href="$Link" title="Go to the $Title page">$MenuTitle</a></li>
<% end_control %>
What this does is take the first level of menu in the 'site tree', the way we organise pages within the SilverStripe CMS. It is done in a similar way to the windows explorer directory listing.
The same example can be done using <% control Menu(2) %> where it will take the second level pages instead of the first. You can also nest them to achieve a nice structure on your site.
I would suggest taking a look at this, since we believe this is a very simple way of creating navigation. You can even create sub-navigation items that are taken from another branch in the site tree. eg. I create a new page called 'Footer Navigation'. I would then use the following control to output all the pages (or children) underneath it.
<% control ChildrenOf(footer-navigation) %>
and you would do the same as above to create a <ul> with <li> elements inside.
21 August 2008 at 1:44am
I am building a bi-lingual website for a student radio station.
Although if I am honest, for the complicated stuff (like the streaming page) I am using an actual PHP page.
21 August 2008 at 7:58pm
I am looking at making a motorsports club site. I have done a BMX site - straight CSS etc but like a CMS to enable other club members to easily contribute in terms of news, event notifications, newsletters etc.
23 August 2008 at 12:32am
I have a website where I put all my designs, they are all in PSD. My designs will be useful for you all too. And if there is any way that I can contribute drop a line.
my website is http://templates.whynotonline.com
Page: 1 2
|Go to Top|