>Working on a basic custom CMS system for a client and was wondering if >anyone has a bright idea on how to convert any cfvars in the content to
A lot of other people have come up with some "interesting" suggestions. How about just writing the file to disk and including it? Or better... don't put it into the DB in the first place... write it to file in the first instance and store the file path in the DB. The latter has the benefit of not forcing CF to recompile it on every useage of it (which is quite aq performance hit). As for my editorial input, I kind of aagree with the sentiment of being cautious when doing this. You *don't* want users to have to do this sort of thing. Firstly because of the worm-can-opening issue that others have touched on, and secondly because it's just manky to have users enter code to get results. And for them to do it correctly... no chance. However that's not to say you can't have macros fo some description: either the %user% suggesion that someone else had (which still gives ownership of the task to the user, and they'll stuff it up), or things that can be entered via a toolbar which insert a similar sort of thing, but remain under your control. Then these macros are swapped out @ some point for their actual values, or the variables that hold those values. Adam -- Adam Cameron Senior Application Developer Straker Interactive Ph: +64 9 3605034 Fx: +64 9 3605870 Email: [EMAIL PROTECTED] --- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/
