[Zope] Yet another: How do I create linked path trails as per zope management interface?ement interface?
Loren Stafford
lstafford@icompression.com
Tue, 14 Sep 1999 11:35:13 -0700
Here's how I did it. Most of the logic deals with some complications
introduced by Confera topics (meta_type == 'Message').
<!-- Start Breadcrumbs -->
<!--#unless expr="PARENTS[0]==PARENTS[-1]"-->
<!--#call "REQUEST.set('reverse_PARENTS', [])"-->
<!--#call "REQUEST.set('reverse_LAST', 0)"-->
<!--#in PARENTS skip_unauthorized-->
<!--#if expr="(meta_type == 'Message') or (meta_type == 'Reply')"-->
<!--#unless "reverse_LAST==1"-->
<!--#call "reverse_PARENTS.insert(0, _['sequence-item'])"-->
<!--#call "REQUEST.set('reverse_LAST', 1)"-->
<!--#/unless-->
<!--#else-->
<!--#call "reverse_PARENTS.insert(0, _['sequence-item'])"-->
<!--#/if-->
<!--#/in-->
<!--#in reverse_PARENTS-->
<!--#if sequence-start--><a href="/">Home</a>
<!--#else-->
<!--#if sequence-end-->
<!--#unless expr="(meta_type == 'Message') or (meta_type == 'Reply')"-->
> <font size="+0"><!--#var title_or_id--></font>
<!--#/unless-->
<!--#else-->
<!--#if expr="(meta_type == 'Message') or (meta_type == 'Reply')"-->
> <a href="<!--#var absolute_url-->"><!--#var title_or_id--></a>
<!--#else-->
> <a href="<!--#var absolute_url-->"><!--#var id--></a>
<!--#/if-->
<!--#/if-->
<!--#/if-->
<!--#/in-->
<!--#/unless-->
<!-- End Breadcrumbs -->
> -----Original Message-----
> From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of
> Andrew Bunney
> Sent: Tuesday, September 14, 1999 06:09
> To: 'Zope mail list'
> Subject: [Zope] Yet another: How do I create linked path trails as per
> zope management interface?ement interface?
>
>
> I really like the trails of links that show the path to a document which
> allow you to jump up the hierarchy These appear on the Zope Management
> Interface. As a real newbie (with no really programming knowledge) I can't
> work out how to do this and can't find any info on it. An added
> complication
> (possibly) is that it may well be served via an external webserver. Can
> anyone let me have a code snippet?
>
> Thanks
> Andrew
>
> _________________________________________________________________________
> Andrew Bunney,
> Learning Design Demonstrator,
> Business School,
> Bournemouth University
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://www.zope.org/mailman/listinfo/zope
>
> (To receive general Zope announcements, see:
> http://www.zope.org/mailman/listinfo/zope-announce
>
> For developer-specific issues, zope-dev@zope.org -
> http://www.zope.org/mailman/listinfo/zope-dev )
>