Current page data from reusable elements

I want to make comment block reusable element. So I need a current (parent) page data from inside of the reusable element to make a parent id’s for a comment.

Is there a way to reach it?

The only way I have in my head is to set global variables with current page data type and id

Firstly, confirm that you cannot access the RE / page data back and forth using the parent group of the RE from the page.

If you do confirm then you can achieve what you are looking for by using the bdk plug in for environmental variables. A small learning curve and then very powerful for your use case.

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.