I've decided that sometimes I really want a directory to have an
index page, not just a list of the contents. So now I can, with the
unimaginatively named 'index' view. It's mostly template based; the
normal template uses inject::index
to display an __index
file.
However, the view has several special properties:
__index
in the directory.__index
is a redirection, the index view will just generate
a redirect to the target.(Thus, the index view could be used to replace the wikiroot
configuration directive.)
The index view is valid on directories even without a __index
page in the directory. Right now the template just displays a normal
directory listing in that case.