There is a plugin outlet to add items to the sidebar footer. It would be great to have an outlet to add items to the top as well.
For example this is a common sidebar layout that could work well for some Discourse communities (showing a brand logo and background element right on the sidebar, as well as a search bar):
We don’t plan on adding additional outlets to the sidebar at the moment. We’re likely going to remove the footer outlet at some point as well.
The new sidebar nav was intentionally designed to be customized via the API so in the event that it changes in the future, we can more easily migrate to a new structure. The idea being that the navigation area isn’t something we want any random content injected into.
This isn’t to say the sidebar shouldn’t be customizable, but we want to expose more specific APIs rather than rely on open-ended plugin outlets.
It would be useful to have one as you could use it when using Dropdown mode for the menu at which point the Sidebar div is pointless, so let us use it for something!
Moreover, it would be nice to have two, one on each side, each with its own!
Last week we discussed this some more internally and ended up where the consensus was that there’s no way around adding outlets at the moment — so now we have:
before-sidebar-section and after-sidebar-sections available as outlets
If the need is to add a custom section of links that mirrors the layout of existing link sections, the recommendation is to still use the API so we can maintain compatibility if the sidebar changes in the future. If this part of Discourse were to change again (no current plans) we can’t promise that the plugin outlets would neatly be migrated over like we can with an API.