This PR expands the tree config with an option to define, for each document type, which types of documents they can have as parents.
This feature has been implemented in three areas:
The generation of the parent field defenition. There, the references to also take this (optional) setting into account.
The new-page + button menu in the page tree layout.
If the above two fail, there is also a validator that fetches the type of the selected parent document and validates it against the allowed parent types, of those are available.
This PR expands the tree config with an option to define, for each document type, which types of documents they can have as parents.
This feature has been implemented in three areas: