Try our conversational search powered by Generative AI!

Add new fields to LinkItem



We are using Episerver 7 and we are currently using the LinkItemCollection property and we are wanting to add a few more fields to the LinkItem control. Is this possible?

So for example: we have Link name/text, Link title, Open in:, Page, media, catalog content, E-mial, external link - can we add a few more such as SessionID (string), isParent (boolean), childID (string) etc?




May 02, 2014 17:51

If I am not wrong, you can create your own class that derives from LinkItem and add your properties to that. For example

public class ExtendedLinkItem : LinkItem
   public string SessionId {get;set;}

    I'm not able to test this, but I think we have done something like that before.

May 02, 2014 19:58

Seem that your request very similar with this link!

// Ha Bui

May 04, 2014 16:31

Hi Henrik,

How would you then add this to a LinkItemCollection?

May 06, 2014 9:35
* 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.