Exclude modular from collection

Hello there,

assume this page structure:

01. A
02. B
03. C
home

Now i want to get all root pages to show their summary in the “home” modular:

page.collection({'items':'@root.childrens'})

but this collection includes the “home” page defined as @self.modular as well. I expected to get only A, B and C.

How can i retrieve a collection that only consist of non-modular pages?

Thanks in advance
npetri

Hey npetri,

try to test it with '@self.modular
https://learn.getgrav.org/content/collections#summary-of-collection-options