Re: db records with cftags in them do not render -help

2003-07-16 Thread Jochem van Dieten
Mark W. Breneman wrote: I have a database table that holds the body contents of a page. (simple contentment management system) I just tried to put a cfinclude in a db record and found that CFMX does not evaluate the code. CFMX will just send the cfinclude tag to the browser, as unrendered

RE: db records with cftags in them do not render -help

2003-07-16 Thread Mark W. Breneman
There has got to be a better way of doing this. Isn't there? 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? Seems to kinda defeat

Re: db records with cftags in them do not render -help

2003-07-16 Thread Thomas Chiverton
On Wednesday 16 Jul 2003 17:05 pm, Mark W. Breneman wrote: cfset foo='Here is the current results:cfinclude template=test.cfm' Well, that won't work What's wrong with: cfset foo='Here is the current results:' cfset bar='test.cfm' cfoutput#foo#/cfoutput cfinclude template=#bar# -- Thomas

RE: db records with cftags in them do not render -help

2003-07-16 Thread s. isaac dealey
Hi Mark, No, CF doesn't have an equivalent of anything like javascript eval() which will allow you to execute statements embedded in a string. The closest CF comes (as of yet anyway) is evaluate() which will only return an expression (variable, or variable and function calls), but won't

Re: db records with cftags in them do not render -help

2003-07-16 Thread Jochem van Dieten
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

RE: db records with cftags in them do not render -help

2003-07-16 Thread webguy
Here is something I wrote, that changed xxx.cfm?id=$id$ in to xxx.cfm?id=123 if cfset id = 123 / You chould adapt it to change My age is #id# to My age is 123 cffunction name=EvaluateTokens cfargument name=URL type=String required=yes cfset var newQstring =/

RE: db records with cftags in them do not render -help

2003-07-16 Thread webguy
Of course, you probably can do that with a regex ReReplaceNoCase #(a-zA-Z0-9_)# with #Evaluate(/1)# but I didn't for other reasons WG -Original Message- From: webguy [mailto:[EMAIL PROTECTED] Sent: 16 July 2003 17:33 To: CF-Talk Subject: RE: db records with cftags in them do

RE: db records with cftags in them do not render -help

2003-07-16 Thread Mark W. Breneman
That makes me laugh or cry not sure what I will do. I have been working with CF for 5 years and I was aware that you could not put tags and functions into a var, or in this case a database, but, I assumed that there was a work around for that. I have a cf driven photo gallery module that I would