Make toolbar item optional

Created on 28 January 2022, almost 3 years ago
Updated 24 April 2024, 7 months ago

Placing the rebuild cache in the toolbar gives it a lot of visual weight that some may consider inordinate, a link to this could be created in the admin menu if the toolbar item was optional.

✨ Feature request
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States damondt

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

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

    Hello, leymannx.

    I'm trying to include your "tab" link in a custom, hard-coded backend menu I've designed in order to replace the admin_toolbar. Unfortunately, just copying your module's rendered HTML and pasting it into my template doesn't work and I think it's because of the "token" element in the URL.

    Is there any easy way to produce a standalone link for this function that could be placed anywhere?
    Appreciate any help.

  • leymannx Berlin

    You need to create the link from the route, I think. Try:

    <a href="{{ path('rebuild_cache_access.rebuild_cache' }}">Rebuild cache</a>

  • leymannx Berlin

    And the current user needs to have a role with the rebuild cache access permission, of course.

Production build 0.71.5 2024