Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate child_type to New Page modal #1008

Closed
rhukster opened this issue Mar 5, 2017 · 1 comment
Closed

Integrate child_type to New Page modal #1008

rhukster opened this issue Mar 5, 2017 · 1 comment
Assignees
Labels

Comments

@rhukster
Copy link
Member

rhukster commented Mar 5, 2017

The child_type: frontmatter option is an admin-specific option that you can set via the Overrides, and the intention is to all you to set a default child type in the parent page. For example, in blog.md you could set this item and then when creating a new page under blog, it should automatically be set to item.

Currently this is being overridden by the new page modal. The new page modal is forcing a type to be set and is not taking into account the parent type. When the parent field is changed in this new page modal, the Page::childType() should be checked (or this should be checked while building the parent select), and then the value of the template should be changed according if a value is found for that parent.

@w00fz
Copy link
Member

w00fz commented Mar 6, 2017

This is now implemented in the feature and can be tested/merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants