.. ================================================== .. FOR YOUR INFORMATION .. -------------------------------------------------- .. -*- coding: utf-8 -*- with BOM. .. include:: ../../../Includes.txt .. _rss: RSS --- Displaying a RSS feed is the same as a normal list view, just with a different template. Therefore you won't need any different configuration to e.g. excluded categories or configure the single view page. .. only:: html .. contents:: :local: :depth: 3 The template for the RSS feed can be found in the file Resources/Private/Templates/News/List.xml. The "magic" which uses the List.xml template instead of the List.html is the following configuration: .. code-block:: typoscript plugin.tx_news.settings.format = xml # If you want atom, use plugin.tx_news.settings.format = atom RSS feed by TypoScript ^^^^^^^^^^^^^^^^^^^^^^ A very simple way to generate the RSS feed is using plain TypoScript. All you need is to use the given TypoScript and adopt it to your needs. .. code-block:: typoscript [globalVar = TSFE:type = 9818] config { disableAllHeaderCode = 1 xhtml_cleaning = none admPanel = 0 debug = 0 disablePrefixComment = 1 metaCharset = utf-8 # before CMS 8 (adjust if using ATOM) additionalHeaders = Content-Type:application/rss+xml;charset=utf-8 # CMS 8 (adjust if using ATOM) additionalHeaders.10.header = Content-Type:application/rss+xml;charset=utf-8 absRefPrefix = {$plugin.tx_news.rss.channel.link} } pageNewsRSS = PAGE pageNewsRSS { typeNum = 9818 10 < tt_content.list.20.news_pi1 10 { switchableControllerActions { News { 1 = list } } settings < plugin.tx_news.settings settings { categories = 9 categoryConjunction = notor limit = 30 detailPid = 25 startingpoint = 24 format = xml } } } [global] This example will show all news records which don't have the category with the uid 9 assigned and are saved on the page with uid 24. The single view page is the one with uid 25. The RSS feed itself can be found with the link **/?type=9818**. RSS feeds by using a normal plugin ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Sometimes it is more convenient to generate the RSS feed using the normal plugin. The biggest advantage is that the complete configuration can be done within the backend without touching TypoScript. To create a RSS feed based on a plugin follow this steps: #. Create a new page. #. Add the news plugin and define the configuration you need. E.g. startingpoint, page with the single view, ... #. Define a new TypoScript template and use a code like below. **Very important** : Use config.absRefPrefix = http://www.yourdomain.tld/ to produce absolute urls for links and images! .. code-block:: typoscript page = PAGE page.10 < styles.content.get config { # deactivate Standard-Header disableAllHeaderCode = 1 # no xhtml tags xhtml_cleaning = none admPanel = 0 # define charset metaCharset = utf-8 # before CMS 8 (adjust if using ATOM) additionalHeaders = Content-Type:application/rss+xml;charset=utf-8 # CMS 8 (adjust if using ATOM) additionalHeaders.10.header = Content-Type:application/rss+xml;charset=utf-8 disablePrefixComment = 1 } # set the format plugin.tx_news.settings.format = xml # delete content wrap tt_content.stdWrap > tt_content.stdWrap.editPanel = 0 .. warning:: If your output still contains HTML code, please check your TypoScript (especially from css\_styled\_content or fluid\_styled\_content) as this HTML is produced there! Automatic RSS feeds - based on plugins ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ There are usecases where many different list views are needed and each list view should also get its own RSS feed **without any additional configuration**. The TypoScript code looks like this. .. code-block:: typoscript [globalVar = TSFE:type = 9818] lib.stdheader > tt_content.stdWrap.innerWrap > tt_content.stdWrap.wrap > tt_content.stdWrap.editPanel = 0 # get away