Virtual Happy Hour this month, Jun 28, we'll be getting a sneak preview at our soon to launch SaaS CMS!

Try our conversational search powered by Generative AI!

LinkItemCollection personalization feature



I am using the LinkItemCollection property for my websites menu links, but some of these menu links I would like to hide from the users based on user roles. Unfortunately, it seems that the LinkItemCollection property does not support personalization(like ContentArea does) and I can't just change it to ContentArea property, because there is a lot of content already using this LinkItemCollection.

Is there a way to add personalization feature to this property? Or some kind of workaround?


Apr 16, 2018 10:29

You could make the content you add to the LinkItemCollection accessible only to users with specific roles?

Edited, Apr 16, 2018 10:54

You can loop through the linkitems in the collection I guess, get the contentdata with 'IContent item = linkItem.GetContentData<IContent>();' and check the access?

Apr 16, 2018 12:21

Old blog post but worth reading and exploring.

If nothing works then try converting the property to contentarea & write a small rountine to get all the content from linkitemcollection and put it into new contentarea. It should be pretty simple.

Apr 16, 2018 12:45

Hi. In the link you send, he seems to be using a old episerver version, do you know if his example still works for newer versions?

Apr 16, 2018 12:57
Apr 16, 2018 12:59


honestly I don't think you should go that path as approach Anders used is out-dated already to put in that way. I would recommend to to convert to content area (if possible) and personalization there is out-of-the-box.

Apr 16, 2018 22:14

Hi. I think you are right, I guess I will have to either convert it to a ContentArea or wait on Episever to add this feature to the LinkItemCollection :)

Apr 18, 2018 8:36
* 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.