Ok, i can place a node in a block, but i only see the content/images.

Where is the title from the node?

$title or $node-title not working.

Comments

breitner’s picture

In node.tpl.php:

<?php
global $node_title;
$node_title = $node->title;
if (isset($node->nodesinblock)) : ?>
<h1 class="page-title"><?php print $node_title; ?></h1>
<?php else: ?>
<?php if (!$page): ?>
<h2 class="node-title"><a href="<?php print $node_url; ?>"><?php print $title; ?></a></h2>
<?php endif; ?>
<?php endif; ?>

The code is not beautiful but rare! ;)

swentel’s picture

Status: Active » Closed (fixed)

Hehe, yeah strange, never experienced any problems though so far - but fine that it's working :)