problem co-existing with the domain module

ben soo - February 1, 2008 - 20:09
Project:Taxonomy Theme
Version:HEAD
Component:Code / API
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

Hi and good afternoon;

i've been fighting with various modules to get our site up, and am at present finding that the Domain Theme module and Taxonomy Theme don't seem to work well together. With Taxonomy Theme enabled, and specifically, in the admin page, the "Template selection" under the Taxonomy tab set to anything other than "Disabled", then subdomains of the main site have content node pages that revert to the main site theme, rather than keeping the subdomain theme set in the Domain Theme module.

Is there another way to fix this rather then turning off Template selection?

thanks,
b

#1

agentrickard - February 2, 2008 - 18:47

Developer note. We have a patch over in Domain Theme, moving the theme assignment from hook_init() to hook_menu(). This allows TT to change the theme set by DT. http://drupal.org/node/216847

However, the reverse does not seem to be the case. TT always trumps DT.

I think this is due to the use of init_theme() in _taxonomy_theme_assign(). I notice that OG does not use init_theme(). Neither does system.module when loading the admin theme. DT follows that example and simply resets the $custom_theme global and then allows the theme system to handle it.

is there a specific reason why TT uses init_theme()? Is the module supposed to override other theme settings "by design"?

#2

inforeto - June 9, 2008 - 20:16
Component:Code» Code / API

subscribing.

 
 

Drupal is a registered trademark of Dries Buytaert.