Closed (fixed)
Project:
Read More Link (Drupal 6 and earlier)
Version:
6.x-5.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
4 Aug 2010 at 15:17 UTC
Updated:
23 Dec 2010 at 03:10 UTC
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.
| Comment | File | Size | Author |
|---|---|---|---|
| ed_readmore-rss.patch | 1.64 KB | osopolar |
Comments
Comment #1
toomanypets commentedI applied your patch to 6.x-5.x-dev (2010-Jul-11) -- seems to be working fine. Thank you very much for the patch!
Comment #2
todd nienkerk commentedI will be committing a fix for this issue shortly. Thanks!