I’m sure I tried it without the pages, tried again: no joy, I only get pages from the projects. Hmm, when I think of it, and I should do that more often, it makes sense. I’m using the services as a data container only, so I didn’t add a template, added one and problem solved. Thanks for making me think
If you don’t need the template, then use intendedTemplate instead of template, that works without the template existing. Still, this pages bit is superfluous.
Ok, thanks will do.
Just one more thing how do I loop through the listed and drafts items in my template? $articles = $page->articles()->toPages(); give me the listed items.
Because they are not displayed as such. It’s just nice to combine them with other ‘real’ pages in the panel so we can drag and drop them in the order we like.