Luehrsen
Member
Hey,
I am trying to display the moderators of my forums at the moment. So far so straightforward, the data is all available in the
But not really. Only the specifically assigned moderators for that node show up in that relationship, where
So right now I'm trying to find a not too expensive way to query all parent IDs from a node and then query
So the question is: How would you query all parents of a specific node? Or is that even necessary? Is there a more straightforward way to the information I am trying to query?
I am trying to display the moderators of my forums at the moment. So far so straightforward, the data is all available in the
$node.Moderators relationship
. But not really. Only the specifically assigned moderators for that node show up in that relationship, where
content_id === node_id
. What does not show up are moderators, where permissions are inherited from a parent node. Category moderators for example.So right now I'm trying to find a not too expensive way to query all parent IDs from a node and then query
XF:ModeratorContent
with those. So the question is: How would you query all parents of a specific node? Or is that even necessary? Is there a more straightforward way to the information I am trying to query?