-
-
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
This file contains 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> | |
// 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