|
You are here: Home / Documentation / Sharing Content With RSS |
Sharing Content With RSSBuilding an RSS feed for your own appsSay you've created a custom data collection for your Sitellite-powered web site, and now you want to let your main site syndicate it. Say it's a collection called people_i_meet that keeps a list of all the new people you meet day-to-day.Here is some simple code to create a list of these folks, linking back to their own special page on your web site. First, the box, which you can save to inc/app/example/boxes/peoplefeed/index.php <?phpNext, the template, which you can save to inc/app/example/html/peoplefeed.spt: <?xml version="1.0" encoding="iso-8859-1"?>You should now be able to view your newsfeed RSS output at the following URL: http://www.yourWebSite.com/index/example-peoplefeed-actionAnd that's all there is to it. There's much more you can add to the RSS template, but the template above should be sufficient for a simple newsfeed. For more information, you can read the official RSS specification at the following URL: http://web.resource.org/rss/1.0/spec Some additional RSS extensions or compatible specifications are also available here: Dublin Core http://dublincore.org/ Resource Description Framework (RDF) http://www.w3.org/RDF/ Syndication Module http://web.resource.org/rss/1.0/modules/syndication/ Admin Module http://webns.net/mvcb/ Creative Commons Module http://web.resource.org/rss/1.0/modules/cc/ Page 1: RSS, which stands for Rich Site ... |
|
Copyright © 2008, SIMIAN systems Inc. All rights reserved. Privacy policy Some of the icons on this site were created by the Gnome Project. |