I'm trying to use GetRelationsForItem to prevent the user from deleting a linked node
Hi All,
Plz Help,
I'm using Umbraco 8.7.0
And I'm trying to prevent the user from deleting a linked node
NexuEntityRelationService tt = new NexuEntityRelationService(_relations, _localize, _contentService, _contenttype, _media);
// var t = tt.GetRelationsForItem(content.Entity.GetUdi());
var t = tt.CheckLinksInDescendants(content.Entity.GetUdi());
IList<NexuRelationDisplayModel> test = tt.GetRelationsForItem(Udi.Parse(content.Entity.GetUdi().ToString()));
GetRelationsForItem is triggering null reference error
And CheckLinksInDescendants is Always returning false
I'm trying to use GetRelationsForItem to prevent the user from deleting a linked node
Hi All,
Plz Help, I'm using Umbraco 8.7.0 And I'm trying to prevent the user from deleting a linked node
GetRelationsForItem is triggering null reference error And CheckLinksInDescendants is Always returning false
can you guide me to the right track?
Rihab.
Hi Rihab,
Nexu will show the users a message in the delete dialog ?
But you want to prevent deletion entirely ?
Dave
yes, I need to prevent all deletion on a linked node
is working on a reply...