Vés al contingut principal

Configuració de les galetes

Fem servir galetes per assegurar les funcionalitats bàsiques del lloc web i per a millorar la teva experiència en línia. Pots configurar i acceptar l'ús de galetes, i modificar les teves opcions de consentiment en qualsevol moment.

Essencials

Preferències

Analítiques i estadístiques

Màrqueting

Canvis a "Ability to remove/hide menu items"

Avatar: Oliver Azevedo Barnes
Oliver Azevedo Barnes

Títol

  • -{"es"=>"Ability to remove/hide menu items"}
  • +{"en"=>"Ability to remove/hide menu items"}

Cos

  • -["

    @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?

    Update

    @microstudi suggests this should be done in a third-party module, and said his team might work on it at some point.

    "]
  • +["

    @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?

    Update

    @Platoniq implemented this on this module: https://github.com/Platoniq/decidim-module-decidim_awesome/gid://metadecidim/Decidim::Hashtag/285/11-change-the-main-menu-of-decidim-entirely

    "]

Confirmar

Si us plau, inicia la sessió

La contrasenya és massa curta.

Compartir