How to get the parent content while using Relationship field

12 views
Skip to first unread message

Visu

unread,
Apr 26, 2022, 6:48:21 AM4/26/22
to dotCMS User Group
We have two structure A and B where B is a child structure added as relationship field in A. 

While having the Identifier of a B structure content , how can or is there a way to get the Parent structure content A  in which B content is related?


While using legacy relationship , we can able to get the parent contents as well.

pullRelated( relationshipName, contentletIdentifier, condition, pullParents, limit, sort)

Thanks in advance for help/suggestions
Reply all
Reply to author
Forward
0 new messages