Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

RSS Feed only displaying three entries of many


Reply

3 Posts   1056 Views

Avatar
rceee

2 September 2009 at 11:00am Community Member, 18 Posts

Despite setting up my RSS feed in ArticleHolder as in the tutorial, RSS readers are only picking up three of the items, when there are more than that. Any ideas? Thank you

Avatar
baba-papa

2 September 2009 at 6:31pm Community Member, 279 Posts

The blog module has an RSS widget. Why don´t you use it?

Avatar
ramu

19 September 2009 at 10:13pm Community Member, 15 Posts

Hi rceee,

Try this.

   // Accepts an RSS feed URL and outputs a list of links from it
   function RestfulLinks($url){
      $delicious = new RestfulService($url);
      $limit = 3;
      $conn = $delicious->connect();
      $result = $delicious->getValues($conn, "item");
      return $result ->getRange(0,$limit);
   }

thisIsRam