This forum is for assistance with theme development.

How Do I Change OG's Group Page Appearance?

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?

Problem downloading PHPTemplate

When I try to download PHPTemplate from what I assume is that theme engine's main page (http://drupal.org/project/phptemplate), the download link is actually a link to drupal.org.

So I went back to the engine's main page and clicked "View Older Releases." Downloaded PHPTemplate 4.6.0 from there. When I read the readme.txt, it says it's PHPTemplate 4.5.0.

modifying #size attribute of flexinode file fields

I had a problem with the default width of the flexinode file fields, they were too wide for my layout. So went into flexinode/field_file.inc and added in a size attribute. It works now, but obviously this is not ideal. I tried using CSS etc before i did that , no luck. Is there a way to set this attribute in a non hackish fashion?

Themeing Tabs

I am modifying the Bonsai theme for use on one of my sites and so far have gotten everything to look just as I want it to with the exception of the tabs that appear at the top of pages such as the user/# pages that read View and Edit. From the source-code I have been able to catch that the CSS in use is for the class 'tabs primary' and 'active'. I have poured over the CSS file for Bonsai and have to yet to be able to find where these tabs are themed. Is there another CSS or something in the node.tpl.php file I have overlooked?

Thanks for any help!

flexinode/table themable or call in iframe?

I really love the tabular view of flexinode:
flexinode/table/x
where x is the number of the content type.
It is sortable and has all sorts of neat features.
My problem is, that I would like to show more on that page, including some written text.
I have tried calling flexinode/table/x in an IFrame but it shows the full page including the theme and menus in that frame.

How can I get some more content on this page and how can I rename it
e.g. listofproducts instead of flexinode/table/x

Thanks.

overriding admin theme w/ *different* theme AND *engine*?

hi all.

reading http://drupal.org/node/52389 it's clear how to assign a separate theme for a given theme-engine.

the example talks abt phptemplate, but using smartytemplate.php rather than template, same holds for smarty-engine.

QUESTION: how 2 for different engines? e.g., site is Smarty-themed, but admin theme is phptemplate?

& fwiw, yes, i'm also aware that for same-theme-engine, FrontPage module is quite a nice option ...

cheers,

richard

Pages

Subscribe with RSS Subscribe to RSS - Theme development