Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Exclude modular from collection

Started by Nico Petri 9 years ago · 1 replies · 928 views
9 years ago

Hello there,

assume this page structure:

TXT
01. A
02. B
03. C
home

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

TXT
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

Suggested topics

Topic Participants Replies Views Activity
Themes & Styling · by MarkP, 7 days ago
3 122 3 days ago
Themes & Styling · by TomW, 6 days ago
0 64 6 days ago
Themes & Styling · by themetman, 2 weeks ago
1 159 2 weeks ago
Themes & Styling · by AH, 4 weeks ago
1 274 2 weeks ago
Themes & Styling · by Bruno, 4 years ago
6 1461 2 weeks ago