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

shadybar’s picture

Title: How to change the theme of a group. » How to change the theme of a group
muschpusch’s picture

Same support request here...

mikemccaffrey’s picture

Category: support » feature

For 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.

socialnicheguru’s picture

I am interested in this.

amorsent’s picture

I may have found a solution. On lines 26-30 of spaces_og.module (version 6.x-2.0-beta6) you will find:

// Handle theme switching for OG
if ($this->group->og_theme) {
  global $custom_theme;
  $custom_theme = $group->og_theme;
}

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?

socialnicheguru’s picture

Version: 6.x-3.0-alpha2 » 6.x-2.0-beta3
Status: Fixed » Active

are 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

yhahn’s picture

Version: 6.x-2.0-beta3 » 6.x-3.0-alpha2
Status: Active » Fixed

Thank you. Committed to 3.x: http://drupal.org/cvs?commit=326880

amorsent’s picture

Version: 6.x-2.0-beta3 » 6.x-3.0-alpha2
Status: Active » Fixed

Yes.
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.

amorsent’s picture

Thanks Young.

socialnicheguru’s picture

Status: Fixed » Active

@dylan.riordan, have you actually been able to change themes for the og? I am not able to

socialnicheguru’s picture

Version: 6.x-3.0-alpha2 » 6.x-3.0-beta2

I 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

yhahn’s picture

Status: Active » Postponed (maintainer needs more info)

This is working for me in the latest Spaces dev. Let me know if you have further issues.

socialnicheguru’s picture

yahn, are you saying beta2 or beta3?