This site uses cookies. By continuing to browse the site, you agree to our use of cookies. Find out more about cookies.
Skip to main content
Metadecidim's official logo
  • English Triar la llengua Elegir el idioma Choose language
    • Català
    • Castellano
Sign Up Sign In
  • Home
  • Processes
  • Assemblies
  • Initiatives
  • Consultations
  • Conferences
  • Help

Propose new functionalities for Decidim software

#DecidimRoadmap Designing Decidim together

Phase 1 of 1
Open 2019-01-01 - 2030-12-31
Process phases Submit a proposal
  • The process
  • Debates
  • Propose new features
  • News
chevron-left Back to list

Ability to remove/hide menu items

Avatar: Oliver Azevedo Barnes Oliver Azevedo Barnes
26/10/2020 13:09  
Withdrawn

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?

  • Filter results for category: Installation and configuration Installation and configuration

List of Endorsements

Avatar: John Willson John Willson
Avatar: Antti Hukkanen Antti Hukkanen
Reference: MDC-PROP-2020-10-15774
Version number 5 (of 5) see other versions
Check fingerprint

Fingerprint

The piece of text below is a shortened, hashed representation of this content. It's useful to ensure the content hasn't been tampered with, as a single modification would result in a totally different value.

Value: a04f983acbb5a6d70c64bf745450a6fcaf4a7dfe1c5a787be8acd1e4b25a3b87

Source: {"body":{"en":"<p><strong>Update</strong></p><p>@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</p><p>------</p><p><a href=\"https://meta.decidim.org/profiles/verarojman\" target=\"_blank\">@verarojman</a> 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.</p><p>It is possible to hide them using CSS/JS hacks, but that's obviously brittle and can have unexpected consequences.</p><p>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.</p><p>Not sure how high a priority this would be, of course. Nor how common this demand is.</p><p>What do you all think?</p>"},"title":{"en":"Ability to remove/hide menu items"}}

This fingerprint is calculated using a SHA256 hashing algorithm. In order to replicate it yourself, you can use an MD5 calculator online and copy-paste the source data.

Share:

link-intact Share link

Share link:

Please paste this code in your page:

<script src="https://meta.decidim.org/processes/roadmap/f/122/proposals/15774/embed.js"></script>
<noscript><iframe src="https://meta.decidim.org/processes/roadmap/f/122/proposals/15774/embed.html" frameborder="0" scrolling="vertical"></iframe></noscript>

Report inappropriate content

Is this content inappropriate?

Reason

Comment details

Order by:
  • Older
    • Best rated
    • Recent
    • Older
    • Most discussed
You are seeing a single comment

View all comments

Conversation with Xabier
Avatar: Xabier Xabier verified-badge
28/10/2020 23:55
  • Get link Get link

I like your thoughts and comments.

I am not sure if "as flexible as possible" is the best criterium to drive Decidim's evolution, Drupal might be better for maximum flexibility. But even if we aim for flexibility it should always be within the limits of what is good for democracy. Sure, sysadmin with RoR programming capacities could potentially do anything (but they must also make the code available by AfferoGPLv3). Admins should be able to configure with different degrees of detail but should always have limited freedom to manipulate or distort democratic processes (e.g. last time I checked an admin could not remove a proposal component with proposals inside).

I would say that, in general, although the code can always be modified, we should alway aim for the less manipulable flexibility, both for the sysadmin and the admin.

Avatar: Oliver Azevedo Barnes Oliver Azevedo Barnes
29/10/2020 17:21
  • Get link Get link

Thanks Xabier, that makes total sense. I didn't quite have Drupal-level flexibility in mind, but flexibility relative to Consul, for example, in implementing democratic processes. I assumed admins customizing navigation would be a normal part of that, of process design and customization.

I understand the concern with opaque change to user flow mid-flight, during ongoing processes. It's a thorny, interesting problem for sure. If there are any resources (docs or threads) elaborating on Decidim's recommended approach here, I'd love to read up. By the way, does Decidim have an audit trail of configuration changes done by an admin?

With the case in point here, it does sound like removing menu items in the admin dashboard is a bad idea, unless there's safeguards and an audit trail in place. But if code level customization by a system user is also deemed risky, what is the preferred path to safely customizing navigation for legitimate reasons? Creating a module, forking Decidim?

Avatar: Oliver Azevedo Barnes Oliver Azevedo Barnes
03/11/2020 11:27
  • Get link Get link

By the way, does Decidim have an audit trail of configuration changes done by an admin?

Self-responding: Looks like it does, @coditramuntana pointed me to the admin activity log on the admin dashboard

Loading comments ...

  • Terms and conditions of use
  • About the community
  • Download Open Data files
  • Metadecidim at Twitter Twitter
  • Metadecidim at Instagram Instagram
  • Metadecidim at YouTube YouTube
  • Metadecidim at GitHub GitHub
Creative Commons License Website made with free software.
Decidim Logo

Confirm

OK Cancel

Please sign in

decidim Sign in with Decidim Barcelona
Or

Sign up

Forgot your password?