panels render

Events happening in the community are now at Drupal community events on www.drupal.org.
theduke's picture

PHP: Render node with proper layout in ajax request

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?

Read more
Subscribe with RSS Syndicate content