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

mbria’s picture

I 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).

   $mypanel=panels_page_load ('my-panel-title-OR-displayID',TRUE);

Source for Syntax: http://doxy.samboyer.org/panels2/panels__page_8module.html#33b5ad21aa212...

merlinofchaos’s picture

Due 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?

mbria’s picture

I 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.

merlinofchaos’s picture

Status: Active » Fixed

You 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.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.