Skip navigation

In-page Dynamic Processing

Process CFML

AssetNow NX allows you to enable processing of ColdFusion code inside content. This allows you to create dynamic content directly within a AssetNow NX page. You can restrict this option to certain users and also restrict the ColdFusion tags they may use.

In this ColdFusion example we have set a variable named greeting:

<cfset greeting = "Hello World"/>

We then output the value of greeting:

<cfoutput>#greeting#</cfoutput>

Here is the result of this code processed in the page:

Hello World!

Of course you can also publish markup and not have it processed. For example if you are authoring a programmers site and wish to display code as text then you simply enter it directly in the editor. It will not be processed and is displayed as text. That is how we have published the example code above.

Here is an example of a restricted tag. We have disallowed use of the <cffile> tag. If it is used it will not be processed and is replaced with marker text to advise the author.

Location

http://www.assetnow.com/index.cfm/1,10,83,0,html