You could write a copy from the database to the server each time you
want to run it then cfinclude that copy. Or you could keep a set of
files on the server that is a duplicate of the database content. This
would be more efficient and easier to code.
Or another approach would be to use some kind of marker in your text
instead of the cfinclude. You could put for example:
Lorem ipsum dolor sit amet, consectetuer [[includes/myinclude.cfm]]
adipiscing elit, sed diam nonummy nibh euismod
then use regular expressions to find each one of these [[]] and
cfinclude the file. I am using a very similar technique on several
current projects. If you want more detail, ask. I can supply some code.
Regards,
Matthew Walker
/*
Easier, smarter forms:
http://www.matthewwalker.net.nz/inform2
*/
> -----Original Message-----
> From: Jillian Carroll [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, 25 July 2002 9:51 a.m.
> To: CF-Talk
> Subject: Processing CF Code from a DB
>
>
> I've got a problem here... I am storing content in a database
> that is being
> retrieved when a visitor hits the page. 90% of the code is
> static, it is
> just the body of the page coming from the DB.
>
> WELL... I have a user that wants to store some CF code (in
> the form of an
> include) in the DB. When he does this, it stores tickety
> boo... but it
> doesn't process.
>
> I assume it has to do with some order of processing done by
> CF... is there
> any way I can make this work?
>
> --
> Jillian
>
>
______________________________________________________________________
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists