What is rss? Really Simple Syndication (rss) is a xml file format designed to display news from particular Web sites without having to visit the site. You can receive news from any rss-enabled Web site by subscribing to their rss feed




Дата канвертавання25.04.2016
Памер16.39 Kb.
What is RSS?

Really Simple Syndication (RSS) is a XML file format designed to display news from particular Web sites without having to visit the site. You can receive news from any RSS-enabled Web site by subscribing to their RSS feed.

Typically, the feeds are displayed as a series of headlines and brief summaries with links to the source of the full text. Many Web sites offer several RSS feeds for specific sections or channels of their site.

RSS/Podcast Readers

Google Reader (requires account)
Google Personalized Homepage (requires account)
My Yahoo (requires account)
Bloglines (requires account)
NetNewsWire

Browsers that have RSS Support

Mozilla Firefox
Apple Safari
Internet Explorer 7 and higher

How to Subscribe to an RSS Feed


  1. Download and set up an RSS reader.

  2. Click on the feed link (usually an orange rectangle with the text "RSS" or "XML" in it).

  3. Copy the URL of the RSS file and paste the URL into your news reader.

Sitecore RSS

Sitecore's RSS Feed Item is very flexible. It can also be confusing the first time you use it. The purpose of this guide is to ease you into setting up your RSS feed.



  1. In the Content Editor under your Council home node, you will find an rss folder. Expand the folder to see the child objects.

  2. Under the rss folder, you should see a SampleData folder and a SampleFeed item. If you expand the SampleData folder, you will see 3 sample articles.



  3. Click on the SampleFeed item.

  4. The SampleFeed item shows which fields need to be populated with data:

    1. Syndication root – click on the Insert Link button on this field and you can select the parent node of the items you want to syndicate. The sample is pointing to your /rss/SampleData folder which means the child articles under that folder will be the items in the RSS. The syndication root can be anywhere in the hierarchy within your Council home node.

    2. Feed title – arbitrary name for your RSS feed.

    3. Feed description – the description of your RSS feed.

    4. Write author – select whether you want the author name associated with each syndicated item.

    5. Include updates – the default is "No". This indicates whether to use the item's LastModifiedDate (Yes) or the item's CreatedDate (No) as the RSS item's "pubDate". This is overridden if you use the Publish Date field (explained later).

    6. Maximum age – a string of numbers in timespan format (ddd.hh:mm:ss) indicating the max age of the items (age is dependent on the Include Updates field and the Publish Date field). For example, if you want to include all items under the syndication root for the last year, you would enter: 365.0:0:0

    7. Maximum item count – the maximum number of items to include in the feed.

    8. Recursive – whether to continue crawling down the content tree for items. For example, if you had an Archives folder under SampleData where you moved all your old items and didn't want it to be included in the feed, you would change Recursive to No.

    9. Title field – this is the name of the field in the items under the syndication root where the feed will retrieve the title for the RSS item. It’s important to understand that the fields under the Syndication Fields section and the Syndication Fields Extended section are all essentially pointers to field names. This is the part of the flexibility that can be confusing. For example, you may choose a syndication root that contains items that do not have a "Title" field – maybe they have a "Name" field instead; in which case, you would enter Name into the title field.



    10. Description field – the name of the field in the items under the syndication root where the feed will retrieve the RSS item's description. Normally, this is set to Description which can be found under the Metadata section. It is not recommended that you point this to the Body field as RSS readers are expecting simple text.

    11. Link field – the name of the field containing the link to include in the RSS item. If you leave this blank, then the RSS item's link will be the syndicated item. For example, if left blank, the 20090811_1 item under SampleData would have a link in the RSS of http://{your site}/rss/SampleData/20090811_1.aspx.

      Note: if the field name is not blank, make sure the field in the item is a link field (indicated by the Internal Link, External Link, etc. buttons directly above the field).

    12. Media enclosure field – the name of the field for the media to include in the RSS (usually a link to a MP3 file).

      Note: this field must be a link field (indicated by the Internal Link, External Link, etc. buttons directly above the field).

    13. Include in Feed Field – name of the field that indicates whether to include the item in the RSS feed. This field must be a checkbox field.

    14. Publish Date Field – name of the field that contains the publish date of the item. If this is not blank, it must be a reference to a Date field and it overrides the Include Updates field. This is very useful for backfilling items in your RSS since your created and modified dates will not match the intended publish dates of those items.

If you preview the SampleFeed item, you will see the RSS feed rendered in your browser. To look at the raw XML of the feed, view the Source. For Internet Explorer, click on the View menu and select Source. For Firefox, click on the View menu and select Page Source. In the raw XML, you can see how the field names in the RSS Feed item translate into the title, description, link, and pubDate elements.

Sample XML:









Council000 Blog

Monthly blog from Council000

http://cmsbeta.bsacouncil000.org/rss/SampleFeed.aspx

Tue, 11 Aug 2009 16:48:45 GMT




Tue, 11 Aug 2009 13:00:00 GMT

en

Copyright 2005 Sitecore A/S

Sitecore CMS: http://www.sitecore.net. Sitecore RSS module: Sitecore.Modules.RSS, Version=1.2.1.0, Culture=neutral, PublicKeyToken=null



August 2009 Blog

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam consequat placerat tincidunt. Sed ullamcorper arcu a neque dignissim in viverra nunc blandit. Sed eget diam lorem, quis ultricies libero. Nulla sed tellus in tortor dapibus.

http://cmsbeta.bsacouncil000.org/rss/SampleData/20090811_1.aspx

Tue, 11 Aug 2009 13:00:00 GMT




http://cmsbeta.bsacouncil000.org/rss/SampleData/20090811_1.aspx





July 2009 Blog

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam rhoncus, leo ut rutrum blandit, justo est malesuada dolor, a pellentesque dui nibh non dui. Sed.

http://cmsbeta.bsacouncil000.org/rss/SampleData/20090712_1.aspx

Sun, 12 Jul 2009 13:00:00 GMT

http://cmsbeta.bsacouncil000.org/rss/SampleData/20090712_1.aspx





June 2009 Blog

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam nisi nibh, feugiat quis vestibulum nec, imperdiet in odio. Integer velit libero, eleifend eu ullamcorper at, auctor vitae mauris. Quisque porttitor, velit at tincidunt fringilla, lectus nisi pharetra quam, quis consectetur.

http://cmsbeta.bsacouncil000.org/rss/SampleData/20090610_1.aspx

Wed, 10 Jun 2009 16:00:00 GMT




http://cmsbeta.bsacouncil000.org/rss/SampleData/20090610_1.aspx







База данных защищена авторским правом ©shkola.of.by 2016
звярнуцца да адміністрацыі

    Галоўная старонка