Last active
August 29, 2015 14:01
-
-
Save bwaidelich/a75ed553fa3e0ffc1933 to your computer and use it in GitHub Desktop.
Example routing setup for the "Flickr" Plugin of the TYPO3.NeosDemoTypo3Org package
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- | |
name: 'Flickr: User stream' | |
uriPattern: '{node}/user/{--typo3_neosdemotypo3org-flickr.userId}.html' | |
defaults: | |
'@package': 'TYPO3.Neos' | |
'@controller': 'Frontend\Node' | |
'@action': 'show' | |
'@format': 'html' | |
'--typo3_neosdemotypo3org-flickr': | |
'@package': 'TYPO3.NeosDemoTypo3Org' | |
'@controller': 'Flickr' | |
'@action': 'userstream' | |
routeParts: | |
'node': | |
handler: 'TYPO3\Neos\Routing\FrontendNodeRoutePartHandlerInterface' | |
'--typo3_neosdemotypo3org-flickr.userId': | |
toLowerCase: false | |
- | |
# This is only added so that the back link from the user stream does not contain the plugin arguments | |
name: 'Flickr: Tag stream' | |
uriPattern: '{node}.html' | |
defaults: | |
'@package': 'TYPO3.Neos' | |
'@controller': 'Frontend\Node' | |
'@action': 'show' | |
'@format': 'html' | |
'--typo3_neosdemotypo3org-flickr': | |
'@package': 'TYPO3.NeosDemoTypo3Org' | |
'@subpackage': '' | |
'@controller': 'Flickr' | |
'@action': 'tagstream' | |
routeParts: | |
'node': | |
handler: 'TYPO3\Neos\Routing\FrontendNodeRoutePartHandlerInterface' |
Remove ".html" from the uriPatterns if that's your preferred URI scheme
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Include this before the default neos routes