Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Exclude modular from collection

Started by Nico Petri 9 years ago · 1 replies · 854 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 FrViPofm, 4 weeks ago
4 472 2 weeks ago
Themes & Styling · by johan thomas, 5 years ago
1 799 3 weeks ago
Themes & Styling · by stuart young, 2 months ago
3 657 2 months ago
Themes & Styling · by Sebadamus, 3 months ago
5 678 2 months ago
Themes & Styling · by martynfoster735, 3 months ago
1 640 3 months ago