Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Improve elements to allow file and inline bindings #14490
What does it do?
Added bindings @code, @inline, @file bindings with elements: snippets, chunk. This available for templates and plugins, but it's not callable as "$modx->getChunk() " / "$modx->runSnippet()".
Why is it needed?
This ability do simplier site development because you can not create chunks and snippets in database in all cases.
Also, fixed bug with static elements: now correctly check static file modofication time and if it's more than cache file, cache file will be rewrited.
Small fix PHP notice in modmediasource.class.php.
I'll need to look at this more closely later, but it looks like this would allow syntax like
In 3.x, the