I use Panels as my primary means for overriding the node template. When I load the page I'm not seeing the auto-generated content links when I insert the Body pane into a Panels template. When I disable the panels template the content links show up. I've attached screenshots showing the differences.

Is this a bug or did I miss a configuration somewhere?

Modules used:
* Panels 6.x-3.9
* Panels Everywhere 6.x-1.1
* Chaos tool suite 6.x-1.8

CommentFileSizeAuthor
panels-enabled.png11.97 KBjdlind38
panel-disabled.png20.13 KBjdlind38

Comments

jdlind38’s picture

Category: support » bug
easyRider’s picture

Having same problem here, anyone can help ?

easyRider’s picture

Assigned: Unassigned » easyRider
Category: bug » support
Status: Active » Fixed

Solved with this code.
The problem is that panels doens have this context, so you have to get the node's content and print it.

In panels, create a new personalized content, and include this php code there.

$nid = 0;
if (arg(0) == 'node' && is_numeric(arg(1))) {
    $nid = arg(1);
}
$node = node_load($nid);
$node= node_build_content($node,FALSE, $page = TRUE, $lang);
print $node->content[body]['#value'];

Glad to help.

jdlind38’s picture

Category: support » feature
Status: Fixed » Active

I can confirm that the work around above works—thanks!

Is it possible to add this functionality to the module instead of pasting custom code?

demonrage’s picture

can this be a patch for panels or for the module itself, i have like 20 content types on my website and adding this to every content type is a real pain, also i'm afraid at some point of upgrading modules to not be compatible, thx in advance

demonrage’s picture

please do this as a patch or in next release, most of drupalers use panels as thier choce for orgnize and display content. thx