At the bottom of each node in teaser view in my Drupal 5.x site, there are links such as "Add new comment" and "Read more". These links seem to be generated by the following php in node.tpl.php:


<?php if ($links): 

endif;

?>

However, this limits my ability to separately theme the "Add new comment" and "Read more" links. How can I go about "exploding" the $links variable so that I can separately theme different parts of its output?

Tks, J.

Comments

yelvington’s picture

See http://api.drupal.org/api/function/theme_links/5.

You need to override this function by creating a new function in your template.php file. Examples are in the theme developer handbook.

esllou’s picture

an alternative is to build your own using php conditional code which is what I do in my node-forum.tpl.php