[Zope] how get a relative root from
Miguel Beltran R.
yourpadre at gmail.com
Tue Aug 25 11:29:00 EDT 2009
I resolve using this script
[getmyroot_py]
request = container.REQUEST
if request.has_key("VirtualRootPhysicalPath"):
s=""
else:
s=request.BASE2
return s
[menu]
<dtml-let myroot="getmyroot_py">
<ul id="nav">
<li>
<a href="&dtml-myroot;/finanza/proyecto/">Proyecto</a>
<ul class="menu">
<li><a href="&dtml-myroot;/finanza/proyecto/alta">Alta</a></li>
<li><a
href="&dtml-myroot;/finanza/proyecto/busqueda">Busqueda</a></li>
</ul>
</li>
</ul>
</dtml-let>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope/attachments/20090825/afce3d87/attachment.html
More information about the Zope
mailing list