erm, maybe i've not understood, but if you set a variable in your
include then it will exist after the include?
----------------------------
Testinclude.cfm
<cfoutput>#isdefined("page_location")#</cfoutput>
<cfinclude template="department_name.cfm">
<cfoutput>#isdefined("page_location")#</cfoutput>
---------------------------
----------------------------
departname_name.cfm
<cfset page_location = "epidemiology and biostatistics">
-----------------------------
Bobby Hartsfield wrote:
> <cfsavcontent var="myvar"><cfinclude template="mytemplate.cfm"
> /></cfsavecontent>
>
> <cfoutput>#myvar#</cfoutput>
>
> ..:.:.:.:.:.:.:.:.:.:.:.:.
> Bobby Hartsfield
> http://acoderslife.com
>
>
>
>
>
>
> -----Original Message-----
> From: Daniel Kessler [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 05, 2006 10:43 AM
> To: CF-Talk
> Subject: including into a cfset
>
> okay, I'm sure this is cause I'm just not thinking right this
> morning, but I've stared and stared and just don't see the answer.
>
> I have a bit of text that I want to represent in alot of places
> ("epidemiology and biostatistics") and wish to do:
> <cfinclude template='department_name.cfm'> which is just
> "epidemiology and biostatistics"
>
> I also have a variable this is used in alot of places that I also
> need to set to this text:
> <cfset page_location = "epidemiology and biostatistics">
>
> It would be nice if I could set page_location to the cfinclude, but
> not only does it not work, it looks silly:
> <cfset page_location = <cfinclude template='department_name.cfm'>>
>
> How would I do this ?
> page_location is used in other modules not owned by this, so I need
> to keep that variable and just set it to the included information.
>
> thanks.
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four
times a year.
http://www.fusionauthority.com/quarterly
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252051
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4