[Zope] breadcrumbs ques

AM list_subscriber@neurobs.com
Tue, 17 Sep 2002 18:26:34 -0700


Hi I have the following breadcrumbs method:

<dtml-in PARENTS reverse>
 <dtml-with PARENTS>
  <dtml-if sequence-start>
   <a href="/nbs_online" class='cyan_link'>Home</a>
  <dtml-else>
   <dtml-if sequence-end><dtml-else>&rsaquo;&rsaquo;
    <a href="<dtml-var absolute_url>" class='cyan_link'><dtml-var 
title_or_id></a>
   </dtml-if>
  </dtml-if>
 </dtml-with>
</dtml-in>


The problem is when I am in a folder:

a\b\c\d\index_html

My breadcrumbs only displays a - b - c
quite obviously because I only list the parents and it goes for d as the 
base node and lists all its parents

Now if index_html is a dtml document shouldnt it consider that as the 
base object and then list all of its parents as a true breadcrumbs should??

What do I have to do to get that kind of thing going?? I think that the 
solution is to add the following in the end of the breadcrumbs: (in 
pseudo..)

if calling_object not folder:
    list the containing folder

How then do I get the information required to the the abovementioned.... 
namely:
calling_object &
containing_folder (which would merely be calling_object.parent)??

TIA
AM

-- 
==================================================================
 Aseem Mohanty							   
 Neurobehavioral Systems Inc, 828 San Pablo Ave, Albany, CA 94706 
 (R) 510 7696011 (M) 510 3014871 (O) 510 5279231		  	
==================================================================								  	
 "I saw `cout' being shifted "Hello world" times to the left and  
  stopped right there!!"                        -- Steve Gonedes  
==================================================================