Skip to content

Instantly share code, notes, and snippets.

Last active December 21, 2015 07:29
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Mura CMS : In 6.1, you will be able to define your own display events via 'display=someAction'
// you can even trigger the display event
$.event('display', 'help');
// place this in your Site or Theme eventHandler.cfc
public any function onDisplayRender($) {
var str = '';
switch(arguments.$.event('display')) {
case 'someAction' :
try {
savecontent variable='str' {
include '#arguments.$.siteConfig('themeAssetPath')#/display_objects/someAction.cfm';
} catch(any e) {
str = '<p>missing file</p>';
case 'help' :
str = '<h1>Hey, you asked for HELP!</h1>';
default :
str = '';
return str;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment