[Zope] two questions
Peter Bengtsson
peter@grenna.net
Fri, 23 Mar 2001 10:35:24 -0000
> 1. Relative URL's
>
> I've got the following piece of code:
>
> <ul>
> <dtml-in expr="objectValues('Folder')" sort=sort_order>
> <li><a class="sidemenu" href="&dtml-absolute_url;"><dtml-var
> title_or_id></a><br></li>
> </dtml-in>
> </ul>
>
> I don't want an absolute_url but a relative url, but couldn't find any
> list in doc which variables are available. Can anyone give me a clue or
> point me the doc where to find it?
With relative URL
<ul>
<dtml-in expr="objectValues('Folder')" sort=sort_order>
<li><a class="sidemenu" href="&dtml-id;"><dtml-var
title_or_id></a><br></li>
</dtml-in>
</ul>
This will give you urls like
<li><a href="folder">Folder</a>
<li><a href="otherFolder">Other Folder</a>