Skip to content

Instantly share code, notes, and snippets.

@dgibson666
Created September 29, 2014 21:51
Show Gist options
  • Save dgibson666/7ef1bd817e56b29983ee to your computer and use it in GitHub Desktop.
Save dgibson666/7ef1bd817e56b29983ee to your computer and use it in GitHub Desktop.
Mass-Update Mura Headers If Config Changed
<cfscript>
// place this in your Site or Theme eventHandler.cfc, then reload your application!
public any function onApplicationLoad(mo) {
arguments.$.getBean('contentUtility').findAndReplace(
find='h2'
replace='h3'
siteid=arguments.$.event('siteid')
);
}
</cfscript>
/*
This may be needed if you change your headers configuration after loading and formatting a bunch of content.
Located in Main contentrenderer.cfc.
<!---<cfset this.headline="h2"/>--->
<!---<cfset this.subHead1="h3"/>--->
<!---<cfset this.subHead2="h4"/>--->
<!---<cfset this.subHead3="h5"/>--->
<!---<cfset this.subHead4="h6"/>--->
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment