Ignore:
Timestamp:
06/28/10 17:10:50 (23 months ago)
Author:
mattlevine
Message:
  1. Adding the ability to have theme local contentRenderer.cfc files.
  2. Adding the mura scope as an init argument to contentRenderer.cfc
  3. Adding hasParent() to beans that have path attribute.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/requirements/mura/Handler/standardSetContentRendererHandler.cfc

    r2098 r2440  
    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  
     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.