18 Mar
2004
18 Mar
'04
9:05 a.m.
Troy Farrell wrote:
I put these in my site root and use them for almost every site I host. The page template I call 'you_are_here' and the python script 'breadcrumbs'. I probably stole these from something. Mebbe from early CMF (?)
Ohh... What simple in DTML! <dtml-call "REQUEST.set('rev', [])"> <dtml-in "PARENTS[:-4]" skip_unauthorized> <dtml-let item=sequence-item> <dtml-call "rev.insert(0, item)"> </dtml-let> </dtml-in> <dtml-in rev> <dtml-with sequence-item> <a href="<dtml-var absolute_url>"><dtml-var title_or_id></a> </dtml-with> <dtml-unless sequence-end> > </dtml-unless> </dtml-in> Regards J. Lukesh