AI OnAI Off
Hi
you need cast it to
see http://world.episerver.com/Blogs/Johan-Bjornfot/Dates1/2012/11/Shared-blocks--IContent/
something like this
((EPiServer.Core.ICategorizable)CurrentBlock).Groups
which returns a CategoryList object.
Thanks,
Puneet
Hi Arjan,
I don't think the CategoryList property type is supported on Blocks when using as an IList<>.
I created a sample project using Alloy with the categorylist added to the button block.
I then added a property to the start page with an IList<ButtonBlock>.
When I ran the code it threw up:
block type 'ButtonBlock' contains a Category property which is not supported for block list properties.
Hopefully that answers your question.
Thanks
Paul
This property on a BlockData type:
Causes errors when the block is used as an IList<MyBlock> property.
Is categorylist not supported?