I'm making my own manage_top_frame.dtml and noticed that &dtml-BASEPATH1; is returning nothing. &dtml-URL1; returns what it looks like we really want. -- Matt Behrens <matt.behrens@kohler.com> System Analyst, Baker Furniture
You probably mean BASE1 Cheers. -- Andy McKay. ----- Original Message ----- From: "Behrens Matt - Grand Rapids" <Matt.Behrens@Kohler.Com> To: <zope@zope.org> Sent: Wednesday, October 17, 2001 12:32 PM Subject: [Zope] BASEPATH1 broken?
I'm making my own manage_top_frame.dtml and noticed that &dtml-BASEPATH1; is returning nothing. &dtml-URL1; returns what it looks like we really want.
-- Matt Behrens <matt.behrens@kohler.com> System Analyst, Baker Furniture
_______________________________________________ Zope maillist - Zope@zope.org 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 )
Andy McKay wrote:
You probably mean BASE1
Someone should tell whoever wrote manage_top_frame.dtml then... lib/python/App/dtml/manage_top_frame.dtml: ... <link rel="stylesheet" type="text/css" href="<dtml-var BASEPATH1>/manage_page_style.css"> ... <td width="180" align="left" valign="top"><a href="http://www.zope.org/" target="_new"><img src="<dtml-var BASEPATH1>/p_/zopelogo_jpg" height="32" width="90" border="0" alt="" /> ... and a few other instances. -- Matt Behrens <matt.behrens@kohler.com> System Analyst, Baker Furniture
From: "Behrens Matt - Grand Rapids" <Matt.Behrens@Kohler.Com>
Someone should tell whoever wrote manage_top_frame.dtml then...
For each of URL0, URL1, ..., BASE0, BASE1, ... there is a corresponding URLPATH* or BASEPATH* variable. These are simply the path portion of the URL, omitting the protocol, hostname, and port. Thus, if the BASE1 is "http://www.myhost.com/", then BASEPATH1 will be blank. This is a convenient way to generate site-relative links. Cheers, Evan @ Zope
For each of URL0, URL1, ..., BASE0, BASE1, ... there is a corresponding URLPATH* or BASEPATH* variable. These are simply the path portion of the URL, omitting the protocol, hostname, and port. Thus, if the BASE1 is "http://www.myhost.com/", then BASEPATH1 will be blank. This is a convenient way to generate site-relative links.
Stupid me, I would have assumed it was documented somewhere... so much for the python scripts I have to generate the same thing. Cheers. -- Andy McKay.
Maybe I'm just ignorant, but I never heard of a variable called "BASEPATH1" being available in dtml namespace. Was it "BASE1" you were looking for? Maybe you were thinking about "PATH_INFO" at the same time... oh yes, and then there's the LocalFS product having an object property called "basepath"... I get mixed up all the time. A dtml method "showREQUEST" holding the one-liner <dtml-var REQUEST> comes very handy now and then. hth, Danny On Thursday 18 October 2001 08:32, Behrens Matt - Grand Rapids wrote:
I'm making my own manage_top_frame.dtml and noticed that &dtml-BASEPATH1; is returning nothing. &dtml-URL1; returns what it looks like we really want.
participants (4)
-
Andy McKay -
Behrens Matt - Grand Rapids -
Danny William Adair -
Evan Simpson