RE: [cfaussie] Passing attributescollection into cfimport tag libraries
You need to do it this way. utils:foo attributecollection=#someStruct# / From: cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] On Behalf Of Steve Onnis Sent: Tuesday, 22 March 2011 1:34 PM To: cfaussie@googlegroups.com Subject: [cfaussie] Passing attributescollection into cfimport tag libraries Is there a way to pass a collection into a cfimport tag library tag item? For example cfimport taglib=lib prefix=utils / utils:foo attributescollection=#someStruct# / I have tried this but it doesn't seem to work Steve -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.
Re: [cfaussie] Passing attributescollection into cfimport tag libraries
On 22/03/2011 13:33, Steve Onnis wrote: Is there a way to pass a collection into a cfimport tag library tag item? For example cfimport taglib=”lib” prefix=”utils” / utils:foo attributescollection=”#someStruct#” / I have tried this but it doesn’t seem to work its singular and without the quotes: attributecollection=#someStruct# In testing that I just found out that it is super fussy about quotes and hashes. attributecollection=#someStruct# fails and attributecollection=someStruct fails that is weird... -- Yours, Kym Kovan mbcomms.net.au -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.
RE: [cfaussie] Passing attributescollection into cfimport tag libraries
I actually use quotes and it works for me. -Original Message- From: cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] On Behalf Of Kym Kovan Sent: Tuesday, 22 March 2011 2:32 PM To: cfaussie@googlegroups.com Subject: Re: [cfaussie] Passing attributescollection into cfimport tag libraries On 22/03/2011 13:33, Steve Onnis wrote: Is there a way to pass a collection into a cfimport tag library tag item? For example cfimport taglib=lib prefix=utils / utils:foo attributescollection=#someStruct# / I have tried this but it doesn't seem to work its singular and without the quotes: attributecollection=#someStruct# In testing that I just found out that it is super fussy about quotes and hashes. attributecollection=#someStruct# fails and attributecollection=someStruct fails that is weird... -- Yours, Kym Kovan mbcomms.net.au -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.
RE: [cfaussie] Passing attributescollection into cfimport tag libraries
Thanks guys. Just needed to spell it right :) -Original Message- From: Glen Dunlop [mailto:glen.dun...@gmail.com] Sent: Tuesday, 22 March 2011 2:37 PM To: cfaussie@googlegroups.com Subject: RE: [cfaussie] Passing attributescollection into cfimport tag libraries I actually use quotes and it works for me. -Original Message- From: cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] On Behalf Of Kym Kovan Sent: Tuesday, 22 March 2011 2:32 PM To: cfaussie@googlegroups.com Subject: Re: [cfaussie] Passing attributescollection into cfimport tag libraries On 22/03/2011 13:33, Steve Onnis wrote: Is there a way to pass a collection into a cfimport tag library tag item? For example cfimport taglib=lib prefix=utils / utils:foo attributescollection=#someStruct# / I have tried this but it doesn't seem to work its singular and without the quotes: attributecollection=#someStruct# In testing that I just found out that it is super fussy about quotes and hashes. attributecollection=#someStruct# fails and attributecollection=someStruct fails that is weird... -- Yours, Kym Kovan mbcomms.net.au -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en. -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.
Re: [cfaussie] Passing attributescollection into cfimport tag libraries
On 22/03/2011 14:36, Glen Dunlop wrote: I actually use quotes and it works for me. which is what you would expect. I admit to being surprised when it errored but it did. I'm a bit old-fashionedy and like to do this when building structures as I find it more readable and maintainable: cfset theGalleries = application[Site_#thesubSiteID#].Galleries / so I expected the #blah# to work for the attributes but it definitely errored. and I just tried it again. Dependent on context maybe? One to watch out for... -- Yours, Kym Kovan mbcomms.net.au -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.