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/Handler/standardSetContentRendererHandler.cfc

    r2434 r2436  
    2424<cffunction name="handle" output="false" returnType="any"> 
    2525        <cfargument name="event" required="true"> 
    26          
    27         <cfset event.setValue('contentRenderer',createObject("component","#event.getSite().getAssetMap()#.includes.contentRenderer").init(event))/> 
    28         <cfset event.setValue("themeRenderer",event.getSite().getThemeRenderer())> 
     26        <cfset var $=event.getValue("muraScope")> 
     27        <cfset event.setValue('contentRenderer',createObject("component","#event.getSite().getAssetMap()#.includes.contentRenderer").init(event=event,$=$,mura=$))/> 
     28        <cfif fileExists(expandPath(event.getSite().getThemeIncludePath()) & "/contentRenderer.cfc")> 
     29                <cfset event.setValue("themeRenderer",createObject("component","#event.getSite().getThemeAssetMap()#.contentRenderer").init(event=event,$=$,mura=$))> 
     30        </cfif> 
    2931</cffunction> 
    3032 
Note: See TracChangeset for help on using the changeset viewer.