I get round this issue in my CMS by having a "fileName" field.  For
security reasons, this field only appears in forms offered to
validated users who have permission to upload such files.  (not
many!).    They can upload the file, using the uploader on the
'content' page,   then instead of putting content in the CKEditor,
they put the name of the CFM file in that 'filename' field.

When I produce the page,   the logic is like this:

<cfif  len(content.fileName) GT '0' ><cfinclude
template="/includes/clientfiles/#content.filename#"/><cfelse> ,   yada
yada yada

This allows me to have some pages produced programmatically,  while
the majority are simple reads from the database and then rendered.

Cheers
Mike Kear
Windsor, NSW, Australia
Adobe Certified Advanced ColdFusion Developer
AFP Webworks
http://afpwebworks.com
ColdFusion 9 Enterprise, PHP, ASP, ASP.NET hosting from AUD$15/month


On Thu, Oct 21, 2010 at 1:22 PM, Torrent Girl <moniqueb...@gmail.com> wrote:
>
> I spoke too soon....it's not working
>
>
>>hmmm...maybe I'll add the function before i enter the text into the DB....
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338416
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to