Chris Withers writes:
 > Joachim Werner wrote:
 > > 
 > > >
 > > > Can anyone tell me how to use DTML to get at the  URL for the document
 > > > being displayed?
 > > >
 > > 
 > > <dtml-var URL>
 > 
 > That's not really correct. That's the url of the current request, which may well
 > not be the url of the object you're currently displaying.
 > 
 > <dtml-var absolute_url> is the right one, and works with virtual hosting too ;-)
It depends what you mean by "the URL of a document".

If the "document" happens to be a DTML method, then
"<dtml-var absolute_url>" does not return the URL of the method.


Dieter

_______________________________________________
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )

Reply via email to