• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Reserved tag override

Guest
Jan 30, 2007 Jan 30, 2007

Copy link to clipboard

Copied

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
TOPICS
Advanced techniques

Views

208

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 30, 2007 Jan 30, 2007

Copy link to clipboard

Copied

LATEST
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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation