I've noticed that sometimes as I traverse my Zope sight the URL keeps growing.. For instance The main folder has an index_html mainfolder->index_html A subfolder doesn't mainfolder/subfolder If the index_html is accessed from the sub you get the mainfolders index_html as I expect to. However if I traverse the two folders sometimes the URL looks like mainfolder/subfolder/subfolder/subfolder/index_html Why.. Thanks
Stuart Foster wrote:
However if I traverse the two folders sometimes the URL looks like
mainfolder/subfolder/subfolder/subfolder/index_html
Why..
somewhere on one of you pages you have a link something like <a href="subfolder/index_html"> that's a relative link and thanks to the magic of the Zope automatically inserted BASE tag (yurch!) will actually be a link to: http://yoursite.com/mainfolder/subfolder/subfolder/index_html so, the above should actually be: <a href="&dtml.url-subfolder/index_html"> cheers, Chris
Where can I find more information on how this is done. I'm not familiar with the dtml. notation? Thanks -----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Chris Withers Sent: Friday, August 18, 2000 11:59 AM To: Stuart Foster; Zope List Subject: Re: [Zope] Don't use relative links! Chris Withers wrote:
so, the above should actually be:
<a href="&dtml.url-subfolder/index_html">
erk :S <a href="&dtml.url-subfolder;/index_html"> ^^^ sorry, Chris _______________________________________________ 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 )
Stuart Foster wrote:
Where can I find more information on how this is done. I'm not familiar with the dtml. notation?
Chris Withers wrote:
so, the above should actually be:
<a href="&dtml.url-subfolder/index_html">
erk :S
<a href="&dtml.url-subfolder;/index_html"> ^^^
its referred to as the entity syntax of dtml. its mainly for saving typing in urls. the . syntax is standard attribute access of python. try a search on zope.org for entity syntax. i believe there is a doc in jim fulton's members folder that does some explaining, probably a how to as well. Kapil
Stuart Foster wrote:
Where can I find more information on how this is done. I'm not familiar with the dtml. notation?
http://www.zope.org/Members/AlexR/EntitySyntax cheers, Chris
participants (3)
-
Chris Withers -
Kapil Thangavelu -
Stuart Foster