-
- 33 Posts
I’m trying to use a plugin to make a few of my standard functions globally available for use in all my snippets. In Evo this used to be OnWebPageInit, but OnWebPageInit doesn’t have the same result, neither does OnWebPageRenderer. Even worse, it breaks Revo totally. And I only put one small 4 line function inside of it. What event do I need to make a function in a plugin available for snippets?
(I’m using MODX Revolution 2.1.0-rc3 atm)
-
- 24,544 Posts
Is there a reason not to just put something like this at the top of all snippets?
include 'path/to/functions/file';
-
- 24,544 Posts
It’s up to you, but I think that’s the most common method.