Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more
4 votes
Accepted

How to programatically get all linked items for a given Sitecore item?

You can use from code: ItemLink[] itemLinks = Globals.LinkDatabase.GetReferrers(item); Or from Content Editor you can use Link ribbon button from Navigate tab:
Vlad Iobagiu's user avatar
  • 18.6k
4 votes
Accepted

How to prevent an item from being moved to another folder accidentally?

There is nothing like that out of the box in Sitecore. But you can easily create such a functionality on your own: Create a new template with one field only - checkbox "Cannot be moved" Add your ...
Marek Musielak's user avatar
  • 23.8k
3 votes

Smart publish wiping web database

Adding an answer, as this sounds very similar to a situation we faced, whereby a seemingly isolated publish (with related items) of an item led to all nodes under sitecore/content being deleted from ...
Dean OBrien's user avatar
  • 1,615
3 votes
Accepted

Sitecore Related Items to publish only Related Media items of an item

If you only want to publish related media items, there are a few things you'll need to do. Disclaimer It sounds like workflow would work best to satisfy your use-case and reduce the number of ...
jrap's user avatar
  • 4,951
2 votes

How to programatically get all linked items for a given Sitecore item?

You can use Link Database via GetReferrers method. e.g. var links = Globals.LinkDatabase.GetReferrers(item); if (links == null) return new Item[0]; var linkedItems = links.Select(i => i....
josedbaez's user avatar
  • 1,792
1 vote

Smart publish wiping web database

When related item is checked, in order to maintain the same content tree structure in the target database, Sitecore publishes every parent item of related item (till root /sitecore/Content) before ...
Nehemiah Jeyakumar's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible