Closed (won't fix)
Project:
Domain
Version:
5.x-1.2
Component:
- Domain Theme
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Apr 2008 at 20:25 UTC
Updated:
29 Oct 2008 at 00:10 UTC
My multisite is setup as follows:
example.com
site1.example.com
site2.example.com
Each site has a different public theme. I would like to set a common admin theme though for all sites. So, naturally I go to site configuration->administration theme and change. I confirm this works for example.com, the main site. I next go to domainlist->settings for site1.example.com and change the admin theme in the dropdown, but it doesn't seem to work. I confirmed the setting was stored in the database in the domain_conf table.
Any one see this issue?
Comments
Comment #1
jbizzay commentedOh, and caching is turned off as well as I truncated all the cache tables in the db.
Comment #2
jbizzay commentedI fixed my issue! Also, added the administration theme to create content nodes...
Here's my modified function from domain_theme.module:
Comment #3
agentrickardDid you try re-weighting the Domain Theme module using the setting provided?
This issue is a known flaw in Drupal's implementation of $custom_theme for admin themes.
Comment #4
agentrickardThis is really a core issue. Supporting custom themes for individual pages is not my responsibility.
Glad the patch above works for you.
Comment #5
jastern commentedfyi i posted a drupal-6 version of this issue, here: #324373: Domain Theme settings - Subsites admin theme set, but won't take (D6.x), also with a helpful response/solution from agentrickard (thanks again, a.r.).
Comment #6
asd123asd5 commentedFor anyone who does decide to use the fix provided by jasonalank it's worth noting that this only applies to pages within /admin/. as far as changing user information it will still revert to your other theme. You can fix this by testing if the user is an admin. I did a bit of a dodgey and just tested the uid of the admin account (since we only have one)
replace -
if (arg(0) == 'node' && is_numeric(arg(1)) && arg(2) == 'edit'
|| arg(0) == 'node' && is_numeric(arg(1)) && arg(2) == 'delete'
|| arg(0) == 'node' && arg(1) == 'add'
|| arg(0) == 'admin') {
with +
if ($GLOBALS['user']->uid == 1) {
Remember that this was with an older version, make sure you only apply the pieces you need.