I have multiple domains configured with different themes. It works fine, however as soon as I include /admin
in the URL all pages get themed as per common administration theme (/admin/settings/admin).
Maybe a change in administration theme would act as a visual reminder, similar to the current textual warning
You are viewing one.mydomain.com. This form may need to be entered from mydomain.com
To keep things simple one could maybe use the same domain-specific theme for both admin and non-admin pages.
Comments
Comment #1
agentrickardI'm not quite sure how we would implement this, actually.
Look at the bottom of system_menu(), which is where the administrative theme gets set.
We set the $custom_theme() in hook_init() -- which enables the custom theme to load on cached pages. But then system.module changes this value in hook_menu() -- that is, later in the page loading process.
It might be possible to do two things:
- Set the module 'weight' of domain_theme to > 0 -- this should force it to load after system.module.
- Insert the following code into domain_theme_menu().
Personally, I think this might be a bug in how admin themes are handled. The admin theme gets reset even if $custom_theme has already been altered.
Note: Instead of running domain_theme_init() above, you might want a function to define and load a specific administrative theme for the domain.
Comment #2
agentrickardTurns out to be easily implemented in Domain Conf.
Feature committed to HEAD.