Closed (fixed)
Project:
Panels
Version:
6.x-3.2
Component:
Panel pages
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
15 Jan 2010 at 01:09 UTC
Updated:
11 Feb 2010 at 21:40 UTC
Although it is an space to fast communications, first let me say that I'm extremely thankful for this incredible development.
The problem it's that I'm trying to call a "panel page" from my template, but most of the howtos/posts talk about non existing panel_page functions and I'm unable to clarify myself about how to deal with panel's API.
Is there any howto to load a panel page by code? Any equivalent to:
$node=node_load('$nid');
print (theme('node',$node);
Thanks in advance,
m.
Comments
Comment #1
mbria commentedI other words... seams to me that this is not possible any more with panels 6.x-3.2 (as far as any panels_page function still exist).
Source for Syntax: http://doxy.samboyer.org/panels2/panels__page_8module.html#33b5ad21aa212...
Comment #2
merlinofchaos commentedDue to the way the new system works, there isn't currently an easy API function to simply load and display a page manager page. These pages are not really meant to be embedded. (Neither were panel pages, really).
Perhaps embedding a mini panel would work better for you?
Comment #3
mbria commentedI was trying a panel-node approach, but if you think that a minipanel is the easiest way, I will give it a try.
Are the load and view hook calls documented somewhere?
Any RTFM or code reference to find and example?
Thanks for your help,
m.
Comment #4
merlinofchaos commentedYou would embed a mini panel the same way you would embed a block. A quick google search finds several resources on this. Remember that in a block the 'delta' will be the mini panel name.