If you go to a URL that ends in a folder, you get the index_html in that folder, right? Well, yes and no... If you go to: http://server.com/folder1/folder2/folder1 ...where folder1 is a folder in your Zope's root, folder2 is contained in folder1, but doesn't itself contain a folder1 (so the last folder1 in the url is also the first one, just acquired), Zope returns the following: <html><head> <base href="http://localhost:8080/testnav/normaltest/testnav/"> </head> <body> <Folder instance at 014B3D80> </body> </html> So, what's going on here? why no index_html rendering? cheers, Chris
Hi Chris, OK... you need to tell us where the index_html's are and what they have in them! ;-) Do you have a <dtml-var folderx> somewhere? -steve
"Chris" == Chris Withers <chrisw@nipltd.com> writes:
Chris> If you go to a URL that ends in a folder, you get the Chris> index_html in that folder, right? Chris> Well, yes and no... Chris> If you go to: http://server.com/folder1/folder2/folder1 Chris> ...where folder1 is a folder in your Zope's root, folder2 Chris> is contained in folder1, but doesn't itself contain a Chris> folder1 (so the last folder1 in the url is also the first Chris> one, just acquired), Zope returns the following: Chris> <html><head> <base Chris> href="http://localhost:8080/testnav/normaltest/testnav/"> Chris> </head> Chris> <body> <Folder instance at 014B3D80> </body> </html> Chris> So, what's going on here? why no index_html rendering? Chris> cheers, Chris> Chris Chris> _______________________________________________ Zope-Dev Chris> maillist - Zope-Dev@zope.org Chris> http://lists.zope.org/mailman/listinfo/zope-dev ** No cross Chris> posts or HTML encoding! ** (Related lists - Chris> http://lists.zope.org/mailman/listinfo/zope-announce Chris> http://lists.zope.org/mailman/listinfo/zope )
Steve Spicklemire wrote:
Hi Chris,
OK... you need to tell us where the index_html's are and what they have in them! ;-)
Doesn't seem to matter what's in them... Say there's one in folder1 and one in folder2, which one should be used? Why are neither of them being used? cheers, Chris
Do you have a
<dtml-var folderx>
somewhere?
don't think so...
Chris> If you go to a URL that ends in a folder, you get the Chris> index_html in that folder, right?
Chris> Well, yes and no...
Chris> If you go to: http://server.com/folder1/folder2/folder1
Chris> ...where folder1 is a folder in your Zope's root, folder2 Chris> is contained in folder1, but doesn't itself contain a Chris> folder1 (so the last folder1 in the url is also the first Chris> one, just acquired), Zope returns the following:
Chris> <html><head> <base Chris> href="http://localhost:8080/testnav/normaltest/testnav/"> Chris> </head>
Chris> <body> <Folder instance at 014B3D80> </body> </html>
Hi Chris, I have folder test1 at the root with a DTML Method: index_html that says: <html> <head> </head><body> I am in the test1 folder. </body></html> in test1 I have folder test2 with a DTML Method: index_html that says: <html> <head> </head><body> I am in the test2 folder. </body></html> When I view /test1/test2/test1 I get: <html> <head> <base href="http://myhost:8080/test1/test2/test1/" /> </head><body> I am in the test1 folder. </body></html> I don't see the behavior you describe.. What did I misunderstand? thanks, -steve
"CW" == Chris Withers <chrisw@nipltd.com> writes:
CW> Steve Spicklemire wrote: >> Hi Chris, >> >> OK... you need to tell us where the index_html's are and what >> they have in them! ;-) CW> Doesn't seem to matter what's in them... CW> Say there's one in folder1 and one in folder2, which one CW> should be used? Why are neither of them being used? CW> cheers, CW> Chris >> Do you have a >> >> <dtml-var folderx> >> >> somewhere? CW> don't think so... Chris> If you go to a URL that ends in a folder, you get the Chris> index_html in that folder, right? >> Chris> Well, yes and no... >> Chris> If you go to: http://server.com/folder1/folder2/folder1 >> Chris> ...where folder1 is a folder in your Zope's root, folder2 Chris> is contained in folder1, but doesn't itself contain a Chris> folder1 (so the last folder1 in the url is also the first Chris> one, just acquired), Zope returns the following: >> Chris> <html><head> <base Chris> href="http://localhost:8080/testnav/normaltest/testnav/"> Chris> </head> >> Chris> <body> <Folder instance at 014B3D80> </body> </html> CW> _______________________________________________ Zope-Dev CW> maillist - Zope-Dev@zope.org CW> http://lists.zope.org/mailman/listinfo/zope-dev ** No cross CW> posts or HTML encoding! ** (Related lists - CW> http://lists.zope.org/mailman/listinfo/zope-announce CW> http://lists.zope.org/mailman/listinfo/zope )
participants (2)
-
Chris Withers -
Steve Spicklemire