-
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
Add SlotFills to Document Sidebar #13357
Comments
I love this idea, and your PR solution seems elegant @ryanwelcher - thanks! I'm curious to hear design feedback on this proposal, I know when we worked on extensibility of the sidebar in the past it was important to consider overall user experience. Can you describe the use case that led you to this Issue/PR? Better understand use cases for this new slot will help support its adoption. |
Thanks for the feedback @adamsilverstein. The use-case was for a client site where we wanted to add a panel that was rather important to the post being edited. There are a large number of taxonomies associated with the post type and so any custom meta boxes would appear very far down the interface. Overall, this is a question that comes up a lot across the 10up engineering team. |
I have updated the PR to ensure that the items being added are placed in a |
Copying comment from @youknowriad left on the related PR (#13361 (review)):
I alos commented on the same PR (#13361 (comment)):
|
Is your feature request related to a problem? Please describe.
It is less than ideal that the only way to add a custom panel to the sidebar is by registering a meta box. This removes any control developers have over placement in any way with all of the meta boxes appearing at the bottom in the order they are registered.
Describe the solution you'd like
My proposal is to add more slotFills to the panel. Ideally ones between each of the existing panels but at the minimum, one that sits below the Status & Availability panel. This will not allow complete control over placement, but solves the issues of all items going to the bottom of the list.
Describe alternatives you've considered
As mentioned, the only other approach ( to my knowledge ) is by registering a meta box.
The text was updated successfully, but these errors were encountered: