Modified templates saved on upgrade

Discussion in 'Feature Requests' started by rbartz, May 2, 2007.

  1. rbartz

    rbartz Member HowtoForge Supporter

    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!


Share This Page