Layout.Zones (fake) accessed as a collection

Topics: Troubleshooting, Writing modules, Writing themes
Developer
Mar 7, 2011 at 3:34 PM

Hi!

Is there a way to list the zones contained by Layout shape? As for now the fake Zones property (provided by ZoneHoldingBehavior) only allows adding new zones, but not listing the added ones:/ Could you point me how to achieve that (maybe by writing my own ClayBehavior implementation)? Unfortunately the Clay objects stuff (cool idea btw:) is totally undocumented...

Cheers, Piotr

Coordinator
Mar 8, 2011 at 11:25 PM

I think you should be able to just enumerate the Layout shape.

Developer
Mar 8, 2011 at 11:35 PM

Thanks, that will do. I tried to avoid that, having in mind that there can be shapes other than zones inside, but after all it's not really a problem - just added some filtering:)