For my site I want to add to the Read more link the node title in bold. I could do that altering the node.module like this:

function node_link($type, $node = NULL, $teaser = FALSE) {
  $links = array();

  if ($type == 'node') {
    if ($teaser == 1 && $node->teaser && !empty($node->readmore)) {
      $links['node_read_more'] = array(
        'title' => "Read the rest of <b>$node->title</b>",
        'href' => "node/$node->nid",
        // The title attribute gets escaped when the links are processed, so
        // there is no need to escape here.
        'attributes' => array('title' => t('Read the rest of !title.', array('!title' => $node->title))),
        'html' => true
      );
    }
  }

  return $links;
}

Is there any posibility to do this at the theme level? I don't want to alter the core node.module and also I would not make a custom module only for this.

Thanks a lot,
Radu

Comments

VM’s picture

I'd look at the way ed_readmore.module module handles this and I believe fusion theme or adaptive theme also handles this through themesettings which may give you the guidance you require.

radu_d’s picture

Thanks a lot.
At the end I've made a custom module because I could not alter the link in the node links section with the ed_readmore.module