You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow content to be created in a page bundle folder by specifying that the content is "sub-content". To support this, on the content type there should be two new properties introduced:
allowAsSubContent: Allows you to specify if you want to use the content type as a parent or create child-level content. This can be used in combination with the page pageBundle property. That way, you can create a hierarchy.
isSubContent: Specify this on the content-type if the content to be created with this is always going to be sub-content.
When the allowAsSubContent setting is enabled, the author should get the question to create it as sub-content or main content:
When yes is picked, or when the subContent property is set to true, the author will get a dialog to pick the folder from the content location:
Activity
#722 - sub-content support
estruyf commentedon Dec 7, 2023
First implementation is in place and it can be tested out with the latest beta version.
Example of a parent configuration which can be used for both creation as page bundle or sub-content:
{ "frontMatter.taxonomy.contentTypes": [ { "name": "parent", "pageBundle": true, "previewPath": null, "allowAsSubContent": true, "fields": [ ... ] } ] }Example of a child configuration:
{ "frontMatter.taxonomy.contentTypes": [ { "name": "child", "pageBundle": true, "previewPath": null, "isSubContent": true, "fields": [ ... ] } ] }