How can I print out a themed CCK node within a block? I can use node_load(), but of course this isn't themed. I tried using node_view() and theme_node(), but they incorrectly use the node.tpl.php instead of the node-content-xxxxxxxxxx.tpl.php.

Comments

pr1001’s picture

I have the same problem using flexinode (which I think is in CCK). Has anyone figured this out?

cameron tod’s picture

Are you sure you have named your template file correctly?

On my Drupal 5 installation, I have my file named node-cck_type_name.tpl.php, and themed output is generated.

interfaced’s picture

I have the same problem.

As well, when I try to do theme('node',$nid); it uses the right template, but the fields are blank except the title!

ncameron’s picture

After 20 mins of virtual head banging against the wall the answer is (drum roll please).... use node_view($nid). Easy when you know how...

--
Technology, Society and Economics in Latin America
http://altate.ch