-
☆ A M B ☆
- 721 Posts
We are going to be using Evolution for a number of subdomains (over 50) for a site. These are effectively mini sites for individuals within an organization.
They all use the same templates, template variables, snippets, pluglns, and chunks.
When an update occurs. We’d like to not have to update such elements in numerous installs of MODx.
I was wondering if there is a way to include common elements as external .php files from one particular folder and if that can be done by jumping out of subdomains to the main domain?
Is so, how?
I found one post about it from 2005 that wasn’t too clear (at least to me) and can find nothing in the documentation (though bindings for TVs have some potential).
See OpenGeek’s message in this thread:
http://modxcms.com/forums/index.php?topic=18872.55. It would allow you to keep all the snippet and plugin source files in the same directory and have the custom snippet "include" them when necessary. The only catch would be if the snippets themselves "included" or referred to other files using relative paths. You’d have to move those as well.
For chunks, you can’t "include" them from files but you could create a generic "getChunk" snippet that would return data read from a file. Or you could use Template Variables with the @FILE binding.