Page 1 of 1

Limit number of RSS elements

Posted: Mon Sep 16, 2013 8:47 pm
by Jingles Almendinger

How can I limit the number of RSS elements? I would like to get the first title, and place a button underneath it. However, the RSS has several items in it. Is there a way to limit the number of elements?


Limit number of RSS elements

Posted: Mon Sep 16, 2013 9:07 pm
by Maryna Brodina

Hello! If RSS doesn't support limits there are two ways:
1) Create Generic service https://getsatisfaction.com/apperyio/...
2) On service Success event using JS go through "data" variable where stores service response and select only elements you need to show.


Limit number of RSS elements

Posted: Tue Sep 17, 2013 7:01 pm
by Jingles Almendinger

Can you give an example of the second option?


Limit number of RSS elements

Posted: Tue Sep 17, 2013 9:19 pm
by Maryna Brodina

Hello! More information on services events is here http://docs.appery.io/documentation/u...
There is no sample because it depends on returned data (response structure). You would need to add custom code depending on that structure.