volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

Add new fields to LinkItem

Hi,

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?

 

Thanks

Jon

#85729
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.

#85730
May 02, 2014 19:58

Seem that your request very similar with this link!

// Ha Bui

#85746
May 04, 2014 16:31

Hi Henrik,

How would you then add this to a LinkItemCollection?

#85802
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.