Ignore:
Timestamp:
06/27/10 04:34:47 (23 months ago)
Author:
mattlevine
Message:
  1. Adding the ability to have theme local contentRenderer.cfc files. Changed it so that each request gets it's own instance of a theme contentRenderer.cfc and the Mura scope lookup first looks into the theme renderer and then the site render. This reverses the previous statement about the hierarchy.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/5.2/www/requirements/mura/event.cfc

    r2434 r2436  
    188188        <cfif not valueExists("contentRenderer")> 
    189189                <cfset setValue("contentRenderer",createObject("component","#application.settingsManager.getSite(getValue('siteid')).getAssetMap()#.includes.contentRenderer").init(this))> 
     190        </cfif> 
     191        <cfif not valueExists("themeRenderer") and fileExists(expandPath(getSite().getThemeIncludePath()) & "/contentRenderer.cfc")> 
     192                <cfset setValue("themeRenderer",createObject("component","#getSite().getThemeAssetMap()#.contentRenderer").init(event=this,$=getValue('MuraScope'),mura=getValue('MuraScope')))> 
    190193        </cfif>  
    191194        <cfif not valueExists("localHandler") and fileExists(expandPath("/#application.configBean.getWebRootMap()#") & "/#getValue('siteid')#/includes/eventHandler.cfc")> 
    192195                <cfset setValue("localHandler",createObject("component","#application.configBean.getWebRootMap()#.#getValue('siteid')#.includes.eventHandler").init())> 
    193196        </cfif> 
    194  
    195         <cfset setValue("themeRenderer",application.settingsManager.getSite(getValue("siteID")).getThemeRenderer())> 
    196197         
    197198        <cfreturn this> 
Note: See TracChangeset for help on using the changeset viewer.