I'm wondering how I can retrieve references to a content node in Umbraco 9. The references are tracked, i can see that on the info-tab but how can these references be retrieved in code?
var nodeRelations = _relationService.GetByChildId(content.Id);//this node is the "child" in the relation
var relevantRelations = nodeRelations.Where(x => x.RelationTypeId == 5); //"normal related document"
Retrieve references to a content node
Hi all.
I'm wondering how I can retrieve references to a content node in Umbraco 9. The references are tracked, i can see that on the info-tab but how can these references be retrieved in code?
Cheers, Niels
Thanks, I used that.
is working on a reply...