Skip to main content
January 31, 2007
Question

Reserved tag override

  • January 31, 2007
  • 1 reply
  • 231 views
is it possible to override reserved coldfusion function tags?

It seems simple but the implications would be incredible.

Ie, I want to be able to do this

<cfdump var="#form#">

if form is defined, it will return form, if not, it will return NULL instead of erroring out.

is this possible?

In addition to this, how do i write my own cftags?

ie

if cfdump modification is not possible, i want to be able to type <cfPreDump var="#form#">

etc
This topic has been closed for replies.

1 reply

Inspiring
January 31, 2007
To write your own tags, write a .cfm file with the code you want to run. Let's call it abc.cfm. To call it, you go <cf_abc>

Many Cold Fusion reference books give you the details. Also, I just googled "coldfusion custom tags" and saw a few promising references.