[Zope] aq_parent in Netscape 4

Thomas Bennett bennettt at pm.appstate.edu
Wed Jan 14 09:31:41 EST 2004


Are you returning your output with CSS.  There is a lot of CSS that 
Netscape 4 does not support and I think it supports none of CSS2.  Here 
are three Breadcrumb dtmls that I thought I got off of Zope Labs none of 
which seem to use aq_parent unless I overlooked something.  After trying a 
search on Zope Labs just now I found only a newer breadcrumb and if you 
search for bread crumbs you can get a pumpkin scone recipe (really).  
Maybe these might help.  I remember now that some of these were in other 
products or solutions like sitemap or something.


<-- BREADCRUMB ONE -->
<dtml-in PARENTS reverse>
<dtml-with PARENTS>
<dtml-if sequence-start><a href="/">Home</a>
<dtml-else>
<dtml-if sequence-end>
<dtml-else>
   <a href="<dtml-var absolute_url>"><dtml-var title_or_id></a>
</dtml-if>
</dtml-if>
</dtml-with>
</dtml-in>


<-- BREADCRUMB TWO -->
<dtml-unless expr="PARENTS[0]==PARENTS[-1]">
<dtml-call "REQUEST.set('reverse_PARENTS', [])">
<dtml-call "REQUEST.set('reverse_LAST', 0)">
<dtml-in PARENTS skip_unauthorized>
<dtml-if expr="(meta_type == 'Message') or (meta_type == 'Reply')">
<dtml-unless "reverse_LAST==1">
<dtml-call "reverse_PARENTS.insert(0, _['sequence-item'])">
<dtml-call "REQUEST.set('reverse_LAST', 1)">
</dtml-unless>
<dtml-else>
<dtml-call "reverse_PARENTS.insert(0, _['sequence-item'])">
</dtml-if>
</dtml-in>
<dtml-in reverse_PARENTS>
<dtml-if sequence-start><a href="/">Home</a>
<dtml-else>
<dtml-if sequence-end>
<dtml-unless expr="(meta_type == 'Message') or (meta_type == 'Reply')">
&gt;&nbsp;<font size="+1" color="#990000"><b><dtml-var 
title_or_id></b></font>
</dtml-unless>
<dtml-else>
<dtml-if expr="(meta_type == 'Message') or (meta_type == 'Reply')">
&gt;&nbsp;<a href="<dtml-var absolute_url>"><dtml-var title_or_id></a>
<dtml-else>
&gt;&nbsp;<a href="<dtml-var absolute_url>"><dtml-var id></a>
</dtml-if>
</dtml-if>
</dtml-if>
</dtml-in>
</dtml-unless>




<-- BREADCRUMB THREE -->
<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>&nbsp;&gt;&nbsp;
</dtml-unless>
</dtml-in>




On Wed, 14 Jan 2004 02:03:36 -0600, David Sumner <david at dragontail.com> 
wrote:

> Hello,
> Has anyone had any issues using aq_parent to build bread crumbs. I have
> a breadcrumbs script that works pretty well in newer browsers. But using
> Netscape 4 seems to break it. It does not return anything. Does anyone
> know of a well implemented breadcrumbs script?
>
> Thanks



-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/



More information about the Zope mailing list