[Zope] Simple Breadcrumbs in ZPT
Jaroslav Lukesh
lukesh at seznam.cz
Thu Mar 18 04:05:57 EST 2004
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
More information about the Zope
mailing list