View Single Post
Old 2nd May 2007, 11:39
rbartz rbartz is offline
Join Date: Apr 2006
Posts: 80
Thanks: 9
Thanked 6 Times in 5 Posts
Default Modified templates saved on upgrade

ispConfig is great, you guys!

I have a couple of user templates I modified with an extra link or so that a user cannot turn his spam filtering or antivirus on and off... For example in /home/admispconfig/ispconfig/web/mailuser/templates/main.tpl.htm we add a link so the user can open his webmail.

The problem is when we upgrade, the modified templates are overwritten, of course. Perhaps in version 3, the templates could be named with a .default extension and the programming could look for a template without the extension first... eg. .....templates/main.tpl.htm and then use the shipped template, .....templates/main.tpl.htm.default, if not found. Then if we modify a template, we take the .default off the name and it would not be overwritten.

Another way might be to have a user_templates directory that is checked for a template by name before the default is used.... There may be other ways as well.

Thanks for all your work!

Reply With Quote
Sponsored Links