Home « Server software «
Documentation: articles/feed.php
articles/feed.php - Provide full articles in the RSS 2.0 format
This script lists newest published articles, providing following information:- title - title of the article
- link - absolute url to fetch the article
- description - introduction of the particle, or the first part of the main text
- content:encoded - article description (up to 500 words)
- time - date and time of article last modification
- category - label of the section from where the article is originated
- image - absolute url to fetch a related image, if any
- comments - absolute url to expose related comments for a human being
Also, several meta-links are provided to help client software to do its job correclty:
- trackback:about - absolute url to fetch the article (=== link)
- trackback:ping - absolute url to post links to the article
- wfw:comment - absolute url to post a new comment
- wfw:commentRss - absolute url to expose related comments as RSS feed
Basically, these meta-links mean that YACS fully support trackback and Comment API specifications.
Additionally, the provided XML links to a cascaded style sheet, enabling further rendering enhancements.
To get a simpler regular feed go to feeds/rss_2.0.php.
If following features are enabled, this script will use them:
- compression - Through gzip, we have observed a shift from 4766 bytes to 1111 bytes,
- cache - Cache is supported through ETag and by setting Content-Length; Also, Cache-Control enables caching
This script is a reference file of this system.
Voir aussi:
- RSS 2.0 Specification
- Extending RSS 2.0 With Namespaces
- xmlns:content
- xmlns:trackback
- xmlns:wfw
- The Comment API
- FEED Validator for Atom and RSS
- RSS Flow, Measured
- Optimising your feed
Licence: GNU Lesser General Public License
Auteurs:
- Bernard Paques bernard.paques@bigfoot.com