Forked from stevewithington/onContentEditMessageRender.cfm
Created
April 27, 2018 19:09
-
-
Save mattlevine/2a96953bfbdbc07af2fe880b7ce828ca to your computer and use it in GitHub Desktop.
Mura CMS: Admin Alert & Help Block Messages
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <cfscript> | |
| // add to an event handler | |
| public any function onContentEditMessageRender(event, m) { | |
| // reference to the event, if needed | |
| var e = arguments.event; | |
| // could also get a reference to event via Mura Scope | |
| var mse = arguments.m.event(); | |
| // this example merely shows how to render a simple message | |
| return '<div class="alert alert-info">You rock</div>'; | |
| // for markup examples, visit http://docs.getmura.com/v7/mura-ui-markup-conventions/admin-alerts-and-help-blocks/ | |
| } | |
| </cfscript> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment