Try our conversational search powered by Generative AI!

Extend LinkItemCollection


Have someone been able to extend a LinkItemCollection with custom properties such as an Image or an extra text field. This is something that we need in almost every project, and it feels strange that there is no "out of the box" solution for this and that it is so hard to find information about how to extend the LinkItemCollection. 

Aug 11, 2015 14:33

See answer to similar question here:

Aug 11, 2015 14:50

Thanks, I have seen that but dont like the idea to implement it as blocks. For webeditors, the user experience of creating blocks for that task will not be as smooth as it would have been to just use a simple linkItemCollection...

Aug 11, 2015 16:01

For images you can create a Contentarea that only allow images, and then have a displaytemplate for rendering. Editors can then drop images into the contentarea, and skip the step creating blocks

[AllowedTypes(new[] {typeof (ImageData)})]
public virtual ContentArea ImagesContentArea { get; set; }
Aug 12, 2015 7:33

May be you can get some ideas from this old thread where Anders extended the linkitemcollection property to use visitorgroups.

Aug 12, 2015 10:35

Thanks Tahir, I have seen that, it was easier before when the Admin interface wasnt built with Dojo. I dont think that will work in an Epi8 environment..

Aug 12, 2015 10:42

I agree that Dojo is close to witchcraft. ;) However, there is a lot you can do with custom properties without touching dojo. I recommend reading this excellent post by Allan Thræn:

Aug 12, 2015 10:54

LinkItemCollection is a very useful property type in EPiServer. However, quite often you need to transform, convert or in some ways prepare a LinkItemCollection before you can use it the way you want to.

Edited, Jan 10, 2019 12:33

Have you considered Property List. Gives the content authors more control in a single view than creating a block for each item. 

Jan 14, 2019 1:06
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.