By patrickharris on
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
Same Problem
I have the same problem using flexinode (which I think is in CCK). Has anyone figured this out?
Are you sure you have named
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.
Same
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!
so simple when you know how
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
--
Neil Cameron