I've got an idea, but be forewarned, its pretty kooky.

You store your CF pages in a database.
You do a CFQUERY to obtain the db contents.
You do a CFFILE=Write, and use a unique name for the filename, using a UUID.
You'll need to keep track of the UUID.
You then could refer to this file with a CFINCLUDE TEMPLATE=(the UUID).

> -----Original Message-----
> From: Tim Lieberman [SMTP:[EMAIL PROTECTED]]
> Sent: Saturday, April 21, 2001 4:40 PM
> To:   Fusebox
> Subject:      Storing CF Code in the database
> 
> I'm working on a pretty nice system for content management here.
> 
> The problem I'm having, is I would like to be able to store CF templates
> in my database, and have CF parse them.  The reason for this is that I've
> written custom tag interfaces to various "elements" that site admins can
> use to do things like insert images in an article without resorting to
> HTML.
> 
> Is there a way to do this, besides writing a temp file to disk and then
> including it via CFINCLUDE?
> 
> It would be really nice to have a ParseCFML function which would take a
> string
> and treat it like input. Leave non-CFML content alone, and execute any CF
> content.
> 
> Can this be done?
> 
> TIA
> 
> -Tim
> 
> 
> Archives: http://www.mail-archive.com/[email protected]/
> Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

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

Reply via email to