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 ContentReferences to LinkItemCollection

Hi! 

How do you programatically add a ContentReference to a LinkItem (which is then added to a LinkItemCollection)?


It should be easy enough but hey It's my first day after vacation. ;)

Thanks!

#131491
Jul 28, 2015 16:37
Vote:

 Hi Jonas,

Use the UrlResolver to get the URL of the content reference and use that to create a new link item.

Regards,

Toni

#131494
Jul 28, 2015 17:32

Of course! Thanks Toni.

#131519
Jul 29, 2015 11:04
error This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* 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.