Using your module to create two groups. These are accessed from the home Drupal page. The groups are green and brown. Green has a node of node/5 and brown is node/2. Both are accessible from the groups menu and work well.

There is an issue that may not be a part of your code. When using section module to add a unique theme to each group I run into an interesting issue. The new theme is available when I go to green at node/5. However, when in the green theme and comments, reply or blog are accessed the theme returns to default of blue. i.e. path is then not correct. This is the path for accessing a comment when on the green part of the site. http://localhost/drupal/node/18#comment.

The issue appears to be related in generating the correct path for the section module. There is a place for that code, but I am not sure what the interaction is between the two modules. i.e. what path code should be used so that all of the sub pages (nodes) in green will still be in the green theme and not revert back to the default of blue.

The overall plan is to have a number of groups in one Drupal site , but each with their own unique theme.

This issue may have nothing to due with either module but just my understanding of how a path works in Drupal. Any help in addressing the path issue is appreciated.

Jim

Comments

moshe weitzman’s picture

Title: Path in Organic Groups » theme each group differently
Category: support » feature

it is not yet possible to theme each group differently. this is a non trivial feature request.

moshe weitzman’s picture

Assigned: Unassigned » moshe weitzman

coming soon

moshe weitzman’s picture

comitted to HEAD. since this feature is not yet optimized, i don't recommend using HEAD og on a production site for a few days until a patch to core gets approved. i will close this issue when that happens.

Alaska’s picture

Glad to see that the mod is in progress.

Jim

moshe weitzman’s picture

performance issue resolved with tonight's commit. requires current HEAD version of drupal.

moshe weitzman’s picture

Title: theme each group differently » don't save theem if it is same as default

this makes groups stick with the default unless it opts otherwise ...

jakeg’s picture

Title: don't save theem if it is same as default » how exactly?

How exactly can you get a group to opt otherwise? I don't see this option anywhere, though I can see the module cleverly selects a custom theme as a global variable.

jakeg’s picture

Title: how exactly? » Changing group theme

Okay, got it. There doesn't seem to be a UI for changing group themes yet. I had to do it directly in the database. Is this correct?

But let me say this... fantastic!!! I thought I was going to have to hack my own way to have themes for og.

jakeg’s picture

Okay, you have to actually enable other themes in the main admin > themes page to be able to change them through the UI.

moshe weitzman’s picture

Anonymous’s picture