Pages field related query

Hi,

I have a page type called “alert”. alerts show up on related pages. alert has a pages field called “related” where the editor can select the related pages.

i have seperate user roles and a certain role should only be able to see, edit and set alerts for a certain subset of pages.

User A should only be able to create, edit and see alerts that have page A or a child of A (or grandChild of A) within their related field.

I would like to keep alerts as a global entity and not create seperate kinds of alerts.
I have already implemented role specific blueprints as a plugin.

I am still pretty new to Kirby so i was wondering what would be a Kirby Best Practise to tackle this concept.

Thanks for any help, hints or code snippets.

This looks related:

It probably doesn’t address 100% of your use case, I think you would also need to write some custom query expressions in some of your blueprints to limit the visibility of specific pages in different parts of the Panel.

1 Like