Question

I have a block which is going to display a LinkItemCollection. Each link has an image which belongs to it. Since clickable image isn't supported, I was wondering if anyone had a solution of how to couple the images and links together.

Maybe you could extend LinkItem and add an Url property to an image, any ideas?

This is EPiServer CMS 7 (MVC).

Was it helpful?

Solution

I'd go with a ContentArea property instead of LinkItemCollection, and create a block type with properties for specifying link, image etc. Then add one block per link to the content area.

That also makes it a lot easier to add/remove/rearrange links with drag and drop.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top