TYPO3: Link to an Atom feed on every page

If your TYPO3 instance offers an Atom feed (or RSS), you should link to it in the HTML page <head> to enable feed autodiscovery by feed readers and podcast clients.

In your extension, add a feed page ID setting to the TypoScript constants:

#cat=project/links; type=int+; label=Podcast index page
pids.podcast = 61

In the TypoScript that generates the page, add the header as follows:

page = PAGE
page {
    headerData {
        30 = TEXT
        30 {
            typolink {
                parameter = t3://page?uid={$pids.podcast}&type=6
                returnLast = url
                forceAbsoluteUrl = 1
            wrap = <link rel="alternate" type="application/atom+xml" title="Podcast" href="|"/>

Note that we use page type 6 for atom feed output here, which is also configured via TypoScript.

The example here works fine with TYPO3 v8.

Written by Christian Weiske.

Comments? Please send an e-mail.