Skip to content
Grav 2.0 is officially stable. Read the announcement →
Themes & Styling

Exclude modular from collection

Started by Nico Petri 9 years ago · 1 replies · 789 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 stuart young, 2 weeks ago
3 251 2 weeks ago
Themes & Styling · by Sebadamus, 3 weeks ago
5 317 2 weeks ago
Themes & Styling · by martynfoster735, 4 weeks ago
1 310 4 weeks ago
Themes & Styling · by Justin Young, 1 month ago
1 348 1 month ago
Themes & Styling · by Slebeig, 2 months ago
4 474 2 months ago