• MODX.com

    1,707 downloads

Include snippet

Include snippet is an extra by unglued, first released on 2011-03-23.

Package Description

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:

[[include? &file=`any/other/placr/mysnippet.php`]]

Usage/Installation Instructions

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!

Details

Developer(s)
unglued
Released
2011-03-24
First seen
2011-03-23
License
GPLv2
Supported databases
MySQL
Minimum MODX Requirement
2

Include snippet Releases

Vendor Signature Released on
MODX.com 1.0-pl 2011-03-24 (7 years ago)