artfulrobot Posted October 3, 2023 Share Posted October 3, 2023 By the way, both the Getting Started link (to an #anchor) and the Documentation link (404: https://raw.githubusercontent.com/wanze/TemplateEngineFactory/v1.1.3/DOCUMENTATION.md) are broken at https://processwire.com/modules/template-engine-factory/ Link to comment Share on other sites More sharing options...
maetmar Posted November 22, 2023 Share Posted November 22, 2023 In my templates I normaly call a _init.php file as prepend to initialize / set some variables, etc. However, as soon as I activate "Enalbe automatic page rendering" in the "Template Engine Factory" Module, this _init.php seems to be nor longer called and therefore my default setting values are undefined and can not be used. Any Idea how to fix this behaviour? If I disable this feature, the system still calls my "standard.php" file including the _init.php call upfront. So maybe I could just load the latte template (as I wnat to use the latte extension) from within standard.php ? But I donßt know how to call it properly. thanks for any help Link to comment Share on other sites More sharing options...
da² Posted November 22, 2023 Share Posted November 22, 2023 @maetmar In site/config.php you can specify your prepend file: // Prepend this file in /site/templates/ to any rendered template files $config->prependTemplateFile = '_init.php'; Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now