[Zope] simple Breadcrumbs modification
web@3dresearch.com
web@3dresearch.com
Thu, 01 Mar 2001 04:35:39 -0500
At 12:29 AM 3/1/2001 -0500, you wrote:
>Newbie question: I am trying to make a simple modification to this
>Breadcrumbs example:
>
><!-- 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 -->
>
>I would like to start the Breadcrumbs trail not at the root folder, but 1,
>2 or 3 levels below the root folder.
>
>Thank you for your help.
After some experimentation the newbie way (trial and error and more error
:) this seems to work:
<dtml-in "PARENTS[0:-2]" skip_unauthorized>
I guess this truncates the list by 2
Now I wish I could figure out how to make Eudora 5 send plain text only...
Janos Dohanics
3D RESEARCH
http://www.3dresearch.com/