Posted by theduke on April 6, 2012 at 1:44pm
Hi guys.
In an ajax request, I need to manually render several nodes which have a Panels Layout assigned.
I have tried the obvious:
$node = node_load(1);
$output = render(node_view($node));
But this gets me the plain node with it's field rendered, not the proper layout.
Any advice on this?
Comments
Try something like
Try something like this:
<?php$node = node_load(1);
$output = render(node_show($node));
?>
Sadly gets me the same as
Sadly gets me the same as render(node_view(...)).
I'm assuming that this might have to do with the page manager and context.