This worked great.

The main reason is that I wanted it to work with something that already exists. 
 I am putting up a placeholder site and using components from another 
site/application.  All this will be redone in a few months and it will be it's 
own application then.

>
><cfsavecontent variable="myText">
>       <cfinclude...>
></cfsavecontent>
>
>Adrian
>
>-----Original Message-----
>From: Daniel Kessler [mailto:[EMAIL PROTECTED]
>Sent: 05 September 2006 15:43
>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.
>
>
>-- 
>
>Daniel Kessler

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:252063
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to