Havp template customisation
-
After customising the template for havp a while back (2.0alpha, maybe?) and then doing a "firmware upgrade" the havp package was updated also. Unfortunately this nuked my template customisations by overwriting the /usr/share/examples/havp/templates/* files with the ones from the package without checking if they had been modified.
Can somebody please advise the official way of maintaining these template customisations (to remove the "your company here" text, for e.g.) between upgrades of the package/OS.
Alternatively is there supposed to be a way of creating the files outside the /usr/share/examples/havp tree (as it should be done) and updating the havp configuration file to match without the system overwriting the customised location with the default for the language chosen within the gui? (e.g. /usr/share/examples/havp/templates/en/ when English is chosen in the GUI.)
-
You can use a different directory for custom templates.. For example /usr/share/examples/havp/templates_custom/.
This should be safe for your templates from being overwritten when reinstalling HAVP.
Specify the path to your directory you can define in /usr/local/pkg/havp.inc -
excellent, thankyou! that should be just what I need :-)
-
excellent, thankyou! that should be just what I need :-)
Defines in havp.inc
define('HVDEF_TEMPLATES', '/usr/local/share/examples/havp/templates'); define('HVDEF_TEMPLATES_EX', HVDEF_TEMPLATES . '_ex');
Try use /usr/local/share/examples/havp/templates_ex to your templates. This is used without any havp.inc modifications and must be stored even if HAVP will reinstalled.
-
even better. Thankyou for the extra research. I can confirm that placing my version of the en/ templates into the templates_ex directory does utilise them appropriately instead of the original examples.