Re: [Zope] Can I change the default document to index.html???
Oleg, Sorry, I can't seem to find the How-To that descibes how to change the default document without resorting to the <dtml-var default.html> work-around that i mentioned in my previous post. That work-around doesn't change the fact that everytime a new folder is created with an associated public interface, the default document created is index_html. Walter On Fri, Sep 07, 2001 at 08:17:08AM -0700, Walter Miller wrote:
Has anyone figured out how to change the default document from index_html to index.html?
This is one of the oldset FAQs. Search HOWTOWs on zope.org :) Oleg. ---- Oleg Broytmann http://www.zope.org/Members/phd/ phd@p... Programmers don't die, they just GOSUB without RETURN.
On Fri, Sep 07, 2001 at 09:16:31AM -0700, Walter Miller wrote:
Sorry, I can't seem to find the How-To that descibes how to change the default document without resorting to the <dtml-var default.html> work-around that i mentioned in my previous post. That work-around doesn't change the fact that everytime a new folder is created with an associated public interface, the default document created is index_html.
Maybe I'm thick, but does 'create a public interface' do anything *other* than make an index_html DTML Document in the folder? If not, why bother? Acquire index_html from higher up the object tree, and let that object refer to default.html -- right? I'm fairly certain I've made folders with and without 'public interface' and the security settings were identical. Of course, I could be wrong. -- Mike Renfro / R&D Engineer, Center for Manufacturing Research, 931 372-3601 / Tennessee Technological University -- renfro@tntech.edu
No, but it's an extra step to go back after every new folder and create a default.html DTML document instead of just selecting 'create a public interface'. Plus, it's not very intuitive to have to just "know" this work-around. It seems pretty basic to provide the means to change the default document as per IIS, et al.
Maybe I'm thick, but does 'create a public interface' do anything *other* than make an index_html DTML Document in the folder? If not, why bother? Acquire index_html from higher up the object tree, and let that object refer to default.html -- right?
On Fri, Sep 07, 2001 at 01:05:04PM -0700, Walter Miller wrote:
No, but it's an extra step to go back after every new folder and create a default.html DTML document instead of just selecting 'create a public interface'.
You must have a different need for changing the default document than I was expecting. Normally, I'd assume that people who didn't want index_html would be people who'd be managing their HTML content via some PC-based authoring tool (Netscape Composer, Frontpage, etc.) -- if that were the case, then: - you might create a folder, tell the HTML author about it, and say "here, fill it up with the content". They use default.htm, index.html, or whatever as their default document, and your high-placed index_html method renders that content. - you don't explicitly create folders at all, and tell your HTML authors to upload their content via FTP, Webdav, whatever. Again, they use default.htm, index.html, or whatever as their default document, and your index_html method renders that content. The only difference from above is that they'd create their own folders as needed. You're apparently doing neither of these, to my understanding. Either that, or I'm really garbling your intent. One other possibility that came to mind is whether or not you're creating this high-level index_html as a DTML document, or as a DTML method. If you create it as a document, it's my understanding that it won't render the default.htm document from the proper location. So I guess one of my questions is why are you creating a default.htm document yourself in the Zope management interface? -- Mike Renfro / R&D Engineer, Center for Manufacturing Research, 931 372-3601 / Tennessee Technological University -- renfro@tntech.edu
Great points. I guess I just like to muck with code occasionally through the management interface so if I'm working on a project with developers who use Dreamweaver, this situation arises. It's really not that big of an issue. It would just be a nice "feature" to have.
- you might create a folder, tell the HTML author about it, and say "here, fill it up with the content". They use default.htm, index.html, or whatever as their default document, and your high-placed index_html method renders that content.
- you don't explicitly create folders at all, and tell your HTML authors to upload their content via FTP, Webdav, whatever. Again, they use default.htm, index.html, or whatever as their default document, and your index_html method renders that content. The only difference from above is that they'd create their own folders as needed.
participants (2)
-
Mike Renfro -
Walter Miller