Generated with the help of an LLM.
Problem/Motivation
The review dashboard at /admin/content/stale-review is only linked from a menu link with parent system.admin_content. With the core Navigation module, editors can't find it: Navigation removes the admin "Content" item and its children from the sidebar, and adds its own "Content" link without children (see NavigationHooks::navigationMenuLinkTreeAlter()). The dashboard tabs only show once you are on the dashboard.
So the only ways in are typing the URL or the link in the digest mail. With the classic toolbar I think it's similar, unless Admin Toolbar is installed to show the dropdowns, but I didn't test that.
Steps to reproduce
- Install Navigation and content_reviewed_date.
- Log in as a user with "view content review dashboard".
- Look for a link to the review dashboard in the sidebar or on
/admin/content: there is none.
Proposed resolution
Add a "Content review" tab on the content overview, next to the tabs core and other modules already add there (Media, Blocks, ...):
content_reviewed_date.content_overview: title: 'Content review' route_name: content_reviewed_date.stale_report base_route: system.admin_content weight: 20
The menu link can stay for sites that use the toolbar dropdowns. That works for us, but maybe there is a reason the module only uses the menu link?
Remaining tasks
- MR, with a test that the tab shows on
/admin/contentfor users with the dashboard permission.
User interface changes
A "Content review" tab on /admin/content.
API changes
None.
Data model changes
None.
Issue fork content_reviewed_date-3636743
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3636743-dashboard-tab
changes, plain diff MR !5
Comments
Comment #3
svendecabooterComment #4
svendecabooterCreated a MR. It adds the "Content review" tab on
/admin/contentand keeps the existing menu link. The functional test checks that the tab shows for users with "view content review dashboard" and not for others.Comment #6
svendecabooter