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   1072 Views

Avatar
rceee

Community Member, 18 Posts

2 September 2009 at 11:00am

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

Community Member, 279 Posts

2 September 2009 at 6:31pm

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

Avatar
ramu

Community Member, 15 Posts

19 September 2009 at 10:13pm

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