This works? I must say I haven't tried it...wouldnt it pose a security risk?
I mean it would allow any Joe Sixpack who can update content to add CF tags
to a DB which will then be parsed and executed?

Is this an MX only oddity?

-----Original Message-----
From: Dave Phipps [mailto:[EMAIL PROTECTED] 
Sent: 29 July 2005 12:19
To: CF-Talk
Subject: Re: Executing CF function from databased content?

I have tried this in the past and I managed to get the following to work:

In your db content you can place
<cfoutput>#LSDateFormat(Now(),"dd/mm/yy)#</cfoutput>

This will output the date when you output the result of your cfquery.

Not sure if this will work for a UDF though?  The key was placing
<cfoutput></cfoutput> around the variable.

HTH

Dave

> -----Original Message-----
> From: Pete Ruckelshaus [mailto:[EMAIL PROTECTED] 
> Sent: 29 July 2005 03:51
> To: CF-Talk
> Subject: Executing CF function from databased content?
> 
> Is it possible to execute CF code from within databased content? I have a 
> UDF that does a redirect for certain pages in a content-managed site that
I 
> am building and there are "virtual" pages that need to redirect to 
> hard-coded pages. So, I dump this UDF call into content management -- 
> #redirect('/album/')# which should redirect to that path. In the content 
> management display piece, I have tried using #evaluate(page_content)# but 
> that doesn't work. Is it possible to do this?
>  I'm using CFMX7.
>  Thanks
>  Pete



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:213260
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to