RSSAmplifier

myCFML Developer Blog - Articles · Oct 6, 2025

CustomTag CFScript "Nuance" - Use thisTag.executionMode to ensure logic only runs once

0
Sign in to vote or save

This page did not load. You can still read it on the original site — the toolbar below keeps your place in the directory.

When calling a ColdFusion custom tag using CFScript syntax (cf_customTagName()), it executes twice-once in start mode and once in end mode-unlike the single execution with tag-based syntax (&lt&#x3b;cf_customTagName&gt&#x3b;). This subtle behavior can cause unexpected results. To handle this, I use thisTag.executionMode to ensure logic only runs once. This nuance…

Read on mycfml.com

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.