Panels , OG & Views - is it possible to make a group home page panel ?

avior - January 18, 2008 - 11:55

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

Panels 2

mdixoncm - January 18, 2008 - 13:14

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

Thanks but it did not answer my question

avior - January 19, 2008 - 18:53

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

Same question

raymondllee - January 25, 2008 - 12:30

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.

I have managed to do it

avior - January 29, 2008 - 22:12

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

Could you explain a little more the process

loginsvariaditos - February 5, 2008 - 12:01

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

Thanks so much

subscribing

arnaud.ranson - February 12, 2008 - 23:48

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 ?

OG group page as panel

avior - February 15, 2008 - 08:59

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

Great step by step

avior - February 19, 2008 - 05:39

subscribing

activelyOUT - May 17, 2008 - 01:31

this is GREAT!

 
 

Drupal is a registered trademark of Dries Buytaert.