[Zope] laction-bar with absolute url's

Casey Duncan cduncan@kaivo.com
Wed, 18 Apr 2001 08:36:42 -0600


Tapio H=FCffner wrote:
>=20
> hello ng,
>=20
> I want to implement a location bar on my webpage like zope has implemen=
ted
> (not at the webpage but at application).
> It should look like:
> root / folder / subfolder / ...
> and you should be able to navigate with this location-bar, so that "fol=
der"
> is a link to root/folder and "subfolder" is a link to root/folder/subfo=
lder.
> And then "folder should not be a link to root/folder/subfolder/folder j=
ust
> because of acqusition.
> The sructure of my webpage is a folder system, so that naerly every sit=
e is
> a folder.
>=20
> My resolution for this problem is:
>=20
>      <dtml-in getPhysicalPath>
>      <a href=3D"&dtml-sequence-item"> <dtml-var sequence-item></a> /
>      </dtml-in>
>=20
> This works good, but I have of course a problem with the acquisition.
> The links are only relative and it could look like
> root/folder/subfolder/folder/folder/folder/...
> in the location-bar of my browser when you click on folder a few times.=
 The
> "folder"-page is shown correctly because of the acquisition, but I don'=
t
> want this strange path-behaviour in my browser. For that I want to crea=
te
> absolute links to "folder" or "subfolder". The links should be absolute
> links to the folders URL, separeted by /.
> Can somenone explain to me how I could implement this?
>=20
> Thank you very much,
>=20
> Tapio
>=20

You could try (untested):

<dtml-in name=3D"aq_chain">
    <a href=3D"&dtml-absolute_url;">&dtml-id;</a> /
</dtml-in>

--=20
| Casey Duncan
| Kaivo, Inc.
| cduncan@kaivo.com
`------------------>