CCK fields do not appear in themed node

laken - December 1, 2008 - 03:01
Project:InsertNode
Version:5.x-1.1
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

Thanks for a helpful module, but it seems that even with the default [node:123] syntax, only the body field is appearing in final output. See first screenshot for the full page view of the node I'm trying to insert (node/386) - there are 2 cck fields and the original body field.

In the node I'm inserting into, I have [node:386] - the result is that the node renders with only the body field, not the 2 other cck fields (see second screenshot).

Am I missing something here?

AttachmentSize
page view of CCK node I want to insert33.01 KB
final output w/inserted node46.14 KB

#1

nbchip - January 23, 2009 - 17:41

same problem.
subscribe

#2

capellic - February 13, 2009 - 19:02

Count me in. I've gotten around this issue by using Insert View using Drupal 6 and Views 2. I don't know if this works for Drupal 5, but I suspect it does. The insert view syntax will be different at the very least.

1. Setup a view that takes the Node ID as an argument.

2. Set the Row Style to "Node".

3. No need to add a Page or Block display as using the default will simplify the filter code.

4. Be sure to add the Insert View code to your input filter

5. Add the following to the body of the parent node: [view:insert_node==59]
"insert_node" is the name of my view. 59 is the Node ID of the node I am inserting.

http://drupal.org/project/insert_view
http://drupal.org/project/views

#3

zlex - March 1, 2009 - 21:46

The insert_view method works for 5.x, but you have to provide a page view.

#4

Oliver Coleman - March 9, 2009 - 03:04

See http://drupal.org/node/395608 for a patch for this.

 
 

Drupal is a registered trademark of Dries Buytaert.