MozillaFoundation / foundation.mozilla.org

Mozilla Foundation website
https://foundation.mozilla.org
Mozilla Public License 2.0
387 stars 153 forks source link

Limit the child pages that can be created #10254

Open tbrlpld opened 1 year ago

tbrlpld commented 1 year ago

Currently, when a page does not limit which pages can be used as its child pages editors are presented with the option to practically add any page type.

This is overwhelming to the editor and makes it hard to find the proper page type to use.

Additionally, it allows structures that are non-sensical. E.g. creating a homepage instance somewhere in the page tree.

We should review our page types and make sure the structures that can be created make sense.

There are two ways the page structure can be limited.

  1. A page type can define its allowed child page types
  2. A page type can define its allowed parent page types

I think it might make sense to start with limiting the parent page types first because this will remove the page from being added as a child to any other child. Child restrictions only limit which pages can be added to that specific page type.

E.g. adding the restriction to the HomePage to be only created at the root page removes the need to exclude the HomePage from other page type's child lists.

┆Issue is synchronized with this Jira Task

tbrlpld commented 1 year ago

@kristinashu Also interested if there any thoughts on this from design perspective as you have more insights into stakeholder requirements and content strategy.

kristinashu commented 1 year ago

Yes, simplifying would be amazing and I had made a spreadsheet about this - third tab called "Page types" .

I first row (heading with the black background) are the parent page types and below that are all the possible child page types. I started to put checkmarks to show the current state and I've made some comments about which ones I think should be removed. I would love input on it!

image