[Zope] Accesing a new context from a manipulated string

Dieter Maurer dieter@handshake.de
Sun, 2 Jul 2000 23:22:01 +0200 (CEST)


Michael Bernstein writes:
 > Here's my problem:
 > 
 > given a method itemURL(), that typically returns a site
 > relative URL such as '/about/', I need to change to the
 > appropriate directories context using <dtml-with>.
 > 
 > In short I need to do the equivalent of <dtml-with about>.
You may try
  <dtml-with "REQUEST.resolve_url(SCRIPT_NAME + itemURL)">



Dieter