I'm trying to figure out how to change the appearance of the "groups" page that the Organic Groups module (OG) creates.
For now, I'd like to be able to show, using the river-of-news, only group-targeted book pages that are "sticky". Or even just group-targeted nodes of any sort that are "sticky". From looking at the OG code and documentation, it seems that I need to redefine this function in my phptemplate-based theme:
// if you want a totally different group home page, you may redefine this function in your theme
function theme_og_view(&$node, $teaser = FALSE, $page = FALSE)
It looks as though I could use the call to this function to only return book pages:
// str_types is a list of types which should be selected. if not provided, we return all og nodes
// filtering for a given gid is done by passign a a special $arg to db_rewrite_sql()
function og_get_home_nodes_sql($str_types = NULL)
So, assuming my theme is named "column", my understanding is that I define a function named column_og_view()
in my theme's template.php file? Or, do I need to name it: phptemplate_og_view()
? In this function, I can reproduce the code from theme_og_view()
as a start, but do I need to use an include()
statement or something else to access the og_get_home_nodes_sql()
function or other functions in the OG module?