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.

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:

plugin.tx_news.settings.format = xml

Support for Atom

The Atom format is supported since version 2.2.0. All you need to do is change the format to atom:

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.

[globalVar = TSFE:type = 9818]
config {
    disableAllHeaderCode = 1
    xhtml_cleaning = none
    admPanel = 0
    metaCharset = utf-8
    additionalHeaders = Content-Type:text/xml;charset=utf-8
    disablePrefixComment = 1
}

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.

Troubleshooting

Entity ‘nbsp’ not defined

If you are getting this error, the easiest thing is to replace the character by using TypoScript:

pageNewsRSS.10.stdWrap.replacement {
10 {
search = &nbsp; replace = &#160;

}

}