-
☆ A M B ☆
- 455 Posts
Hi,
I want to change something in codes of snippets by a plugin before they execute. is it possible?
i found out that there are two event for snippets OnSnipFormPrerender and OnSnipFormRender. are these events my solution? so if i can access to snippets code by these events, how can i get the snippets contents? i want to replace somthing.
and if it is possible, does it support and work with include codes?
unfortunately i couldn’t find about plugin events more.
please help me to create it
Thanks you
AHHP
-
☆ A M B ☆
- 24,524 Posts
No, those events are for when the snippet editing form in the Manager is displayed. There are no events for what you want.
The way to handle that is to add variables to the snippet to enable external modification of what you need to have modified. Then you can use snippet parameters to set these variables when you call the snippet.