Closed (fixed)
Project:
Panels
Version:
6.x-2.x-dev
Component:
Plugins - content types
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Jan 2009 at 19:44 UTC
Updated:
28 Feb 2009 at 20:10 UTC
CCK fields need this added so that it recognizes the display setting for node:
File: node_content.inc
function panels_admin_node_content($node, $conf) {
+ if (!isset($node->build_mode)) {
+ $node->build_mode = NODE_BUILD_NORMAL;
+ }
// Remove the delimiter (if any) that separates the teaser from the body.
$node->body = str_replace('<!--break-->', '', $node->body);
Marking this CNW because merlinofchaos says we want to hook into CCK's ability to make the build mode selectable. This would let us use ones specific for panels.
Michelle
Comments
Comment #1
sunCommitted this fix to both 2.x and 3.x.