I’m having some trouble with a custom userMethod that retrieves all articles authored by this user and is supposed to show them in a pages section inside the users panel page.
The userMethod looks like this
class EditorUser extends User {
…
public function articles() {
return site()->pages()->find('blog')->children()->filterBy('intendedTemplate', 'article')->filter(function($article) {
return $article->author()->toUsers()->has($this);
});
}
…
}
This function is confirmed working in a template and returns all articles in which this user is set as author.
When trying to add this to a pages section inside the editor.yml blueprint, the pages are not showing up:
sections:
authored_articles:
type: pages
headline: Authored articles
parent: site
query: user.articles
status: all
create: false
help: "{{ user.articles }}"
I can confirm the context of “user” is working in this case, as the help text will actually show the queried pages:
They just don’t show up as actual pages inside the section. Changing the parent from site to page(‘blog') (which is where my articles live) also doesn’t help.
Is this a bug by any chance? I’m currently on v4.8). I feel like I’ve tried everything I can think of – any hints?

