Jingles Almendinger
Posts: 0
Joined: Mon Sep 16, 2013 8:47 pm

Limit number of RSS elements

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?

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Limit number of RSS elements

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.

Jingles Almendinger
Posts: 0
Joined: Mon Sep 16, 2013 8:47 pm

Limit number of RSS elements

Can you give an example of the second option?

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Limit number of RSS elements

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.

Return to “Issues”