I am trying to solve a problem which I think is for the pros here, rather easy to solve. But I cracked my head on that for more than four hours without solving it.

To display some news in a panel, while skipping the latest, I am using a view+taxonomy. Simple! My problem is the "Add new comment" and "AddToAny" on the bottom of each node. Space is limited there and I have to get rid of these two, on this particular place (everywhere else they are welcome).

I tried to print only certain parts from e.g.

$node->title;
$node->teaser;

by using views-theming and creating a views-xxx-tpl.php file. But it only works when I do a "print $node;". When I do a print $node->teaser; the screen remains blank without any error.

What am I doing wrong and how to get rid of that stuff from the bottom of the node?

Comments

nikitas’s picture

have u tried something like

echo substr($node->body,0,100) ?
Anonymous’s picture

There is a variable called something like $node->body instead of $node->teaser. Try that one and limit it to a number of characters.