Dude,

Just set the variable name into an application-level variable:

<cfset APPLICATION.Constants.DepartmentName = "epidemiology and
biostatistics" />

..... Then use ....

<cfset page_location = APPLICATION.Constants.DepartmentName>

.... Or something to that effect. No need to keep it in a file.

.......................
Ben Nadel 
www.bennadel.com
Certified Advanced ColdFusion Developer

Need Help?
www.bennadel.com/ask-ben/


-----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.


-- 

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

Reply via email to