Hi There
I have trying to work with OG (5.0) views (1.6) and Panels (2.0 beta2) I want to make a group home page that displays a group node & two views (group Events & group News)

I have manged to do this when the arguments to the views are static
I want to make the arguments dynamic

for example
panle url : group_panel/10
will display the group node (nid=10) in the top panel , and group events & news in two more panels

i have set 2 views og_events , and og_news that accept argument (group nid)

what do i need to do in order to pass "10" ( group nid) to the views inside the panels

Thanks
Avior

Comments

mdixoncm’s picture

Have a look at the panels 2 module - its still in beta but will do everything you want and much more :)

http://drupal.org/project/panels

Mike,
Computerminds offer Drupal development, consulting and training

avior’s picture

Hi Mike
Thanks 4 the response , but i have a specific question - how to pass the arguments automaticlly to the panels , so sure i am using panels (2.0 beta 2)

Dev Art- Drupal Based Services and development

raymondllee’s picture

I have the same question, would be great to know how this is done. Probably like yourself, I've tried all the obvious permutations in settings between views,panels and panels views.

avior’s picture

Hi
I have managed to do it,
note there is a group : http://groups.drupal.org/panels i have found there a lot of good stuff

Have a look at
http://drupal.org/node/201915
and the great screencast here http://drupal.org/node/210208

I have used the method node override , and set an argument to the view and the group id is sent via "panel view" context
and it works great

Good luck

Dev Art- Drupal Based Services and development

loginsvariaditos’s picture

I have followed the other strings but still missing something. Could you explain how you did it a little more, please?

Thanks so much

arnaud.ranson’s picture

i've got exactly the same problem

i know how to override a node display or a node edit form btu impossible to apply that on an OG node

if someone did that, can he explain how ?

avior’s picture

Lets say we want group to be a class , and class has events
we want group page to be panel page that display the class and the evnets

I have created a content type called class
I have created a content type called event

In og - i have set the group home page to be "class"
I have created a view named "class_events" that accepts a OG: Group nid(s) as an argument, that filters only node type : event, providing page & block

Panles : ( i am not sure of the order , but the result is )

Panle views - create panel view by "class_events"
OG: Group nid(s) argument source : from context, required context : any context, panel argument :first

Panle Pages :
create panel page (with your layout)

set location to node/%
arguments : add node id and check "class" node type
layout : add "class_events" block

that's it - you have a class page that showing the class and the events

hope this wad helpfull

please tell me if this is working for you too , i will try to write a handbook page for this

Dev Art- Drupal Based Services and development

avior’s picture

socialnicheguru’s picture

this is GREAT!

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.