Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

RSS Atom feed pagination

Status
Not open for further replies.

damipera

Technical User
Dec 1, 2005
134
GB
hi guys,

i have been using this Rss2html script: and this is working fine but what i want is to also have a pagination on this .asp page. can you advice of ways to achieve this?

below is the atom sample:

Code:
<?xml version="1.0" encoding="utf-8" ?> 
 <feed xmlns:s="[URL unfurl="true"]http://feed.example.com/services"[/URL] xmlns="[URL unfurl="true"]http://www.w3.org/2005/Atom">[/URL]
  <title type="text">org select - with 'Bush' in name</title> 
  <id>[URL unfurl="true"]http://feed.example.com/orga/srvic/name/Bush</id>[/URL] 
  <rights type="text">Copyright 2015</rights> 
  <updated>2010-05-09</updated> 
  <category term="Search" /> 
  <logo>[URL unfurl="true"]http://www.org.uk/orgcservices/docs/logo.jpg</logo>[/URL] 
 <author>
  <name>org select</name> 
  <uri>[URL unfurl="true"]http://www.sampleorg.uk</uri>[/URL] 
  <email>wbsrvcs@example.com</email> 
  </author>

[COLOR=#CC0000]  <link rel="self" type="application/atom+xml" title="org select - Practices with 'Bush' in name" href="[URL unfurl="true"]http://feed.example.com/organisations/services/name/Bush?apikey=12345"[/URL] /> 
  <link rel="first" type="application/atom+xml" title="first" length="1000" href="[URL unfurl="true"]http://feed.example.com/organisations/services/name/Bush?apikey=12345&page=1"[/URL] /> 
  <link rel="next" type="application/atom+xml" title="next" length="1000" href="[URL unfurl="true"]http://feed.example.com/organisations/services/name/Bush?apikey=12345&page=2"[/URL] /> 
  <link rel="last" type="application/atom+xml" title="last" length="1000" href="[URL unfurl="true"]http://feed.example.com/organisations/services/name/Bush?apikey=12345&page=9"[/URL] />
[/color] 
  <tracking xmlns="[URL unfurl="true"]http://feed.example.com/services"><img[/URL] style="border: 0; width: 1px; height: 1px;" alt="" src="[URL unfurl="true"]http://webtrendsample.com/dfgfgh56dgd5/ddds.gif?fffuri=/organisations%2fservices%2fname%2fBush&amp;wt.js=no&amp;wt.cg_n=feed"/></tracking>[/URL] 
 <entry>
  <id>[URL unfurl="true"]http://feed.example.com/organisations/services/245645634</id>[/URL] 
  <title type="text">Bush Tree House</title> 
  <updated>2015-05-12T08:08:08Z</updated> 
  <link rel="self" title="Bush Tree House Surgery" href="[URL unfurl="true"]http://feed.example.com/organisations/services/24308?apikey=12345"[/URL] /> 
  <link rel="alternate" title="Bush Tree House Surgery" href="[URL unfurl="true"]http://www.org.uk/Srvcs/DR/Default.aspx?id=34343434"[/URL] /> 
 <content type="application/xml">
 <s:organisationSummary>
  <s:name>Bush Tree House</s:name> 
  <s:odsCode>JD12345</s:odsCode> 
 <s:address>
  <s:addressLine>Bush Tree House</s:addressLine> 
  <s:addressLine>John Street</s:addressLine> 
  <s:addressLine>Lirkam</s:addressLine> 
  <s:addressLine>Stockion</s:addressLine> 
  <s:postcode>DWQ4 22GW</s:postcode> 
  </s:address>
 <s:contact type="General">
  <s:telephone>111 2223333444</s:telephone> 
  </s:contact>
  </s:organisationSummary>
  </content>
  </entry>

 <entry>
.
.
.
.
 
Set a variable to the number of items to display then each time your display loop reaches that number, output a link with the start of the next block of items.

Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.
Webmaster Forum
 
hi chris, is it ok if you could give me some sample codes please? i don't know where to start. thanks.

(by the way, the red-colored bit in the above code is the pagination bit which i don't have a clue how to implement.)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top