In ColdFusion is it possible to pass an array to a custom tag?

171 Views Asked by At

I want to pass an array to a custom tag. Is this possible? I have an arry arrayProd. In my cfm I am calling the custom tag :

<cf_cu_show_productcategories thename="#thename#" thenameprod="#thenameprod#" arrayProd="#arrayProd#">

The custom tag :

<cfparam name="attributes.thename" default="">
<cfparam name="attributes.thenameprod" default="">
<cfparam name="attributes.arrayProd" type="array" default="">

Using this arrayProd in de custom tag results in 'Variable ARRAYPROD is undefined'.

1

There are 1 best solutions below

2
Bernhard Döbler On

Default attribute should be default="#[]#"