Mark W. Breneman wrote:
> There has got to be a better way of doing this.  Isn't there?

No.


> Jochem - Maybe I don't understand what you are saying. The problem I am
> having is that I can not "run" a cfinclude that is in a database record. Are
> you suggesting that I write 1000s of database records to files?

That appears to be your only option now.


> Seems to
> kinda defeat the reason we made it a contentment management system in the
> first place. Or am I not understanding you correctly. :-)

You are understanding me correctly.


> I think this is the equivalent of what I am trying to do:
> I have a var that holds text and 1 cf include.
> 
> <cfset foo='Here is the current results:<cfinclude template="test.cfm">' >
> 
> <cfoutput>#foo#</cfoutput>

That should be (pseudocode):
<cfset foo='Here is the current result:<cfinclude template="test.cfm">'>
<cffile action="write" file="foo.cfm" output="#foo#">
<cfinclude template="foo.cfm">
<cffile action="delete" file="foo.cfm">

I do have some doubt about the performance of that. It requires a lot of 
time for both I/O and CFML compilation for each request. You might be 
better of rethinking the mechanism.

Jochem



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

Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. 
http://www.fusionauthority.com/signup.cfm

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

Reply via email to