Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mattlevine/d38acbb8aea701857f67a9061d2854ce to your computer and use it in GitHub Desktop.
Save mattlevine/d38acbb8aea701857f67a9061d2854ce to your computer and use it in GitHub Desktop.
Mura CMS: How to add custom scripts (JavaScript, etc.) to the administrative area
<cfscript>
// this example shows how to add custom scripts in the Admin area ...
// you could also use jQuery or whatever other method as well.
// Add this method to a Mura CMS SITE, THEME or PLUGIN eventHandler.cfc
public any function onAdminHTMLFootRender(m) {
var str = '';
savecontent variable='str' {
WriteOutput('
<script>
// Your script goes here.
// If using jQuery ...
jQuery(document).ready(function($){
// Your jQuery goes here
});
</script>
');
};
return str;
}
</cfscript>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment