Hi, how to make group description shown on organic group home page?

Comments

keith.smith’s picture

kzuser, I'm sure folks will be glad to help you. First, though, can you identify exactly which part of the page you are wanting to replicate? I mean, if you will post here with a link to a particular groups.drupal.org page, and quote a bit of the text that appears like you want it, we'll have a much better idea of what we're talking about here.

--keith

kzuser’s picture

http://groups.drupal.org/high-performance take this group for example

you can see orange field with description of group

its not shown on my group home page only in groups directory

keith.smith’s picture

OK. I've never used OG, but I just checked out a copy of it, and in the module directory is a file named README.txt that has a section called "THEMES".

Have you investigated using that information and the included "node-og.tpl.php" file (after you copy it into the theme directory being used on your site, e.g., /themes/garland or /sites/all/themes/yourtheme), and editing that file to include a reference to the group description wrapped in a named div, and then styling the div in your theme's CSS file?

--keith

kzuser’s picture

hi, thanks for show me the way where to start

i just copy that 2 files to theme directory
i use currently garland theme for testing

could you help me with "editing that file to include a reference to the group description wrapped in a named div, and then styling the div in your theme's CSS file"

keith.smith’s picture

I told you in my earlier comment I haven't used OG in some time, probably not since before Drupal 5 came out.

I just installed the 5.x-5.3 release of OG from http://drupal.org/node/219691, and to my surprise (this is a new feature since I last looked at OG), when creating a group, I have a text area for the Group's "Mission statement" that appears after the title and description on the Group add/edit page. This mission statement is what is appearing on the groups.drupal.org page you reference.

In fact, without doing any copying of files around, the mission statement shows fine on group pages on the Drupal 5 site I created to test this out. Now, it isn't orange like the one on groups.drupal.org, but it does appear in Garland.

Do you not see the mission at all, or do you see it, and just want to have it look visually similar to the one on groups.drupal.org?

Sorry for leading you down the wrong path with my earlier response -- I should have installed OG and created a group before I responded to your post.

--keith

kzuser’s picture

but not see any mission statement?

?????????????????????????????/

my head is moving around

keith.smith’s picture

Heh. I'm not sure. I just installed the new version, created a "Groups" content type, configured OG on the OG configuration page to set the "Groups" type I created as the type of a new group, and then went to create a group. Make sure you've set the settings on the admin/og/og page, including setting the "Group home page node types".

--keith

kzuser’s picture

keith.smith, i want remove og and resetup 5.3 release again

i will report you about results

Thank you very much for you help
can you keep attention on this topic?

the loch ness monster’s picture

I believe you have to make sure that the "Body Field Label" is populated in the "Group" content type.

admin > content types > group > body field label

If it's blank, I think it removes the field altogether.

kzuser’s picture

its empty

i leave it empty

kzuser’s picture

hi how to place group leader picture on group description field?

Richard_’s picture

Hi kzuser, have you succeed with group leader picture, also have you figure out what to put into template to get custom placement for group description (mission)?

Thank you!!!

kzuser’s picture

no both

Village Internet’s picture

Go to /modules/og/theme

Copy node-og-group.tpl.php into your theme directory

add the following code into the content section (after the title)

print $node->og_description