Hello
I’m trying to display only articles that the logged-in user has written in the panel (i.e. is the value of the author field of said article).
The user should also be able to see all articles (also non self-written) next to that and all hooks in the config are already in place - so it’s not about restricting all access to other articles, that I have solved already. I am, however, stuck with trying to query only own articles, so the user is able to finding them faster and in a smaller box.
Here’s what I came up with by now, but I am completely clueless of how to continue
sections:
ownpages:
headline: Self-published articles
type: pages
template: article
query: page(“article”).children.filterBy(page.content.get(“author”), ???)
Thanks in advance for any help!