Closed (duplicate)
Project:
ThemeKey
Version:
7.x-3.x-dev
Component:
Installation / Configuration
Priority:
Major
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
21 Jul 2011 at 18:25 UTC
Updated:
10 Oct 2013 at 07:58 UTC
Hey guys,
I can't believe how useful this module is (and that I've never come across it until today!?). One thing I can't figure out though is how to let the theme that users choose to apply to their nodes *also* load when you view their user account page.
Has anyone done this? Perhaps using the Switching Rule Chain I can achieve this somehow?
Qasim
Comments
Comment #1
mkalkbrennerYou can use the additional module ThemeKey Debug to see all properties values on a page.
But I think it will be hard to achieve your feature with the existing properties.
This should be turned into a feature request.
Comment #2
designguru commentedThe debug values don't really help me - the reason why is because I'm using the subdomain module for user account pages; so user accounts are available at http://username.domain.com instead of say, http://domain.com/user/username .
Ideally, I would be able to create a rule to call the triggered theme at a wildcard location (which would be *.domain.com) but it seems you can't include wildcard in rule Values... (or am I mistaken?)
I know there's a few hooks with the module that might be able to achieve what I'm after but that's a little above my head... :(
q./
Comment #3
mkalkbrennerWildcards could be realized using the regex opperator ~.
system:host ~ /\w+\.domain\.com/
Do you want to show all profiles using one theme or do you want to let the users decide which theme should be used to show their profile?
Comment #4
designguru commentedI want their profiles to show with the same theme users select for their nodes (so yes, the theme would be user-dependent.)
q./
Comment #5
mkalkbrennerI think that feature could be achieved by creating a rule for user profile page and implementing hook_themekey_custom_theme() to switch to the user specific one.
I close this issue. Feel free to ask for more details, if you're still interested.
Comment #6
webservant316 commentedwhy not just add the feature to themekey? seems sensible that if a user wants a particular theme for their pages and blogs that they could also choose the theme for their profile / account page.
Comment #7
mkalkbrennerduplicate, see #2082427: extend individually-styled channels to include the user profile page and contact page