Hello,
I am doing maintenance on a site which has a template with the following content:
[[includer?file=`/template/mytemplate.html`]]
This implies that there is a snippet calles ’includer’.
But I cannot find this snippet anywhere in the system.
Next strange thing is that when I try to use this in a new MODX environment, it gives me an error message.
Does anybody know where this use of ’includer’ in the template comes from?
Thanks,
Bert Catsburg
-
☆ A M B ☆
- 24,524 Posts
There must be a snippet named "includer". Check the Resources->Manage Resources, then the Snippets tab. Is this template in use? It may have been a testing template. This method is used so the template code is in a file instead of in the database. The path would be the path to the actual HTML file being used as a template.
-
☆ A M B ☆
- 24,524 Posts
Based on the PHP function getcwd(), which can fail on some systems under certain conditions...
http://il.php.net/getcwd