Skip to content

Instantly share code, notes, and snippets.

@stevewithington
Created May 10, 2017 18:11
Show Gist options
  • Save stevewithington/05c3dc946e545040f6354bf7de0f03c6 to your computer and use it in GitHub Desktop.
Save stevewithington/05c3dc946e545040f6354bf7de0f03c6 to your computer and use it in GitHub Desktop.
Mura CMS: Admin Alert & Help Block Messages
<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