Problem/Motivation

At /admin/appearance since many Drupal versions there's the option

Use the administration theme when editing or creating content
Control which roles can "View the administration theme" on the Permissions page.

But there's no such option for users or other entities, while in certain situations, especially for community projects (communities, social networks, social intranets, ...) the user pages are at least as important as node pages. They should have the same option.

Steps to reproduce

Proposed resolution

Implement the same option at /admin/appearance but for user pages:
Use the administration theme when editing or creating users

Might look like this:

Remaining tasks

  1. Discuss, if this would make sense to select per entity type or for other entity types like taxonomy terms
  2. Implement with tests
  3. Review
  4. Release

User interface changes

/admin/appearance has a new option

Use the administration theme when editing or creating users

to control whether the user profile create and edit form should be shown in the admin theme or default theme.

API changes

Data model changes

Release notes snippet

Links

CommentFileSizeAuthor
#4 user-edit-theme.png35.77 KBanybody

Comments

Anybody created an issue. See original summary.

anybody’s picture

Issue summary: View changes
anybody’s picture

Thoughts? Would already have made sense in many projects for us. Currently, elevated users have to masquerade as users who are not allowed to see the admin theme to see the user (create /) edit form like every user should see them.

Of course, typically the user create form is used by elevated users. The user edit form is especially affected by editing the elevated user's own user profile!

anybody’s picture

Issue summary: View changes
StatusFileSize
new35.77 KB
anybody’s picture

Issue summary: View changes
lauriii’s picture

Status: Active » Closed (works as designed)

This definitely is a valid use case and I can see how this could be important to some sites. However, majority of the sites rely on the defaults, and for that reason we have been thinking more in line of removing this functionality altogether from core, and relying on something like https://www.drupal.org/project/theme_switcher to do this.

anybody’s picture

Thanks @lauriii yes, I totally agree that would be the other option. Is there any issue for the removal we could link here?