[Zope] newbie dtml-in question objectValues

J Cameron Cooper zope-l at jcameroncooper.com
Wed Jan 11 13:45:41 EST 2006


Alric Aneron wrote:
>  Hello,
> I am trying to find how to get the relative path of an object.  If i do:
> <dtml-in "objectValues('DTML Document')">
>    <dtml-var URLPATH0>
> </dtml-in>
> 
> URLPATH0 does not give me the relative path of the objects interated, 
> but rather the path of the object doing the iterating (my method). I 
> want the path of every DTML Document the loop encounters.  absolute_url 
> works, but it puts in the undesired filename and "http://...." in front 
> etc.

Ask yourself: where does URLPATH0 come from?

When you know that, you will answer your own question.

		--jcc
-- 
"Building Websites with Plone"
http://plonebook.packtpub.com/

Enfold Systems, LLC
http://www.enfoldsystems.com


More information about the Zope mailing list