Gary Menzel wrote:

Hi Brendan/Paul,


I have just been playing with the Forum object and retro-fitting it into a
previous incarnation of the FarCry template.

There appear to be assumptions made about the naming of template headers in
the Forum code (dmHeader/dmFooter).  My templates don't use this naming
convention.


I have moved the two display templates to a dmForum webskin directory. Use this code in the display function of dmForum.cfc

<cffunction name="display" access="public" output="true">
<cfargument name="objectid" required="yes" type="UUID">
<cfif isdefined("url.mode") and url.mode eq "category">
<cfset getDisplay(objectid=arguments.objectid,template="displayCategory")>
<cfelse>
<cfset getDisplay(objectid=arguments.objectid,template="display")>
</cfif>
</cffunction>


and move the farcry_core/packages/types/_dmForum/display.cfm and displayCategory.cfm to <appName>/webskin/dmForum/

-Brendan
http://farcry.daemon.com.au

---
You are currently subscribed to farcry-dev as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004

Reply via email to