Forum Moderators: phranque
I am in the process of creating navigation (text & images) which indicate a visitor's location within the website.
Ex: [images.google.com...] (at the top, the page is represented by the bolded word 'images').
What is the simplest way I can centralize this, so that each page (or #includes file) does not require modification when updating the navigation?
XML/CSS?
Thanks a lot!
Kevin
Using the given example you could have your CSS give a bold styling to the breadcrumb ID for pages in the images category.
I wish to apply the navigation to 2 websites at this time, neither is database driven.
This example is nearly identical in template design to my site, the only difference being my desire to have the navigation buttons highlighted (or dimmed) to indicate the exact page.
I think PHP would also allow me to do this without editing each page, but I've noticed some people seem to be using XML with HTML.. and this would work better for me.
Thanks again..
[edited by: encyclo at 10:14 am (utc) on Oct. 10, 2007]
[edit reason] no URLs thanks [/edit]
ETA: I just checked a page that uses one of these templates, and each nav link has a "1x1.gif" in it (SRC="1x1.gif"). That still doesn't help me figure out how they do it, but it might help someone else.
[edited by: Beagle at 2:14 pm (utc) on Oct. 11, 2007]
The key is to put an ID on the body tag, so that you can then target the appearance of a specific link within that page.
so:
<body id="about">
then, in my css file...
body#about a#images {
color: #000;
font-weight: bold;
text-decoration: none;
}
this is off the top of my head, but you get the idea.
The only thing that might throw you off is how much of a hassle it is to apply ID's to your body tags.
But at least this way you could just update your css if you wanted to change the look of your "site position indicator links".
Hope this helps.