I'd like to use it for hiding permission descriptions, Keith Smith wants to use it for hiding help text, and one could probably think of another half a dozen places in Drupal it could be useful. Right now the "turn descriptions on and off" link is a) coded to always redirect to the ?q=admin page, b) not displayed on any other pages.
So let's genericize this (if that's a word) so that any admin page can have its details hidden.
Comments
Comment #1
gaele commentedYup, like toggle the display of field descriptions.
I'm thinking about three options, so a user could adjust the display to his/her own experience level:
- off
- on (inline)
- on (pop-up)
And IMHO this should not be constrained to just the admin pages. On the node add page it could be useful too.
(BTW also see this discussion about help pages in pop-ups.)
Comment #2
gaele commentedAnd yes, this "Hide descriptions" link should be "genericized" ;-)
Where to put this link? Think about this: "hide help/descriptions" is not a navigation link, it is a utility link, just like e.g. "logout".
A nice place would be in the upper right corner. (See e.g. admin_menu module, and Steve Krug's book "Don't Make Me Think").
Comment #3
lilou commentedbump
Comment #4
gaele commentedComment #5
catchNice idea.
Comment #6
andypostduplicate #202593: 'Hide descriptions' link on admin/config affects other pages
Also there's a critical issue #748976: "Show/hide descriptions" links no longer work
Comment #7
webchickComment #8
andypostSeems this should go to 8.1.x now, also there's collision with related
Comment #22
mstrelan commentedIs this still relevant? There has not been an update in over 10 years.
I did some digging to see what this is about. There is a
system.admin_compact_pageroute that sets theadmin_compact_modecookie. There is also asystem_compact_linkrender element to generate a link to toggle this cookie. This render element is currently used on "administrative index page templates" viatemplate_preprocess_admin_pageand "admin index templates" viatemplate_preprocess_system_admin_index. Example URLs are/admin/indexand/admin/config.The issue summary mentions #30984: Usability: Provide descriptions for permissions, but it seems we're already using the same link in
\Drupal\user\Form\UserPermissionsForm::buildForm. It also mentions #205226: Use system_admin_compact_mode to hide $help text which has not been done. Perhaps this should be converted to a meta and the two issues mentioned should be child issues.From my POV I've never used the link or noticed that exists, so I don't have strong feelings towards this. My expectation would be that users have a preferences page linked to their account, rather than a cookie, and they could toggle on descriptions and help text from there.
Changing the status to PMNMI until we know if this is something we want to follow up.
Comment #23
smustgrave commentedSince there's been no follow up in 6 additional months and was a feature request that didn't seem heavily desired going to close out. Can always be re-opened