Hi.
How do I customise the contents and layout of the organic groups homepage under 5.x?
This may sound like a dumb question, but I've been reading documentation for days now, I've done all the 5.x tutorials I could find and I still can't find an answer. There's a bit of information around for 4.7 but nothing for 5.x. Just for starters, I can't even get og to use anything but the river of news view.
I'll quite happily turn my experiences into an article/tutorial and post it on drupal.org when I'm done.
Even a hint at what I should be looking at would be apreciated. A starting point, anything.
Thanks in advance,
Tom.
Comments
Comment #1
moshe weitzman commentedyou can customize the view thats list listed on your Views admin page. See the theme docs for Views.
Comment #2
fraction commentedHere's a handy hint for any other muppets like me.
you need to click the 'add' link on the og_ghp_ron view before you can edit it.
That's been baffling me for days.
Comment #3
shyamarjarapu commentedThanks for your help. I had hard time as well, so thought of helping other dudes with what I knew here.
Req: I thought of not posting some of the nodes like images, to top of a group home page.
I used CCK and added custom field, promote_to_group_top, in admin/content types
Go to admin/views/
"you need to click the 'add' link on the og_ghp_ron view before you can edit it."
Give a unique name, og_ghp_ron_cust.
Set URL as ghone, scroll down and add a filter on promote_to_group_top for og_gpg_ron_cust view. Here you have flexibility to add paging as well.
Save and go to admin/organic groups/Organic groups configuration
Expand Group home page, and select og_ghp_ron_cust as view.
Hope it helps some one.
I think changes in node-og.tpl.php might help to change the layout. If some explored it please shed some light on it, so that fraction can help us document this into hand book.
Comment #4
fraction commentedThanks. Based on what you posted and the emails we've exchanged I'm going to have another go. I'll let you know how it goes.
Comment #5
emilyf commentedHi all,
Since the original post on this was about customizing the contents of og home page, I couldn't make it work with the og_ghp_ron view other than to add filters, etc. For customizing the actual posts on the og home page, I put up a handbook page on a way that this can be done: http://drupal.org/node/293906