hi, On Mon, 2004-10-04 at 13:47, Andreas Jung wrote:
--On Montag, 4. Oktober 2004 12:44 Uhr +0100 John Poltorak <jp@warpix.org> wrote:
On Mon, Oct 04, 2004 at 01:35:12PM +0200, Andreas Jung wrote:
--On Montag, 4. Oktober 2004 12:28 Uhr +0100 John Poltorak <jp@warpix.org> wrote:
Is there a list of file names which Zope looks for to automatically display a homepage when a website is referenced?
I would like home.htm to shown when viewing www.mysite.org but it doesn't look as if Zope searches for such a file. Is this a configuration option?
The default view is always 'index_html'.
Is there any way to overide this or create an index_html which simply autoloads home.htm?
index_html (as DTML method):
<dtml-call "REQUEST.RESPONSE.redirect(this().absolute_url() + '/home.html')" >
or just
<dtml-call "REQUEST.RESPONSE.redirect('/home.html')" >
Hrhm. Would a simple python script consisting of: return context['home.htm']() look a bit cleaner? ;) Sure, it depends a bit on the type of home.htm... Regards Tino