I've got Drupal setup with RSS support using Feedburner and the CleanFeeds module. All is well, except that the "read more" link appears twice in my RSS feed - once as a link, and once as text. Is there any way to remove the text version, as it's redundant?
We Rock Your Web Forum » Content Management Systems » Drupal
How to remove read more link in RSS?
(3 posts)-
Posted 2 years ago #
-
Posted 2 years ago
-
I've got code that works in Drupal 5, and I used the Drupal 5 to 6 module converter at http://boombatower.com/tools/deadwood to update the code to 6, but it doesn't seem to work. Maybe a Drupal expert out there can help?
There's two files in my "RSS Read More Remover" module:
rss_readmore_remover.module:
<?php
/* $Id$ */
function rss_readmore_nodeapi(&$node, $op, $a3 = NULL, $a4 = NULL)
{
switch($op)
{
case 'rss item':
if($node->type=='page')
{
$node->readmore = false;
}
break;
}
}
?>rss_readmore_remover.info:
; $Id$
name = RSS Read More Remover
description = Remove read more in RSS feed
core = 6.xPosted 2 years ago # -
Apply the latest .dev version of the 6.x "Read More Link" module at http://drupal.org/project/ed_readmore and you should be good to go. The patch on this page http://drupal.org/node/873708 was applied I believe.
Posted 1 year ago #