RSS

How can I limit my RSS feed to the first few paragraphs of each item?

Scenario:
"I only want my RSS feed to show the first few paragraphs of my items because I want people to come to my site to read the full item. How can I do this?"

Solution:
Go to your Nucleus admin area and click on "Templates".
Manage your Templates in the Nucleus Admin Area
Click on the "Edit" link next to the template "feeds/rss20".
Edit your RSS2.0 template by clicking on the "Edit" link next to it.
Find this code in the Item Body section of the template:

<description><![CDATA[<%body%><%more%>]]></description>

Finding your code in the template's Item Body section.
Replace it with this code:

<description><![CDATA[<%body%>]]></description>

Delete the &lt;%more%&gt; part to remove the extended item from your RSS feed.

Original forum thread:
http://forum.nucleuscms.org/viewtopic.php?t=11637

section: RSS | submitted by Leng on 2006.Apr.02 | 2840 views

item rate
Total votes: 6 - Rating: 9.67

Please tell us how useful this answer was to you (0 = useless, 10 = very very helpful):

10