Last active
April 27, 2018 19:07
-
-
Save stevewithington/62c11993a4c81b735f4534e852bbc9ad 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 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> | |
// 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