Question on Folder Structure strategy...
I have noticed strange behavior when browsing my web site as I build it. For example, take this structure: \-- \Folder1 \Folder2 \Folder3 I make a web page with an index on the left side for ALL PAGES Folder1 Folder2 Folder3 Which are links of the form <a href="Folder#">Folder#</a> If I consecutively click through these links, the browser shows my current page as follows <Click> Folder1, http://Folder1 <Click> Folder2, http://Folder1/Folder2 <Click> Folder3, http://Folder1/Folder2/Folder3 This is NOT what I intend, nor will the second or third work if bookmarked that way. What am I doing wrong??? Thanks in advance for your assistance.
you're using relative links, that's your problem. you should use fully qualified links (like http://<mysite>/folder_x) instead. if you had used anything but zope your links would have failed completely the way they are right now, zope 'masks' the error by finding the desired content through acquisition. jens
-----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Robert Geiger Sent: Sunday, January 30, 2000 12:27 To: Zope Subject: [Zope] Question on Folder Structure strategy...
I have noticed strange behavior when browsing my web site as I build it.
For example, take this structure:
\-- \Folder1 \Folder2 \Folder3
I make a web page with an index on the left side for ALL PAGES
Folder1 Folder2 Folder3
Which are links of the form <a href="Folder#">Folder#</a>
If I consecutively click through these links, the browser shows my current page as follows
<Click> Folder1, http://Folder1 <Click> Folder2, http://Folder1/Folder2 <Click> Folder3, http://Folder1/Folder2/Folder3
This is NOT what I intend, nor will the second or third work if bookmarked that way. What am I doing wrong???
Thanks in advance for your assistance.
_______________________________________________ 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 )
Ahh, I see. But what, then, is <mysite> when the links are relative to the root folder?? I don't quite understand. See original message. I was following the directions in all the Zope documentation that gave examples of links. Thanks for your help. -----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Jens Vagelpohl Sent: Sunday, January 30, 2000 4:42 PM To: rgeiger@bellsouth.net; Zope Subject: RE: [Zope] Question on Folder Structure strategy... you're using relative links, that's your problem. you should use fully qualified links (like http://<mysite>/folder_x) instead. if you had used anything but zope your links would have failed completely the way they are right now, zope 'masks' the error by finding the desired content through acquisition. jens
-----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Robert Geiger Sent: Sunday, January 30, 2000 12:27 To: Zope Subject: [Zope] Question on Folder Structure strategy...
I have noticed strange behavior when browsing my web site as I build it.
For example, take this structure:
\-- \Folder1 \Folder2 \Folder3
I make a web page with an index on the left side for ALL PAGES
Folder1 Folder2 Folder3
Which are links of the form <a href="Folder#">Folder#</a>
If I consecutively click through these links, the browser shows my current page as follows
<Click> Folder1, http://Folder1 <Click> Folder2, http://Folder1/Folder2 <Click> Folder3, http://Folder1/Folder2/Folder3
This is NOT what I intend, nor will the second or third work if bookmarked that way. What am I doing wrong???
Thanks in advance for your assistance.
_______________________________________________ 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 )
_______________________________________________ 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 )
relative or not doesn't matter in this case. the location you want to reach has one and only one absolute address. if you use this absolute address you will get there, regardless of where you are jens
-----Original Message----- From: Robert Geiger [mailto:rgeiger@bellsouth.net] Sent: Sunday, January 30, 2000 17:34 To: Jens Vagelpohl; Zope Subject: RE: [Zope] Question on Folder Structure strategy...
Ahh, I see. But what, then, is <mysite> when the links are relative to the root folder?? I don't quite understand. See original message. I was following the directions in all the Zope documentation that gave examples of links.
Thanks for your help.
-----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Jens Vagelpohl Sent: Sunday, January 30, 2000 4:42 PM To: rgeiger@bellsouth.net; Zope Subject: RE: [Zope] Question on Folder Structure strategy...
you're using relative links, that's your problem. you should use fully qualified links (like http://<mysite>/folder_x) instead. if you had used anything but zope your links would have failed completely the way they are right now, zope 'masks' the error by finding the desired content through acquisition.
jens
-----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Robert Geiger Sent: Sunday, January 30, 2000 12:27 To: Zope Subject: [Zope] Question on Folder Structure strategy...
I have noticed strange behavior when browsing my web site as I build it.
For example, take this structure:
\-- \Folder1 \Folder2 \Folder3
I make a web page with an index on the left side for ALL PAGES
Folder1 Folder2 Folder3
Which are links of the form <a href="Folder#">Folder#</a>
If I consecutively click through these links, the browser shows my current page as follows
<Click> Folder1, http://Folder1 <Click> Folder2, http://Folder1/Folder2 <Click> Folder3, http://Folder1/Folder2/Folder3
This is NOT what I intend, nor will the second or third work if bookmarked that way. What am I doing wrong???
Thanks in advance for your assistance.
_______________________________________________ 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 )
_______________________________________________ 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 )
Robert Geiger wrote:
Ahh, I see. But what, then, is <mysite> when the links are relative to the root folder?? I don't quite understand. See original message. I was following the directions in all the Zope documentation that gave examples of links.
You probably want to use site-relative links. All this really entails is adding '/' to the start of your URLs. Examples: Relative link: 'Folder1' replaces the last part of the current URL Site-relative link: '/Folder1' replaces the entire path of the current URL, while keeping the 'http://host:port/' part. Absolute link: 'http://www.foo.org/Folder1' replaces the entire URL. Cheers, Evan @ 4-am (and soon digicool)
participants (3)
-
Evan Simpson -
Jens Vagelpohl -
Robert Geiger