[Repost from devinfo list]
[unsticky, linked from manual
http://smeserver.sourceforge.net/sme7/tech/Chapter6#h1098-4]
Contrib developers, in particular, please remember:
RPMs should not install templates in /etc/e-smith/templates-custom or templates-user-customWhy not? Take this situation:
- User installs RPM which contains custom template
- User performs backup (which backs up custom templates, as it should)
- User restores backup on another machine (without the RPM installed)
- Custom template is restored, but the rest of the features from the RPM are not
- In the case of email, this could mean lost mail
Now take this one:
- User performs backup
- User upgrades various packages, including the RPMs with custom-templates
- User performs a restore, thinking they just restored user data
- Old custom template fragment causes pain
Custom templates are for the local sysadmin's use - to override behaviour on this system. RPMs should install fragments in /etc/e-smith/templates or /etc/e-smith/templates-user
In almost all cases you can add a new template fragment instead of overriding a standard fragment.
If you can't, then please RAISE A BUG and discuss what you want to change, why you want to make the change and how you suggest changing it.
Please read the dev guide for details. It can be found at:
http://wiki.contribs.org/developmentThanks,
Gordon