ezpublish - override template in to ez publish 5, tpl file to twig -
i need help! use ez publish 5 , need override template forgotpasswordmail.tpl can help? examples code great me.
assuming have legacy extension created code , legacy design active, best practice place new template in legacy extension same directory structure original one.
the original file placed in ezpublish_legacy/design/standard/templates/user/forgotpasswordmail.tpl, need place yours in ezpublish_legacy/extension/my_extension/design/my_design/templates/user/forgotpasswordmail.tpl
after clearing legacy caches, ez publish 5 pick new file automatically.
if not have design yet, activate it, first need create design.ini.append.php file in my_extension/settings folder following content:
<?php /* #?ini charset="utf-8"? [extensionsettings] designextensions[]=my_extension */ ?> this makes extension "design extension", meaning ez publish extension when searching designs.
then need set siteaccess use new design in ezpublish_legacy/settings/siteaccess/your_siteaccess/site.ini.append.php , clear caches:
[designsettings] sitedesign=my_design
Comments
Post a Comment