Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
RSS Component in LS 3.0
curious_sam
In the developer guide(pdf) for Livesite 3.0, there is a section that tells about following a few steps for Atom and RSS components.I created a component for RSS feed first without folowing these stpes, and then in acordance with the steps mentioned.But I fail to make out the difference . Can anyone throw some light on it?
Find more posts tagged with
Comments
AlexC
As long as your component works you should be fine. The only thing that you HAVE to do is add tags to your component XML to force it to work only with a page that is either RSS or ATOM. If the page is not an XML page then the component will not show up correctly.
Here is a rough guide to creating an RSS/ATOM component.
1. Create an XML/XSL component
2. Add external that generates the data
3. Create XSL that converts it to RSS or ATOM format (like a skin, see ABC News component)
4. Create a new page
5. Set the properties of the page to use RSS or ATOM layout
6. Add your component
Optional step is to for the component to only be allowed on RSS or ATOM pages by setting the following property on the skin (a component can actually have both RSS and ATOM skin, again see ABC News component for the example):
For RSS 2.0:
< Stylesheet .... PageType="rss20" RequiredPageLayout="rss20-layout" ContentType="text/xml" >
Or for ATOM 1.0:
< Stylesheet .... PageType="atom10" RequiredPageLayout="atom10-layout" ContentType="text/xml" >
These Stylesheet changes are optional, but very helpful for anyone using your component.
Check the ABC News component, it even has the stylesheets needed for rss and atom.
Let me know if you need any more help.