Only 1 custom menu ?

Created on 6 December 2023, about 1 year ago

Problem/Motivation

My expectations for this module were that each selected role could get their own custom toolbar menu. But after using it, it appears that just 1 extra custom toolbar can be assigned to some role(s).

Is this correct?
Thank you for the module, it makes Gin more close to a dashboard application.

πŸ’¬ Support request
Status

Active

Version

1.0

Component

Documentation

Created by

πŸ‡ΊπŸ‡ΈUnited States goose2000

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @goose2000
  • Assigned to jmauricio
  • Status changed to Needs work about 1 year ago
  • πŸ‡΅πŸ‡ΉPortugal jmauricio

    At the moment its only for one role, but it shouldn't be too hard to make it work for multiple roles/menus. i'm going to work on this as soon as i have some free time

  • πŸ‡ΊπŸ‡ΈUnited States goose2000

    @jmauricio - that would be cool, super useful. Thanks.

  • πŸ‡΅πŸ‡ΉPortugal jmauricio

    @goose2000

    This feature is now available on 1.0.2

  • Status changed to Fixed about 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States goose2000

    This is really great, thank you a lot @jmauricio. Trying later today.

  • πŸ‡ͺπŸ‡ΈSpain ady1503

    Hello.

    I think the problem persists.

    When I saving the menu and role configuration, only the last menu of the configuration is visible in the menu bar.

    Let me explain better: I go to the configuration page and add the menu first, the roles that should see them,
    then I choose the second menu and the roles. But when I log in with a user that I gave permission to see both
    menus in the bar, only the last menu is seen, the first is not seen.

    I tried adding more menus and only the last one is always seen.

    This is the first problem I saw.

    Second:

    And I also saw that the configuration affects the admin tool bar.
    And that the bar is seen in other themes, not only in the gin admin theme as it should be.
    For this reason it is called: Gin Toolbar Custom Menu.
    It should affect only the "Gin" management theme.

    VersiΓ³n de Drupal
    10.3.9
    PHP
    VersiΓ³n
    8.3.13

    Thank you.

  • πŸ‡΅πŸ‡ΉPortugal jmauricio

    @ady1503

    The configuration was implemented for one menu per role(s) and not multiple menus per role, but i will look into that, what do you expect? both menu entries joined together?

    The second problem i'll have to check, as soon as i have some time.

  • πŸ‡ͺπŸ‡ΈSpain ady1503

    Hello.

    I understand that it is a job to do, I don't expect anything specific. The module is fine as long as you only need one menu and the same roles that have access. But it would be interesting to at least have the possibility of having more menus in the toolbar. The idea in itself is very good that the Gin theme has the possibility of activating menus with links.

    I will use the existing functionality, but it is limited, and this means that many people do not use the module.

    Gracias

  • πŸ‡΅πŸ‡ΉPortugal jmauricio

    @ady1503

    Just pushed a fix into 1.0.x that adds the ability for multiple menus per role.

    As far as the second problem you describe, i can't replicate it, are you using the latest version?

  • πŸ‡ͺπŸ‡ΈSpain ady1503

    Hello.

    What I mean is, if it is applied to the admin role then it modifies the bar completely, with the chosen menus, and the others disappear. It doesn't have much importance, it was for information.

    Thank you.

  • πŸ‡ͺπŸ‡ΈSpain ady1503

    I have tested the latest changes you made, everything works fine.
    As I said above, if the administrator or authenticated role is chosen,
    the entire bar is affected, with the chosen menus, and the default ones disappear.

    It is not a bug as such, I am just reporting it so that users know.

    Thanks for the module.

  • πŸ‡΅πŸ‡ΉPortugal jmauricio

    Released version 1.0.4

  • πŸ‡΅πŸ‡ΉPortugal jmauricio
Production build 0.71.5 2024