#25: Death to index_html

Contents
  1. Motivation
  2. Proposal
  3. Implementation
by Alex Limi last modified Jan 21, 2010 07:29 AM

Proposed by
andym
Proposal type
State
completed

Motivation

That filename has no extension or meaning beyond Plone. A filename of index.html is much more common and more friendly to users, editors and the like.

Proposal

Now that browser default is place, there is no need for any page to be called index_html. This a Zope annoyance that we have no need to continue.

Implementation

Change main page to index.html. Change folder creation in Member tool to create index.html. Change default page code in folder contents page.

Comments (1)

Stefan Schultze May 04, 2010 07:18 AM
This my be not a good idea as long as the navigation portlet refuses to show the startpage when selected.
The only simple workaround is showing a startpage by redirection using a file named
'index_html.py' with the id 'index_html'.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
context.REQUEST.RESPONSE.redirect(context.absolute_url()+"/front-page")
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
It would be much easier if the navigation portlet had an option to show the default page in the navigation.
This was not the case.
In the meanwhile too many websites using that workaround may be published.