[Zope] [Zope/DTML] accessing PARENTS url with dtml tag ???

Cliff Ford Cliff.Ford at ed.ac.uk
Fri Apr 15 09:35:06 EDT 2005


Try this construction:

<dtml-with expr="aq_parent">Object: <dtml-var title_or_id> url: 
<dtml-var absolute_url></dtml-with>

Cliff

BonviciniJ at keops.net wrote:
> I have found a similar problem at this url:
> http://mail.zope.org/pipermail/zope/2000-August/115809.html
> 
> I want to do the same a Kapil, but in DTML.
> I tried different solutions:
> 1)<dtml-with "PARENTS[0]"><dtml-var absolute_url></dtml-with>
> 2)<dtml-var "PARENTS[0].absolute_url()">
> 
> but I still have the problem.
> I wannt to display (in DTML) the absolute URL of the parent, but it doesn't work: 
> it displays the absolute url of the CURRENT object.
> 
> could you help me to find the solution please?
> 
> thanks (and excuse for my lack in english)
> 
> 
> 
> 
> _______________________________________________
> Zope maillist  -  Zope at zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )
> 


More information about the Zope mailing list