> > Has the variable lookup order for unscoped variables changed in > > 6.1? I say this because we use a custom tag that takes in a > > parameter of "query" -- this query is the result of a <cfdirectory > > action="list"> call and so has the fieldname of "attributes" in it. > > > > As we know, variables passed in to a custom tag are passed in the > > attributes scope -- the problem arises when attempting to loop > > through the query in the attributes scope: > > > > <cfloop query="attributes.query"> > > <cfoutput> > > #attributes.query.name# > > </cfoutput> > > </cfloop> > > > > ^^ This fails because it looks at the "attributes" in the query > > before the attributes scope (i.e. it looks for > > attributes.query.attributes.query.name which obviously doesn't > > exist). > > You need pound signs around the attributes.query. Or you can > just remove the quotes from around it. The way you have it > now, it's trying to loop over a query name > "attributes.query", the literal string as opposed to a > reference to the query you're trying to loop over.
No you don't -- the "query" attribute accepts the query _name_ (i.e. a literal string) not a reference to the actual query. Tim. ------------------------------------------------------- RAWNET LTD - Internet, New Media and ebusiness Gurus. Visit our new website at http://www.rawnet.com for more information about our company, or call us free anytime on 0800 294 24 24. ------------------------------------------------------- Tim Blair Web Application Engineer, Rawnet Limited Direct Phone : +44 (0) 1344 393 441 Switchboard : +44 (0) 1344 393 040 ------------------------------------------------------- This message may contain information which is legally privileged and/or confidential. If you are not the intended recipient, you are hereby notified that any unauthorised disclosure, copying, distribution or use of this information is strictly prohibited. Such notification notwithstanding, any comments, opinions, information or conclusions expressed in this message are those of the originator, not of rawnet limited, unless otherwise explicitly and independently indicated by an authorised representative of rawnet limited. ------------------------------------------------------- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4