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

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Archive

Stop collection of modular children including content from regular child pages

Started by Muut Archive 12 years ago · 7 replies · 308 views
12 years ago

If a page template is constructed to build it's content from modular components, it will also include any child pages within the folder structure that begin with a number e.g. "01.a-child-page".

Is there any way to "blacklist" these "regular" child pages from the collection "content.items: @self.modular" ?

12 years ago

Hmm, @self.modular should only include modular pages, ie _section folders. Regular folders without the _ naming convention should be available as children, but not be included in the building of the modular content.

Is this not the behavior your seeing? If not, I might need to check this out again as I've not looked at it in a little while.

12 years ago

I'm afraid not, all folders were included during the modular collection regardless of naming conventions.

12 years ago

Would you mind creating an issue here: https://github.com/getgrav/grav/issues

That way we can track and resolve this issue promptly. Also please provide any sample data or configuration that might help us recreate your issue quickly.

Thanks!

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1279 9 years ago
Archive · by Muut Archive, 9 years ago
2 886 9 years ago
Archive · by Muut Archive, 9 years ago
2 4015 9 years ago
Archive · by Muut Archive, 9 years ago
1 2891 9 years ago
Archive · by Muut Archive, 9 years ago
3 1075 9 years ago