[Zope] Breadcrumbs update (was RE: [Zope] dtml-with and only)
Loren Stafford
lstafford@icompression.com
Wed, 3 Nov 1999 15:01:38 -0800
May I add your implementation to the Breadcrumbs How-To (with attribution of
course)?
-- Loren
> -----Original Message-----
> From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Barry
> A. Warsaw
> Sent: Wednesday, November 03, 1999 14:34
> To: Michel Pelletier; Loren Stafford
> Cc: zope@zope.org
> Subject: Re: [Zope] dtml-with and only
>
>
>
> Thanks for the suggestion and explanation guys. Just to follow up,
> Michel's suggestion to use <dtml-with aq_explicit> to turn off
> acquisition did not work. Loren's suggestion to test on
> "hasProperty('nickname')" did the trick nicely. For completeness,
> here's the DTML for my current Breadcrumbs DTML method.
>
> -Barry
>
> -------------------- snip snip --------------------
> <!-- start Breadcrumbs -->
> <dtml-call "REQUEST.set('rev', [])">
> <dtml-in PARENTS 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-if "hasProperty('nickname')"><dtml-var
> nickname><dtml-else><dtml-var title_or_id></dtml-if></a>
> </dtml-with>
> <dtml-unless sequence-end> >
> </dtml-unless>
> </dtml-in>
> <!-- end Breadcrumbs -->
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> No cross posts or HTML encoding!
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )
>