Skip to content

Instantly share code, notes, and snippets.

@aertmann
Created November 24, 2014 13:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aertmann/fc8c3fc72d64e1b10cea to your computer and use it in GitHub Desktop.
Save aertmann/fc8c3fc72d64e1b10cea to your computer and use it in GitHub Desktop.
###
# RSS Feed for articles
###
-
name: 'RSS Feed (page)'
uriPattern: '{node}/rss.xml'
routeParts:
'node':
handler: 'TYPO3\Neos\Routing\FrontendNodeRoutePartHandlerInterface'
defaults:
'@package': 'TYPO3.Neos'
'@controller': 'Frontend\Node'
'@action': 'show'
'@format': 'xml'
-
name: 'RSS Feed (root)'
uriPattern: '{node}rss.xml'
routeParts:
'node':
handler: 'TYPO3\Neos\Routing\FrontendNodeRoutePartHandlerInterface'
defaults:
'@package': 'TYPO3.Neos'
'@controller': 'Frontend\Node'
'@action': 'show'
'@format': 'xml'
@bwaidelich
Copy link

If you add

  routeParts:
    'node':
      options:
        onlyMatchSiteNodes: true

to the second route, you won't have duplicate content

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment