I have two read more links in my rss feeds (almost like #119749 but without using the excerpt module, therefore I opened a new issue).

One read more link comes from ed_readmore.module (see ed_readmore_nodeapi()). The other one comes from views render() function (in views/modules/node/views_plugin_row_node_rss.inc):

  if (!empty($item->readmore)) {
    $item_text .= '<p>'. l(t('read more'), 'node/'. $item->nid, array('absolute' => TRUE, 'attributes' => array('target' => '_blank'))) .'</p>';
  }

... its almost the same for node_feed() function (in node.module):

  if (!empty($item->readmore)) {
    $item->description .= '<p>' . l(t('read more'), 'node/' . $item->nid, array('absolute' => TRUE, 'attributes' => array('target' => '_blank'))) . '</p>';
  }

To remove the read more link we need to set $item->readmore or $node->readmore equal NULL or disable the ed_readmore link for rss feeds.

I wrote a patch that allows both options.

CommentFileSizeAuthor
ed_readmore-rss.patch1.64 KBosopolar

Comments

toomanypets’s picture

I applied your patch to 6.x-5.x-dev (2010-Jul-11) -- seems to be working fine. Thank you very much for the patch!

todd nienkerk’s picture

Title: Two read more links in rss feed » Two Read More links are appearing in RSS feeds
Assigned: Unassigned » todd nienkerk
Status: Active » Fixed

I will be committing a fix for this issue shortly. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.