Add the ability to add a dashboard to a menu link

Created on 8 April 2025, 13 days ago

Problem/Motivation

At the moment you are able to create several dashboards on admin/structure/dashboard which is great. But it is not directly apparent or is it even impossible at this point, to choose which dashboard to use on admin/dashboard or even having the ability to add another dashboard via the ui? If i am not completely missing something here, the only way to access that one available dashboard is via the path (admin/dashboard) and for that path there is no corresponding menu item in navigational sidebar at the moment - but it looks like πŸ“Œ Support navigation module Active is adding a block similar to Drupal CMS for that purpose.

Steps to reproduce

Proposed resolution

I wonder if it would be a reasonable step to either add a select field or an auto complete field, depending on the number of available dashboards, to the edit menu link pages. That way it would be possible to have additional dashboards across the admin ui. site builders and or users would be able to add a dashboard to existing menu links or create new dedicated menu links where a dashboard could be added/referenced.

Not sure to what degree this suggestion overlaps with ✨ Dashboards should have the ability to customize path (alias) Postponed , but i thought the linked issue would be more about adding the ability to add a path to a dashboard entity , so the two might complement each other well.

Remaining tasks

User interface changes

API changes

Data model changes

✨ Feature request
Status

Active

Version

2.0

Component

User interface

Created by

πŸ‡©πŸ‡ͺGermany rkoller NΓΌrnberg, Germany

Live updates comments and jobs are added and updated live.
  • Usability

    Makes Drupal easier to use. Preferred over UX, D7UX, etc.

Sign in to follow issues

Comments & Activities

  • Issue created by @rkoller
  • πŸ‡ͺπŸ‡ΈSpain penyaskito Seville πŸ’ƒ, Spain πŸ‡ͺπŸ‡Έ, UTC+2 πŸ‡ͺπŸ‡Ί

    Several things in one single issue!

    > But it is not directly apparent or is it even impossible at this point, to choose which dashboard to use on admin/dashboard

    Users will see the first one that is enabled, they have access to, sorted by weight. You can sort them in admin/structure/dashboard.

    > having the ability to add another dashboard via the ui?

    If you mean having different links in the new navigation, no, you can't on the dashboard block. But you could add a menu link to one of the several menus navigation is using, it just won't be on the top section. I feel like showing all the dashboards there would be quite overwhelming in most cases. Once navigation APIs stabilize we might be able to explore more options.

    > it looks like #3486246: Provide a block for Navigation top region on installation is adding a block similar to Drupal CMS for that purpose.

    Yes, that region is protected, and a block can only be added by code. The issue you mention will add that block on installation, now that there is an API for that (remember, navigation is still experimental). That won't be available until 11.2.0 is released though.
    The workaround is what Drupal CMS does, providing navigation.block_layout.yml in a recipe. If you feel comfortable editing that by hand and importing it, you can do that in your sites.

    > I wonder if it would be a reasonable step to either add a select field or an auto complete field, depending on the number of available dashboards, to the edit menu link pages

    You can always use a menu link with the dashboard path? Or am I missing something here?

    Also, we recently added ✨ Provide integration with coffee module Active for coffee integration. So if you are using coffee module, you will be able to Alt + D, write dashboard, and see the dashboards.

Production build 0.71.5 2024