Calling getBaseTagList() inside CFModule execution.

Description

Given a ColdFusion template, MyTag.cfm, if you invoke this template using the <CFModule> tag, calling getBaseTagList() from within the template will give you the following:

  • Adobe ColdFusion: cf_MyTag

  • Lucee CFML: cfmodule

Demonstrated in more detail here: https://www.bennadel.com/blog/4007-getbasetaglist-behavior-with-different-coldfusion-custom-tag-invocations-and-engines.htm

This is a very minor issue, specially since calling getBaseTagList() from with in CFModule appears to be quite limited in both ACF and Lucee.

Activity

Show:
Ben Nadel
April 21, 2021, 12:27 PM

I believe I stumbled upon a related issue with - possibly - the same root cause. It seems that in Lucee CFML, a template invoked with CFModule does not expose data via the getBaseTagData() function. I’ve written about it here:

https://www.bennadel.com/blog/4031-expected-and-unexpected-getbasetagdata-behavior-in-lucee-cfml-5-3-7-47.htm

That said, I wonder if the issue is simple that the tag shows up as CFModule, not as CF_XYZ. Maybe there is some check in the core code that only tries to access data for CF_ style expressions?

Pothys - MitrahSoft
March 16, 2021, 7:48 AM

I've checked this ticket and confirmed the issue happened on lucee latest version 5.3.8.159-SNAPSHOT also. Invoke the custom tag using cfmodule with getbasetaglist() returns CFMODULE instead of CF_customTagName. Seems ACF returns CF_customTagName. Invoke with the custom tag name and cfimort returns CF_customTagName in lucee too.

Your pinned fields
Click on the next to a field label to start pinning.

Assignee

Michael Offner

Reporter

Ben Nadel