Custom Theme not working for node detail pages
craigmc - March 3, 2009 - 08:28
| Project: | Virtual Sites |
| Version: | 6.x-1.3 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
For some reason, when not using a Views-generated page (e.g. viewing a node detail page), the site-wide default theme gets applied, instead of the custom theme for the virtual site.
By default, the Virtual Site Theme module executes after the system module. Since the Virtual Site Theme module sets the $custom_theme global var that is used by init_theme() to dictate which theme gets applied.
To address this, I adjusted the weights of all Virtual Sites modules to execute before the System module-- e.g. changed them to -1 instead of 0.

#1
craigmc - thanks for the fix
Changing the weights on the modules also helped us... It not only took care of a display problem on the user side of our site, but also made it so that our chosen admin theme worked on the virtual site host... (myvirtualsite.com) ... we're using the condition that fires based on the host URL.)
Good module... it's nice not to have to worry re: which tables are shared or not shared, just to have a site with multiple "faces".