Hi Peter, Is there a way to set runParent attribute to individual plugin?
Here is a simple use case: • A web application firewall set up as a base plugin should by default process each request, even inside modules. • A session handling plugin should only run on the base application (front end). • An access check / security plugin should run only inside module (let's say when admin is set up as a module). So, in this case if we set runParent to none inside the admin module, it will disable session handling (good), but it will also disable web app firewall (bad). I know we can always run the web app firewall in Application.cfc and it will run on each request, but I'm sure there will be other cases where we would like to use the plugin. I think it might be good to have an attribute called runOnChild="before|after|none|always" that can be set on individual plugin. Thoughts? Sumit On Fri, Sep 11, 2009 at 11:24 AM, Peter J. Farrell <[email protected]>wrote: > > Using this hasn't been documented very well. Since Modules inherit from > their parent, so do your plugins. In some situations you want your > parent plugins to run *before* for the plugins defined in your module, > sometimes you want your parent plugins to run *after* your module > plugins and lastly you may never want any of your parent plugins to run > when in a module. > > The valid options (if you define this attribute) are: > > * after > * before > * none > > This attribute has no affect for base applications (i.e. not in a module). > > Best, > .Peter > > P.s. I'm going to update the XML Quick Reference wiki page with this > information which is the best place to look up XML syntax: > > http://greatbiztoolsllc.trac.cvsdude.com/mach-ii/wiki/ConfigFileExplained > > jarthel said the following on 09/10/2009 10:07 PM: > > I am in the process of putting my application to its own module called > > frontend. Since the dashboard is implemented as module, I decided to > > have a look at its config. and I found "runParent" in its plugin tag. > > > > What does this do and how do I use it? > > > > I checked the wiki entry for plugins and there was no mentioned of the > > parameter. Searching this google group came out empty as well. > > > > Thank you :) > > > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to Mach-II for CFML list. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/mach-ii-for-coldfusion?hl=en SVN: http://greatbiztoolsllc.svn.cvsdude.com/mach-ii/ Wiki / Documentation / Tickets: http://greatbiztoolsllc.trac.cvsdude.com/mach-ii/ -~----------~----~----~----~------~----~------~--~---
