Welcome to Geeklog, Anonymous Friday, December 27 2024 @ 12:05 am EST
Geeklog Forums
RDF query
Status: offline
Filipino
Forum User
Chatty
Registered: 08/27/02
Posts: 50
I would like to increase the output on the server side of the RDF from the default 10 to 25 where can I do this.
On the client side is there anyway for a client to choose the amount of items they pick up and display i.e. 5, 10 upto the 25 we want to serve.
We are attempting to offer a news syndication to the news items placed online each day which could be upto 100.
Wayne
6
7
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
The RDF import does not limit the amount of headlines - it just reads all the headlines from the remote RDF file. You would have to add a counter to the RDF parser if you would like to limit the amount (see function COM_rdfEndElement() in lib-common.php).
The function for exporting an RDF feed from Geeklog is in function COM_exportRDF(), also in lib-common.php. There's a for loop there, limiting the number of exported headlines to 10:
for( $i = 1; $i <= $nrows AND $actualcount < 10; $i++ )
You may also need to change the "LIMIT 20" in the SQL request at the beginning of that function.
Actually, that code needs an overhaul: It picks the 20 latest stories from the database and then exports the first 10 of those to which an anonymous user has access to the RDF feed (that's what the for loop does). It would be better to do all that in the SQL request. Oh well ...
bye, Dirk
6
5
Quote
All times are EST. The time is now 12:05 am.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content