Tonnesen Steve schrieb:
I'd like to propose moving the templates directories out of htdocs and into
INTRANETDIR/templates/ and OPACDDIR/templates/
I have a couple of reasons for requesting this change:
1. Template files should never be served up by the web server. I don't anticipate any sensitive data being stored in the templates, but they don't _need_ to be served up by the web server, so they should _not_ be in the document root. Configuring Apache to not serve .tmpl files is an unnecessary hack.
You are right from this point of view, but on the other hand having the templates in the document root significantly enhances the readability and the ease of theme development. Comparing this strong advantages with the little weakness of an harmless apache hack, I would prefer to keep the templates where they are now.
2. During upgrades, it is necessary to preserve custom template directories. If the templates are together and alone in one directory this will be much easier. The htdocs directory is getting pretty empty with all the templating work, but it might contain some on-line documentation at some point.
I can't see any advantage here. Even if the templates were outside the webtree, the images and so on would still have to be in the webtree. So you would be making two problems from one, because you'd have to check two directories for custom themes where there was only one before. I think your proposal preceeding the 'original' themes with koha- would be a good solution: during upgrade and installation leave all items in the server root alone, which don't start with koha- and we have it. So people could use their servers even for non-koha things without mess. Dorian