Using OG, Panels 2 Alpha 9 and Views modules I have configured a set of groups which each should have their own two column Mini panels (panels as a block) homepage on our Intranet. I have accomplished that. Only problem is that I get duplicate content. My Mini panels show as expected plus the same content is shown on the group homepage above my Mini panel. I wan't my Mini panel to handle ALL the content output on the group homepage.

I have also tried to set the group homepage to content type Panel which gives me the result I wan't. Only problem with that is I can't associate a Story with a group unless the group homepage is set to content type Group.

Any idea of how to solve this? The ideal solution for me is to have the homepage set to content type Panels and still be able to choose which group to associate the Story to.

Comments

Anonymous’s picture

Hiya,

This is how I used panels as my group homepages:

1. Create a node-group.tpl.php in your theme with this inside:

<?php
print "<h1>".$title."</h1>";
print panels_page_view_page(3);
?>

Replace the (3) with the panel id of the panel you wish to use (can find in your database)

Also, you don't need the print $title line, I just wanted to have my group name displayed

I found this from reading http://drupal.org/node/166119

2. Create a blank view for the default group homepage

I copied the code from http://drupal.org/node/120062

You can still output your group homepage view if you want, just add in the above code:

print $content

HTH

Steve

http://www.open4.org/bio/steve-purkiss - view my online profile
http://www.open4.org/site_tour/quick_tour - free blogs and clubs with 100% AdSense revenue going to you!

Anonymous’s picture

...forgot to say, all my views for the group homepage panels now also have a filter:

OG: Posts in current group Is equal to Current group

- this then shows only content relevant to the current group.

Have fun!

http://www.open4.org/bio/steve-purkiss - view my online profile
http://www.open4.org/site_tour/quick_tour - free blogs and clubs with 100% AdSense revenue going to you!

Anonymous’s picture

I'm also implementing the following so the 'no posts' error is not displayed:

http://drupal.org/node/38949

http://www.open4.org/bio/steve-purkiss - view my online profile
http://www.open4.org/site_tour/quick_tour - free blogs and clubs with 100% AdSense revenue going to you!

socialnicheguru’s picture

If i pass in "OG: gid" as an argument in the URL
can I use PHP code to set the filter: "OG: Post in specified group" to the argument that was passed in?

has anyone done this before?

Chris?

http://SocialNicheGuru.com
Delivering inSITE(TM), we empower you to deliver the right product and the right message to the right NICHE at the right time across all product, marketing, and sales channels.

najibx’s picture

First of all thank you for sharing.
I am having some difficulty getting it running as it suppose to be.

print panels_page_view_page(11);

This caused my panel being displayed "within" the normal group layout - content region, rather than taking over the whole page. It's like page with a page.

BTW, I am using
Drupal 5.x-dev (2007-Sep-30)
Organic groups 5.x-4.0-rc5
Panels 5.x-2.0-alpha11

-najibx-

henns20’s picture

the code that you mention to use-
problem:
embeds the whole my whole website page and panels view

----i figure i can get my sidebars to not show up- bu configuring the panel itself, but my header and otehr things that are not easily configurable- jus trying to make sure i am understanding this. thanks in advance.

henns20

henns20’s picture

henns20

najibx’s picture

I have no luck. Surfing all over ... Can you explain further?

I am now using the latest Panels 5.x-2.x-dev (2008-Mar-31). Og panel is available now. Where does it come into play.
What exactly I have put in the Context of this panel page?

i am still getting panel-page within my page and some errors

warning: Missing argument 2 for panels_page_view_page(), called in /home/igolfcommy/public_html/sites/all/themes/mytheme/node-og.tpl.php on line 6 and defined in /home/igolfcommy/public_html/sites/all/modules/panels/panels_page/panels_page.module on line 632.

socialnicheguru’s picture

I have been trying to find this.

og_panels is good, but it has not context tab so all the work you can do with regular panels 2 does not translate over when og-panels is used.

Thanks for the steps above.

Chris

http://SocialNicheGuru.com
Delivering inSITE(TM), we empower you to deliver the right product and the right message to the right NICHE at the right time across all product, marketing, and sales channels.

adamtyoung’s picture

How did you fix this? Which "new function" ? Thanks.

Adam Young
Vancouver, BC
http://www.adamtyoung.ca

james0007’s picture

i think implement the coding nicely it shows effect on whole result ,beware for any misuse coding and extra spaces in program Appartments for rent Spain

james0007’s picture

follow the way which you think about ur project ,designing parts...nice way to implement easiest way of coding which results gets u 100% satisfaction, Wheeled loaders

fehin’s picture

subscribing

imeugene72’s picture

Howdy! Would you mind if I share your blog with my facebook group? There’s a lot of people that I think would really enjoy your content. Please let me know. Thanks cheap cost health insurance low

igonzales1801’s picture

Another great post, I appreciate all the work you put into this site, helping out others with your fun and creative works. medicare advantage plans florida

casey_hamilton’s picture

I would like to thank you for the efforts you have made in writing this article. affordable health insurance for children