Didn't work.

Into /WEB-INF/velocity/feeds.vm I changed the RSS entries macro for
the following:

#macro(showEntriesRSS20 $entries)
 #foreach($entry in $entries)
 <item>
   <guid isPermaLink="true">$entry.permalink</guid>
   <title>$utils.escapeXML($utils.removeHTML($entry.title))</title>
   <dc:creator>$utils.escapeXML($entry.creator.fullName)</dc:creator>
   <link>$entry.permalink</link>
   #if( $entry.link && !$entry.link.trim().equals("") )
   <source 
url="$utils.escapeXML($entry.link)">$utils.escapeXML($entry.link)</source>
   #end
   <pubDate>$utils.formatRfc822Date($entry.pubTime)</pubDate>
   <category>$utils.escapeXML($entry.category.name)</category>
#foreach($tag in $entry.tags)
   <category>$utils.escapeXML($tag.name)</category>
#end
   <description>$entry.summary <p><a href="$entry.permalink">[Leer
Mas]</a></p></description>
   #set( $mc_url = $entry.findEntryAttribute("att_mediacast_url") )
   #set( $mc_type = $entry.findEntryAttribute("att_mediacast_type") )
   #set( $mc_length = $entry.findEntryAttribute("att_mediacast_length") )
   #if( $mc_url && $mc_length && $mc_type )
      <enclosure url="$mc_url" type="$mc_type" length="$mc_length" />
      #set($mc_url = false) #set($mc_type = false) #set($mc_length = false)
   #end
   #if( $website.allowComments )
   <comments>$utils.textToHTML($entry.commentLink)</comments>
   #end
 </item>
 #end
#end

And I did the same into:
/WEB-INF/velocity/templates/feeds/site-entries-rss.vm
/WEB-INF/velocity/templates/feeds/weblog-entries-rss.vm

Is there something I forgot?



raúl.
http://www.transitorio.cl/

On 6/13/07, Dave <[EMAIL PROTECTED]> wrote:
On 6/11/07, Raúl Fuenzalida <[EMAIL PROTECTED]> wrote:
> I would like the rss feed display just the summary when available. How? 
thanks.

You'll have to make some Velocity code changes to do that.

Roller feeds are generated by the templates in
WEB-INF/velocity/templates/feeds, which call macros in
WEB-INF/velocity/templates/feeds.vm. Those are the files you need to
modify.

- Dave

Reply via email to