When last I checked, there was no way to directly evaluate CF tags
from a DB.
I think people have been getting around this by creating (using
cffile) a temp.cfm file with DB field's contents, and then including
the created file.
Good luck.
Jamie
On Wed, 30 May 2001 13:11:05 -0400, in cf-talk you wrote:
>
>
>
>Hi,
>
>I have content store in the database with cfm tag in the content, when I
>retrieve the content from the database and display it on the cfm page, it treats
>the content as string, it does not process the cfoutput tag
>
>here is my code
>
><CFQUERY NAME="GetBody" DATASOURCE="text">
>SELECT tblDocument.Doc_Title, tblDocument.Doc_Body,
>tblMenu.menu_img, tblMenu.menu_url, tblDocument.Doc_ID
>FROM tblDocument, tblMenu
>WHERE tblDocument.Doc_Title = 'FAQ'
>ORDER BY tblDocument.Doc_ID
></CFQUERY>
>
> <cfoutput query="GetBody">
>
> #Doc_Body#<br>
> </cfoutput>
>
>
>
> the content as shown below: this is in the database
>
> <p class="big">Frequently asked questions:</p>
>
> <!-- CONTENT STARTS HERE
> ********************************************* -->
> <ol><cfloop query="Getfaq">
> <li> <A href="#faq_url#">#faq_title#</A> </li>
> </cfloop>
> </ol>
> <!-- CONTENT STOPS HERE
> ********************************************* -->
>
> <br><p class="bold">This is shortcut Admin function - <a
> href="faq_admin.cfm" target="_blank">List all of FAQ</a></p><br>
>
>
>
> Can I retrive the content with cfm tag in the content and displya it on the
> cfm page?
>
> thank you for any suggestion
>
> YC
>
>
>
>
>
>yep.. it's out, download the eval:
>
>http://www.macromedia.com/software/coldfusion/
>
>-erki
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists