In the section on 'restindex' where it talks about the template entry
the documentation says:-
In an 'index.txt' this can specify the template file for the whole
directory (and directories below it as well).
... and in the 'force mode' section it says:-
When force is on and no template is specified, then the default
one (restweb/defaults/template.txt) is used.
If a template is specified in the restindex of any index page,
then that will be used for that directory (and all subdirectories)
in the usual way.
Every directory that has no index.txt will use the default one.
(restweb/defaults/index.txt)
This doesn't seem to be working as specified. In my top level
index.txt file I have:-
restindex
crumb: Home
template: /home/chris/www/r2w/info/template.tpl
link-title: HomeTitle
/restindex
It's using the specified template file for the top level HTML creation
but for all the sub-directories it's using the default template file
/usr/lib/python2.4/site-packages/rest2web/defaults/template.txt.
I have some subdirectories which have explicit index.txt files and
some which don't but *none* of the subdirectories are using the
template.tpl file specified in the top level index.txt. The only HTML
that's formatted with the top-level template.tpl is the top level
directory.
--
Chris Green
|