Layout.Zones (fake) accessed as a collection

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


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

Mar 9, 2011 at 12:25 AM

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

Mar 9, 2011 at 12:35 AM

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:)