Pure Software Knowledge Base Glossary    Contact Us
 
   
Browse by Category
Pure Software Knowledge Base > Lore > Features > Using RSS to retrieve article listings

Using RSS to retrieve article listings

As of version 1.3.0, Lore supports RSS syndication of articles. This means that you can use any RSS feed reader to get a listing of latest articles, highest rated articles, most popular articles, or a list of articles in any category of your knowledge base. Remember, an RSS feed is an XML repreentation of your articles and is not meant to be read directly through a web browser (you will probably get a blank page).

Lore supports the following versions of RSS:

  • 0.91
  • 0.92
  • 1.0
  • 2.0

Using the included RSS script:

In the base directory of your Lore installation, you will find a script named rss.php. When this script is called via HTTP, it will return RSS based on your input. The script takes three parameters in the query:

  • action - defines what content should be sent: Options are:
    • articles - retrieve articles from a given category
    • latest_articles - retrieve a list of the latest articles
    • highest_rated_articles - retrieve a list of the highest rated articles
    • most_viewed_articles - retrieve a list of the most viewed articles
  • category_id - the id of the category to retrieve articles from (only used when action = articles)
  • version - the RSS version to return results in. Options are:
    • 0.91
    • 0.92
    • 1.0
    • 2.0

The rss.php script can be accessed like any other URL:

http://example.com/kb/rss.php?action=articles&category_id=1&version=0.91

The above example will return a list of the articles in category number 1 (usually the root category), in RSS version 0.91 format.

Examples:

Return list of latest articles in RSS version 2.0
http://example.com/kb/rss.php?action=latest_articles&version=2.0

Return list of highest rated articles in RSS version 1.0
http://example.com/kb/rss.php?action=highest_rated_articles&version=1.0

Return list of articles in category 10 in RSS version 0.91
http://example.com/kb/rss.php?action=articles&category_id=10version=0.91


When an RSS feed reader asks for the location of the RSS feed, you would enter a URL similar to the examples above (but with your real domain name and path). Many popular open source portal systems (such as PHP-Nuke, PostNuke, etc.) support RSS feeds.

NOTE:

Though the RSS feed looks like a regular web address - it is not a web page!

An RSS feed is an XML representation of your articles - not HTML. It is not meant to be read through your web browser, and will most likely produce a blank page. You need to use an RSS reader to read it.


How helpful was this article to you?

Related Articles

Article components
The article components feature allows you to specify re-usable article...

 
How do I get the WYSIWYG article editor to work on Mac OSX?
The WYSIWYG article editor will not work with Internet Explorer on Mac....

 
Why do I get "404 File Not Found" errors on every article and category?
If you are receiving "404 file not found" errors with search...

 

User Comments

No comments have been posted.


powered by Lore