Hi,
Digging into this module made a lot easier to custom node.
Now I can use node_view in various places and get back my themed content, but how can I have an alternative layout for a bloc or a panel ?
Thanks a lot for your support on this module.

Comments

jrglasgow’s picture

to display node content is a block you would put some php code in the block that looks something like this:

$node = node_load($nid);
node_invoke_nodeapi($node, 'alter', $teaser = TRUE); 
// contemplate adjusts the node information in the 'alter' stage
// if you just want to display the teaser set the teaser variable to TRUE, for the body set it to FALSE
print $node->body;

in theory this will work, I haven't tested this code.

tostinni’s picture

Status: Active » Fixed

Hi, Thank you very much for this answer and sorry for the delay, I've got a busy week ;)
I've tried node_load but of course forgetting nodeapi alter it didn't get all the cck fields.
Thanks a lot for the tip, I'll try this soon.
Regards.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.