Last active
April 27, 2018 19:18
-
-
Save stevewithington/82028081148217ada55b to your computer and use it in GitHub Desktop.
Mura CMS : How to change a label/text in the Admin 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
<!--- Drop this in your Site or Theme Event Handler ---> | |
<cffunction name="onAdminHTMLFootRender"> | |
<cfargument name="event"> | |
<cfargument name="$"> | |
<cfset var scripts = ''> | |
<cfif StructKeyExists(url, 'muraAction') and url.muraAction eq 'cArch.edit'> | |
<cfsavecontent variable="scripts"> | |
<script> | |
jQuery(document).ready(function($){ | |
var newSummary = 'My Summary ' + '<i class="icon-question-sign"></i>'; | |
$('.summaryContainer label a').html(newSummary); | |
}); | |
</script> | |
</cfsavecontent> | |
</cfif> | |
<cfreturn scripts /> | |
</cffunction> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment