Created
September 29, 2014 21:51
-
-
Save dgibson666/7ef1bd817e56b29983ee to your computer and use it in GitHub Desktop.
Mass-Update Mura Headers If Config Changed
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> | |
// 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