> So with Fusebox(I assume that's the context we are all in...) 
> why do they copy everything to attributes instead of "variables".
> Is it because the custom tag can't access "variables"? If so 
> this answers my question.

Custom tags can certainly access the Variables scope - although it's a
different Variables scope than that of the calling page. The Attributes
scope is used to pass, well, attributes, to a custom tag. If you pass data
to a custom tag, you typically reference that data using the Attributes
scope from within the custom tag:

<cf_foo name="Dave">

<!--- in foo.cfm --->
<cfset name = "Bob">
<cfoutput>#Attributes.name#</cfoutput> <!--- will output "Dave" --->

Now, there's nothing to stop you from copying variables from the Attributes
scope within the custom tag to the Variables scope within the same tag, but
there's no reason to do so, either.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
phone: 202-797-5496
fax: 202-797-5444

______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to