-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Site Editor: "Site" menu item is active when editing a template #36821
Comments
Can you give me more details/specs when this menu item should be active and when not? |
Sure. Essentially, the "Site" menu item should only be active when:
In any other case the flow is template-centric (IE you are navigating through the Templates List), so it doesn't make sense to make the "Site" item active in those situations. I appreciate this is a little tricky to pin down since template + site editing exist in the same package, but the split in the UX makes this feel quite important. |
The problem is that we do a redirection upon clicking on the "Site" link. There's essentially no page which is called "Site", we immediately redirect the user to the template editor (which is the frontpage template by default). Should we:
Since we always do a full navigation, so we don't have the information of where we're coming from (whether we click on the "Site" link or not). Since this would likely be linked to the |
None of these options seem very good to me. It would be very strange imo to see "Site" as the active menu item when editing the Page template via the templates list (assuming a static home page it set in this example). Probably a dumb question but... logic exists somewhere to interpret the homepage settings in order to display the correct template / content when opening the site editor. Can we not use that same logic to determine when to set the active state on the Site menu item? |
I think we can check if |
Technically yes. I can create a proof of concept PR later this week. |
Isn't this the same as my first proposal? Or am I missing something 🤔 ?
|
I don't think it's quite the same, but perhaps I am misinterpreting.
In this case, if a static page were set as the front page, wouldn't this mean that the "Site" menu item would be active if you navigated to Templates > Page? That would be kind of confusing. |
@jameskoster, I tried to make this work, but it requires more changes than I expected. I'm going to remove this from the WP 5.9 board since it's not a block, and we're already in the RC phase. |
The "Site" menu item should not be active in this case.
The text was updated successfully, but these errors were encountered: