Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Exclude modular from collection

Started by Nico Petri 9 years ago · 1 replies · 818 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, 12 hours ago
0 22 12 hours ago
Themes & Styling · by stuart young, 1 month ago
3 480 1 month ago
Themes & Styling · by Sebadamus, 2 months ago
5 481 2 months ago
Themes & Styling · by martynfoster735, 2 months ago
1 460 2 months ago
Themes & Styling · by Justin Young, 2 months ago
1 490 2 months ago