## Add this part at top in Neos Configuration/Settings.yaml
#-
# name: 'My.ProductModule'
# uriPattern: ''
# subRoutes:
# 'ProductSubroutes':
# package: 'My.ProductModule'
## Add this part at your plugin Configuration/Settings.yaml
-
name: 'Show Route'
uriPattern: '{node}/show/{--my_productmodule-plugin.product}.{@format}'
defaults:
'@package': 'TYPO3.Neos'
'@controller': 'Frontend\Node'
'@format': 'html'
'@action': 'show'
'--my_productmodule-plugin':
'@package': 'My.ProductModule'
'@controller': 'Product'
'@action': 'show'
'@format': 'html'
routeParts:
node:
handler: TYPO3\Neos\Routing\FrontendNodeRoutePartHandler
'--my_productmodule-plugin.product':
objectType: '\My\ProductModule\Domain\Model\Product'
uriPattern: '{title}'
appendExceedingArguments: TRUE
1 Like