[Zope] How can a document know its own URL?

Brendon Grunewald brendon@70south.com
Sun, 28 Jan 2001 19:37:35 +0100


This is a multi-part message in MIME format.

------=_NextPart_000_0061_01C08961.C3E965E0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Can anyone tell me how to use DTML to get at the URL for the document =
being displayed?

I want to display the URL of the document being displayed inside of the =
document being displayed.
Something like:

<b>
  You are now viewing the following URL: <dtml-var Some_DTML_var>
</b>=20

Similar to the <dtml-var title_or_id> var, but for the whole URL not =
just the documents name or title...

I've tried looking at the mailing list archives, but it is either not =
there or my search criteria are not as accurate as they should...

---
Brendon Grunewald

70South: The no1. source for Antarcticles.
Updated daily with the latest news and views on Antarctica and other =
polar issues.

------=_NextPart_000_0061_01C08961.C3E965E0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.3019.2500" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Can anyone tell me how to use DTML to =
get at the=20
URL for the document being displayed?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I want to display the URL of the=20
document&nbsp;being displayed inside of the document being=20
displayed.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Something like:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&lt;b&gt;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp; You are now viewing the =
following URL:=20
&lt;dtml-var Some_DTML_</FONT><FONT face=3DArial =
size=3D2>var&gt;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&lt;/b&gt;</FONT>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Similar to the &lt;dtml-var =
title_or_id&gt; var,=20
but for the whole URL not just the documents name or =
title...</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I've tried looking at the mailing list =
archives,=20
but it is either not there or my search criteria are not as accurate as =
they=20
should...</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>---<BR>Brendon Grunewald</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>70South: The no1. source for=20
Antarcticles.<BR>Updated daily with the latest news and views on =
Antarctica and=20
other polar issues.</FONT></DIV></BODY></HTML>

------=_NextPart_000_0061_01C08961.C3E965E0--