Include snippet is an extra by unglued, first released on 2011-03-23.
This very simple but useful snippet for including external snippets and other external php files.
All you need is folder core/snippets/ with your php code, for example mysnippet.php. Now you can call your snippet from anywhere on your site: [[include? &snippet=`mysnippet`]] (without ".php")
Also you can include any file from any other place in your site:
Install via Package Management. After that, you will find snippet "include" in left elements tree in snippets in "include" category. Create folder core/snippets/ and injoy!
- First seen
- Supported databases
- Minimum MODX Requirement
Include snippet Releases
|MODX.com||1.0-pl||2011-03-24 (7 years ago)|