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

linkcollection expired items

Can you select only items that are published and within the correct date period for publishing? Is there also a way of auto updating the name of the item if it is changed?

All the items I am linking to are EPiServer content items in the same site

LinkItemCollection links =
   ((LinkItemCollection)CurrentPage.Property["RelatedLinks"];
#37229
Feb 25, 2010 17:42

For presentation you can convert the LinkItems to PageData objects and Filter out the pages that are not published. See http://www.frederikvig.com/2009/06/episerver-extension-methods-part-2/ for more information.

#37233
Feb 25, 2010 18:31
error This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* 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.