>
>
>Yes, not quite as easy as in php though. The logic I've used before goes
>something like:
>
><cfparam name="request.included" default="false" type="boolean">
>
><cfif not request.included>
>       <cfinclude template="mytemplate.cfm">
>       <cfset request.included = true>
></cfif>
>  
>
We used a customtag that is called and that in turn includes the 
requested include.

so like:

<cf_include_once template="template.cfm" />

and the contents of the cf_include_once customtag:

<cfif ThisTag.executeMode is "start">
    <cfif not isDefined(request.included)>
        <cfset structnew(included)>
        <cfset request.included = included>
    </cfif>

    <cfif not StructKeyExists(#attribute.template#)>
        <cfinclude template="#attribute.template#" />
    </cfif>
</cfif>

Thsi isn't copy-pasted, but typed right here from what I remember 
(currently ill at home) so it may need some tweaking.

Jesse

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to