Orit
Active member
Hello
I'm listening to entity_post_save
event hint: XF\Entity\Node
I want to run a code if the node is created/edited in a specific category.
When the node is created directly in the category (1st depth) the code runs fine.
I'm a bit lost at triggering the code when the node is created in child-nodes of the same category.
I thought of using the 'breadcrumb_data' column, but it seems to be generated later, and the data in there is the old data from pre_save.
Am I wrong?
Is there a way to trigger the code in child-nodes too?
Thanks!!
I'm listening to entity_post_save
event hint: XF\Entity\Node
I want to run a code if the node is created/edited in a specific category.
When the node is created directly in the category (1st depth) the code runs fine.
I'm a bit lost at triggering the code when the node is created in child-nodes of the same category.
I thought of using the 'breadcrumb_data' column, but it seems to be generated later, and the data in there is the old data from pre_save.
Am I wrong?
Is there a way to trigger the code in child-nodes too?
Thanks!!