[Zope] breadcrumbs ques

Jaroslav Lukesh lsh@wo.cz
Mon, 23 Sep 2002 21:22:29 +0200


| 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
><dtml-if sequence-start><dtml-else
><a class=3D"navltop" href=3D"<dtml-var absolute_url>/"><dtml-var
title_or_id></a
></dtml-if
><dtml-if sequence-end><dtml-else
><br></dtml-if
></dtml-in>

put that DTML Method at ROOT of your Zope web.

Regards J. Lukesh