-
- 1,495 Posts
Hi guys, can I know the way how document parsing in MODx works?
I mean when I want to create a module, I will have a parameter that I can setup in the second tab, which it will later able to be shared with snippets and plugins. Now the question is, when I change that parameter value in module, will it affect the one on snippet and plugin? If it’s which one will be executed first?
Another thing is, for a variables or function that create in modules, it will not be exported to snippet or plugin right? The only way to share a function is through the include files right? If I want to share variables, it has to be from the sharing parameters right? Now the question is, how about if I want to let plugin change certain variables, and it’s able to be retrieved by the snippet and module? Does it has to be declared as GLOBAL variables?
How about sharing variables between snippets, without having to declared global variables? Same thing plugin and plugin?
Hope I’m not asking too much question in here. The basic question is, how do I share resources variables between snippet, plugin, and module. I know the parameter sharing, but it’s a static variables, which is I want the ability have a dynamic variables to be declared.
\
Thanks
Regards,
Wendy Novianto
-
- 1,495 Posts
Now that explains.
The only thing that concern me is, there will be a security issue in here, when the we accidentally have the placeholder being parsed to the document, because there is a placeholder tag with the same variables name. I know this is really2 rare, mamybe 0.0000001%, but there is still an possibility that this will happen.
I was thinking either to set the placeholder variables to something elese when it’s done being transfered back on forth. So it’s nothing to worry about.
As for the new system, it really amaze me... When is this thing will be implemented?
Another thing, can we run module on the front page? So it’s like a page, but it has an alias and pageid as well. In Quickedit example, we can use plugin to tap into the system and output something to the page together with the page rendering. But how about if I want to display a front end page where web user able to configure it too. Will that be do able?
Thanks