Enabled all themes in admin/build/themes (default is Garland)
Tried to set domain theme for admin/build/domain/theme/1
Problem: radio button reverts back to Garland when saving.
On a side note: having read the following comment in Drupal themes setting,
I feel that "single theme, multiple colours" will be my choice, when/if available.
Note that different themes may have different regions available for rendering content like blocks.
If you want consistency in what your users see, you may wish to enable only one theme
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | domain_theme.patch | 718 bytes | agentrickard |
Comments
Comment #1
agentrickardIt works for me. Question:
When you go to assign a theme for alpha.example.com, does the URL change to:
alpha.example.com/admin/build/domain/theme/1
It should. In some cases we have to force you to be on the domain you wish to edit.
The fix is related to http://drupal.org/node/186153. So if you aren't being taken to
alpha.example.com/admin/build/domain/theme/1, then there is another bug.
I also assume that "when saving" means "after saving".
That aside, does the theme switch work on the home page(s)?
Comment #2
skizzo commentedTheme switching works only for the base Drupal installation ( admin/build/themes )
Trying to switch theme on domains, it does correctly land me on
alfa.example.com/admin/build/domain/theme/number
Then I pick a non-Garland theme and click on "Set domain theme".
Default reverts back to Garland, while URL remains the same.
Nothing is logged by watchdog. If I can help looking at the
db content please let me know.
Comment #3
skizzo commentedalso tried to create a brand new test domain, to no avail.
The domain_theme table is, and stays, empty.
Comment #4
agentrickardStrange. Try this:
Open domain_theme_form.inc. Edit this function:
It sounds as though hook_form_alter() isn't firing correctly -- if it is, then this watchdog message should be logged. Do you have any other theme-based modules installed? (e.g. Taxonomy Theme)
See http://therickards.com/api/file/domain_theme/domain_theme_form.inc/Domain for the documentation.
Comment #5
skizzo commentedNo way... I reinstalled from scratch and configured a single domain,
applied your patch and tried to switch theme.
The "theme settings form invoked" message got logged, but then
I checked the domain_theme table, and it was still empty.
I have a plain installation, nothing around fiddling with themes.
Within Domain: only Access, Configuration and Themes modules are enabled.
Well, I'll give it another try tomorrow... thanks!
Comment #6
agentrickardThere was a bug in domain_theme_lookup(). See attached patch.
Comment #7
agentrickardCommitted to HEAD. Thanks.
Comment #8
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.