Posted by Dane Powell on July 18, 2009 at 10:57pm
Jump to:
| Project: | Organic groups |
| Version: | 6.x-2.0-rc3 |
| Component: | og.module |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
If a group node is promoted to the front page, it looks very different from all of the other teasers. Specifically, other teasers have the "node-teaser" class, and the node title (which is an h2 element) has the "title" class, etc... Group node teasers appear to have roughly the same structure but are missing all of these classes. Is this by design, and if so, is there a way to override it?
Comments
#1
The og module has .tpl.php files in the module directory. To make changes move them to your themes directory and edit them.
Izzy
#2
Ah, thanks for the pointer- I haven't done much work with theming, but it wasn't too hard to figure out how to fix.
Is there a way to submit fixes for this sort of incompatibility back to either OG or Pixture Reloaded (my theme)? I'm assuming you don't want to have a patch for every possible combination of theme and module, but at the same time it doesn't seem right for lots of people to have to edit .tpl.php files by hand.
#3
I am not involved as a maintainer of the module or themes. I simply saw your question and thought I could offer an answer. I will leave your additional question for others to answer.
Izzy
#4
Marking as fixed since the original issue has been resolved. I'd still like an answer to my second question but would rather get this out of my issue queue since it doesn't look like anyone has an answer :)
#5
Automatically closed -- issue fixed for 2 weeks with no activity.
#6
Just wondering how you resolved your original issue? I am having a similar issue with nodes in groups having a different teaser look than nodes not associated with groups. Did you modify the node-og-group.tpl.php file?
#7
I honestly can't remember! And I'm not using OG on any sites ATM so I can't check. But I think you are on the right track there. Sorry I can't be of more help :)
#8
Just a follow-up. I fixed our issue with groups and teasers and wanted to post the solution in case it might help others.
After researching this issue on Drupal and trying many, many, different (and mostly complicated) solutions that others had posted, it ended up that the solution that worked for me was very simple. Basically, I copied the content from my node.tpl.php file (located in the theme folder) and pasted it into my node-og-group-post.tpl.php file (located in my OG module folder). Now, nodes/teasers posted to groups look like nodes/teasers that are not associated with a group. Really, it was that simple. :)
#9
I can confirm this solution, although you should put node-og-group-post.tpl.php in your theme folder, not your og module folder.