<CFMODULE template="#someDynamicVar#"
attributecollection=#SomeStructOfAttributes#>
nb <CFMODULE template="foo"> is the same as <cf_foo>
attributecollection is what still appears to be an undocumented method of
passing a dynamic list of attributes into a tag. You just create a structure
containing keys pertaining to the attributes you want to pass into the tag
along with the associated values and then pass it to the tag as
attributecollection.
Steve
> -----Original Message-----
> From: JW [mailto:[EMAIL PROTECTED]]
> Sent: 18 April 2001 08:34
> To: CF-Talk
> Subject: Calling a custom tag dynamically
>
>
> Can anyone help? I'm looking to call any one of 30? or so custom
> tags from a
> database depending on what
> category the visitor selects from the first page.
>
> i.e. The visitor chooses the health care category and on the next
> page, the
> health care custom tag is called:
> <CF_healthCare Param1="param1" Param2="param2">. I'd rather leave it as a
> custom tag vs. a cfinclude.
>
> What is the best way to do this?
>
> I thought I would just use a CFCASE/CFSWITCH conditional, but
> this could get
> cumbersome, especially since there
> is additional information to load about each tag. Or would this
> actually be
> the best route to take.
>
> Thanks!
>
> Josh Winter
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists