Postponed (maintainer needs more info)
Project:
Spaces
Version:
6.x-3.0-beta2
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
13 Aug 2009 at 16:49 UTC
Updated:
27 Apr 2010 at 05:56 UTC
Is it possible, even with writing some code, to allow a group to still change its theme?
I notice when Spaces OG is enabled the theme configuration section is replaced by the spaces preset options, which I understand. Is there a way that I can attach a theme to a space preset or take some other action?
Thank you.
Comments
Comment #1
shadybar commentedComment #2
muschpusch commentedSame support request here...
Comment #3
mikemccaffreyFor the time being it seems that the extent of your theming options with the default spaces installation is to enable the Spaces Design module that will let users define a custom color and logo for a particular space. Actual theme switching might be nice, but seems more of a feature request.
Comment #4
socialnicheguru commentedI am interested in this.
Comment #5
amorsent commentedI may have found a solution. On lines 26-30 of spaces_og.module (version 6.x-2.0-beta6) you will find:
It seems to me that
$custom_theme = $group->og_theme;should be
$custom_theme = $this->group->og_theme;This indeed seems to work for me. Additionally, the 'Theme Configuration' for a group is hidden on line 773
_spaces_og_make_hidden($form['themes']);commenting this out seems to work. Perhaps this is only disabled because the theme switching was not working?
Can anyone confirm that this is a sensible patch?
Comment #6
socialnicheguru commentedare you saying unhide what is on line 773?
Edit: for those of us still on spaces 2, do you recommend that we unhide what's on line 773
Comment #7
yhahn commentedThank you. Committed to 3.x: http://drupal.org/cvs?commit=326880
Comment #8
amorsent commentedYes.
The Line
_spaces_og_make_hidden($form['themes']);Hides the theme selection on the organic groups form, commenting this out, or removing it will allow it to show.
But the actual theme switching won't work unless you fix the other part too.
Comment #9
amorsent commentedThanks Young.
Comment #10
socialnicheguru commented@dylan.riordan, have you actually been able to change themes for the og? I am not able to
Comment #11
socialnicheguru commentedI tried spaces 3 beta 2 and I am not able to change the theme
by default it says:
don't switch this them is selected by default
when I select another, the page saves but no theme changes are there
when I go back to the the group edit page and select them configuration for this node, the selection is set back to the default
Comment #12
yhahn commentedThis is working for me in the latest Spaces dev. Let me know if you have further issues.
Comment #13
socialnicheguru commentedyahn, are you saying beta2 or beta3?