I have created an application, and it uses a few custom templates. I placed these templates in MyAPPDirectory\dev\html\global and in dev center > templates I create new template as hook and with following I can show my template where I targeted:
{template="template1" app="MyAPPDirectory" location="global" group="" params=""}
While this working and display template normally in my dev localhost, if I download app and install it in website with dev mode off, I get error. here the system log:
1.
Template store key: template_2_1f1e54e373ef30db179861d0bf0bea57__ missing (MyAPPDirectory, global, )
2.
Error: ErrorException: template_store_missing in /.../system/Theme/Theme.php:921
Stack trace:
#0 /.../system/Theme/CustomTemplate.php(458) : eval()'d code(24): IPS\Theme->getTemplate('', 'MyAPPDirectory...', 'global')
…
I can get around this with copy/paste contents of my .phtml custom file directly in template hook page in dev center. or make one reusable template for contents, and another template to hook the reusable template to a target.
It seems it is a major bug... or era of working on custom templates with IDE is over.
-
[Beta3-Developer mode] Using custom templates
User Feedback
Recommended Comments