statamic / ideas

💡Discussions on ideas and feature requests for Statamic
https://statamic.dev
30 stars 1 forks source link

Parent dropdown should have a "Please select" as default #1014

Closed maxi032 closed 12 months ago

maxi032 commented 12 months ago

When I edit a page, I can see in the right sidebar that there is a parent dropdown and over there, are the other pages that could be selected as parents of the current page. When I first look at it, my impression is that the first value from the list (About us) is already selected, while in reality it is not like that. I think that this can be confusing for both developers and site owners. Don't you think that by default there should be a 'Please select'? or please chose?

pages-ui

jasonvarga commented 12 months ago

The parent field will be populated with the parent entry in the structure. It's empty by default if you are creating an entry at the top level. e.g. this blue button:

CleanShot 2023-07-10 at 11 11 15 CleanShot 2023-07-10 at 11 12 22

If you create the entry as a child of another page, it will fill it with that entry. e.g. this dropdown:

CleanShot 2023-07-10 at 11 11 58

CleanShot 2023-07-10 at 11 12 38