Propose new features
Designing Decidim together
Ability to remove/hide menu items
Update
@Platoniq implemented this on this module: https://github.com/Platoniq/decidim-module-decidim_awesome/#11-change-the-main-menu-of-decidim-entirely
------
@verarojman asked on gitter whether it was possible to somehow remove menu items through the decidim.rb initializer. I investigated a bit and it looks like the menu subsystem is append-only at this point.
It is possible to hide them using CSS/JS hacks, but that's obviously brittle and can have unexpected consequences.
Being able to edit the menu through the initializer (or through the admin dashboard) seems like a sensible expectation from Decidim instance maintainers, to me. And from what I could tell, it's viable to extend the menu subsystem to allow for this within its current architecture.
Not sure how high a priority this would be, of course. Nor how common this demand is.
What do you all think?
List of Endorsements
Report inappropriate content
Is this content inappropriate?
Comment details
You are seeing a single comment
View all comments
Conversation with Virgile Deville
@oliverbarnes We've made a module to add items : https://github.com/OpenSourcePolitics/decidim-module-navbar_links
As Ivan said you can hide menus with css customization.
Hope it helps.
Hi @virgile_deville, thanks - I did check this module out, somebody mentioned it on gitter too as a possible starting point.
About css/js customizations, I suggested that to Vera on gitter to quickly solve her problem. But long-term I think that's a brittle solution. They can easily break with updates, and can break other things on the interface unexpectedly. This is the main thing that drove me to open this thread to discuss possibly allowing for this to be customizable instead.
Hi @oliverbarnes , you might want to check this out:
https://github.com/Platoniq/decidim-module-decidim_awesome/#11-change-the-main-menu-of-decidim-entirely
Awesome (pun intended)! I'm adding it to the update on the proposal description, and going to close the proposal as well.
Loading comments ...