> Hello Everyone,

> I'm having a strange problem, I have a few documents that
> are stored in
> a SQL table and these docs have a little CF code in them
> that's used to
> build some dynamic links to other docs. For some reason
> when I
> <cfoutput> the content of the doc it is not processing the
> CF code
> that's in them. I thought I use to be able to do this. Is
> there
> something that I am missing?

> All I'm doing is a simple:

> <cfoutput>
> #mydoc#
> </cfoutput>

> Thanks for any help on this.


Hey Neal,

You need to store your content in a file and then include that file,
or use a UDF or a custom tag to evaluate variables in order to get
what I think you're trying to get...

If you've got a good unique id on the table, something like this might
work:

<cfoutput>
<cfsavecontent variable="mydoc2">
#chr(asc("<"))#cfoutput>
#mydoc#
#chr(asc("<"))#/cfoutput>
</cfsavecontent>
<cffile action="write"
  file="#expandpath('docs/' & mydocid & '.cfm')#"
  output="#mydoc#">
<cfinclude template="docs/#mydocid#.cfm">

Or look for a function or a custom tag like the old CF_StringEvaluate

Here's a recent one: http://www.cflib.org/udf.cfm?ID=173

Use the function if you just need variables in your string -- use the
include method if the variable mydoc contains coldfusion tags.


s. isaac dealey                972-490-6624

team macromedia volunteer      http://www.macromedia.com/go/team

chief architect, tapestry cms  http://products.turnkey.to

onTap is open source           http://www.turnkey.to/ontap


-----------------------------------------------
To post, send email to [EMAIL PROTECTED]
To unsubscribe: 
   Send UNSUBSCRIBE to [EMAIL PROTECTED]
To subscribe / unsubscribe: http://www.dfwcfug.org

Reply via email to