Skip to content

Instantly share code, notes, and snippets.

@stevewithington
Created December 11, 2013 22:23
Show Gist options
  • Save stevewithington/7919563 to your computer and use it in GitHub Desktop.
Save stevewithington/7919563 to your computer and use it in GitHub Desktop.
Mura CMS : How to add a custom link to Mura's Admin navigation.
<cfscript>
// Add this to an eventHandler.cfc
public any function onAdminHTMLFootRender($) {
var str = '';
// this will add a link to the bottom of the 'Modules' button in the back end admin area
savecontent variable='str' {
WriteOutput('<script>
jQuery(document).ready(function($){
$("##navSecondary").append(''<li><a href="/some-url/"><i class="icon-cog fa-cog"></i> Some URL</a></li>'');
});
</script>');
}
return str;
}
</cfscript>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment