Created
December 11, 2013 22:23
-
-
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.
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> | |
// 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