stevewithington / MuraPlugin

A generic, ulta-simple starter plugin for Mura CMS
Apache License 2.0
9 stars 12 forks source link

Feature Request: add onAfterContentSave() #2

Closed davidpanzarella closed 9 years ago

davidpanzarella commented 9 years ago

I think this can already be done, but wanted a space to confirm that. Am I correct in thinking that I can add this to my extensions/includes/eventHandler.cfc?

public any function onAfterContentSave(required struct $) {
    var local = {};
    local.$ = arguments.$;
    set$(arguments.$);

    savecontent variable='local.str' {
        include 'includes/onAfterContentSave.cfm';
    }

    return local.str;
}

I can get this to work without a hitch if i do this in my config.xml:

Githubissues.
  • Githubissues is a development platform for aggregating issues.