Identifying current location
Hi Zopesters, I'd like to implement a navigation bar somewhat like the one at the top of the page at www.zope.org. I'd like to have each button be highlighted whenever the browser is at that page. For example, the home page would cause "Home" on the Nav bar to have a different colored background. Two questions: 1. How to I access the current page's ID so I can code the nav bar logic? 2. Is there a reference for all of these objects? For example, how would I know about <dtml-var ZopeAttributionButton> if I didn't trip over it? -Tim -- Timothy Wilson | "The faster you | Check out: Henry Sibley H.S. | go, the shorter | http://slashdot.org/ W. St. Paul, MN, USA | you are." | http://linux.com/ wilson@chem.umn.edu | -Einstein | http://www.mn-linux.org/
In article <Pine.BSF.3.96.990814220950.11991A- 100000@chemsun.chem.umn.edu>, Tim Wilson <wilson@chemsun.chem.umn.edu> writes
I'd like to implement a navigation bar somewhat like the one at the top of the page at www.zope.org. I'd like to have each button be highlighted whenever the browser is at that page. For example, the home page would cause "Home" on the Nav bar to have a different colored background. Two questions:
I think there is an example at zdp.zope.org that explains how it is done. ------- Regards, Graham Chiu gchiu<at>compkarori.co.nz
participants (2)
-
Graham Chiu -
Tim Wilson