CFCONTENT ON CF5

www.

How do I use CFContent on a ColdFusion 5 Server?

The following article explains how to use CFContent on our Coldfusion 5 servers. CFContent runs normally on CFMX servers without any workaround. You will need to use the code sample below only if you are running on a CF 5.0 server.
A normal cfcontent tag that looks like this:
<cfcontent file="FILENAME" type="TYPE"> <!--- Where File is optional --->

Would be replaced with this:

<cfset file = "FILENAME"> <!--- This is an optional variable --->
<cfset type="ApplicationType"> <!---This is required --->
<cfinclude template="\cfcontent\cfcontent.cfm">

Comments are closed.

By using this website you consent to the use of cookies in accordance with our Privacy Notice. You may opt-out at any time in the Cookies section of the Privacy Notice page.