kingsdigitallab / django-kdl-wagtail

A collection of Wagtail components used across several KDL projects
MIT License
4 stars 0 forks source link

Selective Page type availability #11

Closed geoffroy-noel-ddh closed 5 years ago

geoffroy-noel-ddh commented 5 years ago

I'd like to prevent some page types from being created by Wagtail editors on a project. That could be because I have another type of page in that project or simply because some core page types are not necessary (yet).

Could we add a mechanism to hide some pages types from Wagtail Create New Child Page based on custom and optional variable in settings.py?

jmiguelv commented 5 years ago

Yes, that is possible. I did it for egomedia by removing the parent page types and subpage types for the pages that should be hidden. It could be adapted to run from settings and/or a hook.