Email
Share

We Rock Your Web Forum » Content Management Systems » Drupal

How to remove read more link in RSS?

(3 posts)
  1. DrupalJunkie

    senior member
    Joined: Oct '09
    Posts: 77

    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?

    Posted 2 years ago #

  2. Posted 2 years ago
  3. Anonymous



    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.x

    Posted 2 years ago #
  4. Anonymous



    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 #

RSS feed for this topic

Reply

(required)

Allowed markup: BBcode blockquote code em strong ul ol li font strike center u hr.
You can also put code in between backtick ( ` ) characters.