So there really shouldn't be any difference between these two sets of code:
-----------------------------------------------------------------------------------
Case 1:
---------
<cfset stObjectCopy = duplicate(stObject)>
<cfmodule
template="_contentobjectcopy_resolveownerids.cfm"
stObject="#stObjectCopy#"
ownerID="#attributes.copyObjectID#"
dataSource="#attributes.dataSource#"
>
-----------------------------------------------------------------------------------
Case 2:
----------
<cfset stObjectCopy = duplicate(stObject)>
<cfset temp = StructNew()>
<cfset temp.stObject=#stObjectCopy#>
<cfmodule
template="_contentobjectcopy_resolveownerids.cfm"
attributeCollection=#temp#
ownerID="#attributes.copyObjectID#"
dataSource="#attributes.dataSource#"
>
------------------------------------------------------------------------------------------
[EMAIL PROTECTED] writes:
>Again, in CF, you cannot do:
>
> <cf_foo
> <cfif somecondition>x=1</cfif>
> >
>
>So, attributeCollection allows you to dynamically pass crap to tags.
=====================
Marc Straka
Web Applications Engineer
Nolo
(510) 704-2226
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Signup for the Fusion Authority news alert and keep up with the latest news in
ColdFusion and related topics.
http://www.fusionauthority.com/signup.cfm
------------------------------------------------------------------------------
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/spectra_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.