Just make sure the view uses the og context. There are views to do this and they're covered in the manual for og. Works fine once the view properly grabs the og context.
create a module that integrates a view and use hook_views_pre_render();
/**
* Implementation of hook_views_pre_render().
*/
function my_module_views_pre_render(&$view) {
//view url will be siteurl/view_name/groupnid - its very rough code try on your own risk :)
if ($view->name == 'my_view_name') { //or be more specific with arguments or other comparisons.
$groupnode = node_load(arg(1));
og_set_theme($groupnode);
}
}
Themekey is great but doesn't have any OG-related properties (so far - I'm lobbying to have them added). I hadn't seen Sections - will take a look, thanks.
Comments
Just make sure the view uses
Just make sure the view uses the og context. There are views to do this and they're covered in the manual for og. Works fine once the view properly grabs the og context.
I'm probably being stupid,
I'm probably being stupid, but what are the views and where are they covered? I've tried cloning views supplied with OG but they don't seem to work.
use some views api
create a module that integrates a view and use hook_views_pre_render();
/**
* Implementation of hook_views_pre_render().
*/
function my_module_views_pre_render(&$view) {
//view url will be siteurl/view_name/groupnid - its very rough code try on your own risk :)
if ($view->name == 'my_view_name') { //or be more specific with arguments or other comparisons.
$groupnode = node_load(arg(1));
og_set_theme($groupnode);
}
}
This looks promising but
This looks promising but scary, since I don't know how to do modules...
Would it be logical to say something along the lines of:
_
Also checkout the http://drupal.org/project/themekey and http://drupal.org/project/sections modules.
Themekey is great but doesn't
Themekey is great but doesn't have any OG-related properties (so far - I'm lobbying to have them added). I hadn't seen Sections - will take a look, thanks.