[Zope] Zope site's sidebar

Martijn Pieters mj@antraciet.nl
Mon, 12 Apr 1999 16:25:02 +0200


At 15:41 12/04/99 , Michel Pelletier wrote:
>> > The second thing that I had a question about was the navbar 
>> that runs
>> > across the top of each page. Is that a static element stored in the
>> > highest folder of the different sections or dynamicly created?
>> 
>> You can look at the code for the navbar using
>> http://www.zope.org/dtml_source?path=/pathlinks&pp=1 which I 
>> discovered
>> after following the link you provided to the sidebar code.  My python
>> skills are as yet almost nonexistent so the meaning of the code I can
>> only guess at, but I'd say it is generated dynamically.
>> 
>
>Well it's dynamicaly generated from a staticly assigned variable,
>'menu_bar_items'. :)  It does not get anything from anywhere to generate
>it's code.  It's actually a 'hook' for the future so that the navbar can
>be dynamic, but it was never improved upon.  Look in the dictionary
>under 'cruft'.
>

I 'borrowed' the Zope.org code to give the zdp.zope.org site the same look
and feel, and both the sidebar and the navbar on the top are getting their
data from TinyTables, Just so we can move the data to a DB if necessary,
without rewrinting the DTML code.

--
Martijn Pieters, Web Developer
| Antraciet http://www.antraciet.nl
| Tel: +31-35-6254545 Fax: +31-35-6254555
| mailto:mj@antraciet.nl http://www.antraciet.nl/~mj
| PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149
------------------------------------------