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

Limit page children creation and possible templates

Started by Muut Archive 10 years ago · 0 replies · 307 views
10 years ago

One of the biggest pains when working on bigger site with Grav for me is not be able (atleast from what i know) to prohibit some page template to have children. This gets very bad especialy when you have 200 blogposts and in admin each of these is showing up as potential parent when you are creating new page.

Is there way to disable templates to have children?

Also what would be realy useful is to be able to specify possible templates to be used when you have selected the parent. For example: i have template blog that is on route /blog and when i want to create new blogpost i select the /blog - this blog template could define what possible templates i have for blog children so i wouldnt have to pick between all templates on the page.

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