Skip to content

Instantly share code, notes, and snippets.

@stevewithington
Last active April 27, 2018 19:18
Show Gist options
  • Save stevewithington/82028081148217ada55b to your computer and use it in GitHub Desktop.
Save stevewithington/82028081148217ada55b to your computer and use it in GitHub Desktop.
Mura CMS : How to change a label/text in the Admin area.
<!--- 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