Hi Lloyd
I'm looking at the getsidebar.php file you revised and am a bit confused about usage. I had a conversation going with Ralph about this, and I'm just posting the same query here, that I sent to him recently.
In the website I'm working on for a client using Etomite (
http://www.connectio...m/about-us.html), the sidebars (seen on left hand side of pages) are secondary navigation (primarily echoing the horizontal navigation) except that the sidebar contents are limited to whatever section your are currently browsing. I.e., if you are on the About Us section, you would see About Us > Go-To-Gal, Teresa, Samantha - in the sidebar for that page.
Those are in a div called leftnav, then further a div called bg-left-nav controls the look, background color, and border of that nav section. Then each of the items contained is in a UL, and the list items are further styled by different classes, depending on which page you are looking at. The default "OFF" state of a link in that unordered list is the light blue, the mouseover state is a darker shade of that blue, and the selected state (active page) is the green color. You'll notice on the link above, how each sidebar list item state changes, depending what page within that section you are visiting. Some of the pages have no child documents, thus the sidebar contains just one item, which isn't really a link, but needs to have a # linked on it to be styled the way it is via CSS.
What I need to do is be able to pull in the respective sidebar for each page (which I plan to set up as Parent folder docs in Etomite, and each sub-item in the sidebar as child docs.
What I'm confused about, is how to utilize getsidebar snippet to be able to style the listed items within the div / ul and still have the correct state as shown in the page I've created, without having to create multiple (and seemingly endless) templates.
Hopefully this makes some sense. Any strategy advice you might have on how I could do this would be appreciated!
Edited by bwoodsdesign, 24 March 2009 - 07:47 PM.