[Zope] breadcrumbs ques

AM list_subscriber@neurobs.com
Mon, 23 Sep 2002 16:22:13 -0700


what about Chris' solution and his comment :

"Using PARENTS for breadrumbs is bogus."

-AM

Jaroslav Lukesh wrote:

>| Odes=EDlatel: AM <list_subscriber@neurobs.com>
>| my final solution:
>|=20
>| result =3D []
>| url =3D container.REQUEST.BASE0
>| path =3D context.getPhysicalPath()
>| for id in path:
>|   if id !=3D '':
>|     url =3D url + '/' + id
>|     result.append({'id':id,'url':url})
>| return result # adjust as appropriate to get your site root
>|=20
>|=20
>| Now the only problem is I wanted the titles for these thingies cos=
 ids=20
>| cant have spaces.....
>
>Hi, try pure DTML solution, what works with virtual webs too:
>
><dtml-in "PARENTS[:-1]" skip_unauthorized
> =20
>
>><dtml-if sequence-start><dtml-else
>><a class=3D"navltop" href=3D"<dtml-var absolute_url>/"><dtml-var
>>   =20
>>
>title_or_id></a
> =20
>
>></dtml-if
>><dtml-if sequence-end><dtml-else
>><br></dtml-if
>></dtml-in>
>>   =20
>>
>
>put that DTML Method at ROOT of your Zope web.
>
>Regards J. Lukesh
>
>
>_______________________________________________
>Zope maillist  -  Zope@zope.org
>http://lists.zope.org/mailman/listinfo/zope
>**   No cross posts or HTML encoding!  **
>(Related lists -=20
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )
>
>
> =20
>

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