I just want to say first off that Panels 2 is awesome!
Thanks to all who created it. Although i was using the older version of panels, i don't completely understand how the 2 model works. (Yes, i am a non-programming n00b).
I had set up an og homepage view the 5x-1 version of panels and was just getting the hang of how to incorporate it into my og homepage by creating a node-group.tpl.php by using the code:
print panels_panels_page(10);
But now this doesn't seem to work with the new panels 2. when i go to an og homepage, i receive the error message,
Fatal error: Call to undefined function panels_panels_page() in /opt/lampp/htdocs/drupal/sites/all/themes/garland/node-group.tpl.php on line 26.
I imagine that there is a better way to do this using panels as a node, but if so i can't seem to wrap my little pea-brain around how to do this. Any hints would be much appreciated.
Thanks!
Comments
Comment #1
Veggieryan commentedthis has changed a bit...
but, you are in luck.. the id is a layout so $id='twocol' for example...
you will need to manually define the $content as explained below.
from panels2 on line 1230
merlinofchaos = genius.
;)
Comment #2
merlinofchaos commentedgracearoha: panels_page_page() is now panels_page_view_page() but is otherwise the same.
veggieryan's suggestion works as well, though it's more for customized layouts.
Comment #3
gracearoha commentedVeggieryan and Merlinofchaos,
Thanks so much for the help.
now i'm feeling the joy :)
Comment #4
(not verified) commentedComment #5
henns20 commentedAfter reading this http://drupal.org/node/166119 ...I understand the new function that is used, but when I use this function- i am having 2 major problems
1. it inserts my whole page in the group home page. I thought if I check the panels configuration page and checked "Disable Drupal blocks/regions" it would work better...but did not
2.also getting a warning
warning: Missing argument 2 for panels_page_view_page(), called in /Applications/MAMP/htdocs/frudea/sites/all/themes/salamander/node-your_new_frudea.tpl.php on line 3 and defined in /Applications/MAMP/htdocs/frudea/sites/all/modules/panels/panels_page/panels_page.module on line 610.
much appreciated if can help me out in any way:)
Jamie
Comment #6
merlinofchaos commentedI'm not sure I understand 1) at all. There's no reason any of the above code should do that. I'd say there's something oddly wrong, though. Maybe you're doing your print in the wrong place. For 2) the format for panels_page_view_page() has changed slightly; it now needs a second argument and that argument should be FALSE.
Comment #7
henns20 commentedyou da man...no really you are:) thanks for your help:)
to give you an update on problem (1) - i have no idea what was going on...but i think inserted something weird in the panels themselves..
Jamie
Comment #8
merlinofchaos commentedSo this is fixed now, right?
BTW, next time please submit a new issue, and reference prior issues.
Comment #9
henns20 commentedyes- thanks
sorry about that - will make sure i do that next time
Comment #10
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #11
najibx commentedstill need some help/explanation especially with the new panel & OG panel.
http://drupal.org/node/173473#comment-790583
Comment #12
moshe weitzman commentedWith og_panels.module enabled, click on the Pages tab in a group where you are a group admin and have the manage OG panel pages permission.
Comment #13
najibx commentedOh ok. Got it. However, I had satisfactory result by using Node override as mentioned in your website (http://www.tejasa.com/node/160). Great tutorial BTW.
i don't have to even do other thing i.e create blank views, create node-group.tpl.php, etc. Node override does it. mentioned above as well as in other posts.
With such fast rate development and improvement, I guess I got all mixed up with old stuff?
Even now, I am still confused.
If I still have node overide, it seems that it has the highest priority and disregard OG panel pages. (panel set as Home page)
If a specific group do not have pages set, it uses default views.
How can I have, all groups will use default panel page. Only selected group will have a special page content set via OG Panels to this specific group?
Comment #14
najibx commentedoh yeahh ... I got all mixed up. I think I am getting it now ...
Comment #15
socialnicheguru commentedsubscribing