I would just go back to bed.  :)

Just kidding...
I'm not quite sure why you don't just set that string in a variable and
simply output the variable as opposed to including an entire file just
for three words.

The proper syntax for what you had would be:
<cfset page_location = "<cfinclude template=""department_name.cfm"">">

But I really doubt that is what you want, because you can't execute a
variable which contains a string just which just so happens to represent
CFML.  
<cfset page_location = "my_path/department_name.cfm">
Maybe you want <cfinclude template="#page_location#">

Anyway, it is hard to tell where you are going with this.  Get a cup of
coffee or something and then look at it again.  :)

~Brad

-----Original Message-----
From: Daniel Kessler [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 05, 2006 9: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.


-- 

Daniel Kessler

College of Health and Human Performance
University of Maryland
Suite 2387 Valley Drive
College Park, MD  20742-2611
Phone: 301-405-2545
http://hhp.umd.edu






~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:252039
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