Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Is there a way to find all nodes referencing specific node via Content Picker?
Say, I want to find all pages which refer (via Content Picker) to banner with id 12345.
e.g. uHelper.GetReferencedNodes(12345);
Hi Ivan
Did you look at Nexu package? - https://our.umbraco.org/projects/backoffice-extensions/nexu/
I can track references to the node via content picker and other pickers. Or do you need to get all links via code?
Thanks,
Alex
Thanks, Alex!
The Nexu package is great. However we need to get all references from within the code.
You can have a look at source code of Nexu - https://github.com/dawoe/umbraco-nexu/tree/develop/Source
Did you find a way to find all nodes referencing specific node via Content Picker? We need to do similar - find all media that were removed but are selected in nodes, is it working?
Hi Alex,
You can find all media that are used in a content node like this when using nexu :
var relatedPages = ApplicationContext.Current.Services.RelationService.GetByParentId(contentPageId) .Where(x => x.RelationType.Alias == Our.Umbraco.Nexu.Core.Constants.RelationTypes.DocumentToMediaAlias).ToList();
Than you can check if the page is in the recycle bin.
Dave
Hi Alex.
Nope.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Content Picker: Find all nodes referencing other node.
Is there a way to find all nodes referencing specific node via Content Picker?
Say, I want to find all pages which refer (via Content Picker) to banner with id 12345.
e.g. uHelper.GetReferencedNodes(12345);
Hi Ivan
Did you look at Nexu package? - https://our.umbraco.org/projects/backoffice-extensions/nexu/
I can track references to the node via content picker and other pickers. Or do you need to get all links via code?
Thanks,
Alex
Thanks, Alex!
The Nexu package is great. However we need to get all references from within the code.
You can have a look at source code of Nexu - https://github.com/dawoe/umbraco-nexu/tree/develop/Source
Hi Ivan
Did you find a way to find all nodes referencing specific node via Content Picker? We need to do similar - find all media that were removed but are selected in nodes, is it working?
Alex
Hi Alex,
You can find all media that are used in a content node like this when using nexu :
Than you can check if the page is in the recycle bin.
Dave
Hi Alex.
Nope.
is working on a reply...