My page.tpl.php structure is:

    <li id="creative-events">
    <div class="info animate-in">
    <?php node_load($nid = 10); ?>
    <img class="sky animate-in" src="themes/bc/imagesx/bc_1.png" alt="Blue Sky" />
    <img class="balloon animate-in" src="themes/bc/imagesx/balloon.png" alt="Balloon" />

But not found my node. It's like this on Firebug:

<div class="info animate-in" style="">

I've used this codes and working!

$view_mode = 'teaser'; // Or 'full' for example

$node = node_load(1473);

$view = node_view($node, $view_mode);

print render($view);

But still want to know where I went wrong.

|improve this answer|||||
  • 5
    node_load just loads the node. No print or render – niksmac Dec 6 '12 at 12:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.