[Zope] Virtual hosts: How to make proper intra-site URL's?
Rob W. W. Hooft
rob@hooft.net
Fri, 16 Jun 2000 09:39:07 +0200 (CEST)
Following up to my own post:
RWWH> If I am looking at page: "People" should link to:
RWWH> http://www.host1/ People or http://www.host1/People
RWWH> http://www.host1/News ../People or http://www.host1/People
RWWH> http://www.site/Host1 People or http://www.site/Host1/People
RWWH> http://www.site/Host1/News ../People or http://www.site/Host1/People
To accomplish this it looks like I need the "base" url not of the
current page being viewed, but the "base" url (absolute location) of
the dtml-method that is rendering the links. So: even if I am viewing
http://www.host1/News, I want to know in the dtml method making up the
the navigation bar that it is in http://www.host1/nav_bar. Is there
a dtml-var that points to the current method?
Rob
--
===== rob@hooft.net http://www.hooft.net/people/rob/ =====
===== R&D, Nonius BV, Delft http://www.nonius.nl/ =====
===== PGPid 0xFA19277D ========================== Use Linux! =========