Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
The Group module allows you to pick whether to display group admin pages using the admin or standard default theme, but Group Permissions always displays its admin pages using the default theme. This can be very jarring for users, especially when the default theme is not optimized for admin configuration forms.
Proposed resolution
Create a RouteSubscriber class to switch the theme based on Group module's use_admin_theme setting.
Issue fork group_permissions-3182893
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:
Comments
Comment #3
jstollerThis is my first time using an issue fork, so not sure what the protocol is, but it's ready to go.
Comment #6
LOBsTerr CreditAttribution: LOBsTerr at European Commission and European Union Institutions, Agencies and Bodies commented@jstoller - It is not necessary to alter the route. It belongs to this module. So, I've just added the option to the route. Please check it and I will merge it
Comment #7
jstoller@LOBsTerr If you want to hardcode it in there, that's fine by me since that's how I use it, but I thought it would be a better UX if it was dynamic and responded to the setting Group provides. Presumably whichever theme someone picks for the rest of the Group interface they'll want Group Permissions to use as well.
Comment #8
LOBsTerr CreditAttribution: LOBsTerr at European Commission and European Union Institutions, Agencies and Bodies commented@jstoller altering the route we kind of do the same thing. Anyway, users can alter the route in any moment and group permissions page for me is a part of admin part
Comment #9
jstollerComment #11
LOBsTerr CreditAttribution: LOBsTerr at European Commission and European Union Institutions, Agencies and Bodies commented