I wrote a custom Aspect for better doing better routes in my TYPO3 project. And use it within my config.yaml at the end, configuring the URL-generation for my TXPO3-extension.
...
PsoabillingPlugin:
type: Extbase
extension: Psoabilling
plugin: Pi1
routes:
- routePath: '/banddetail/{bandname}'
_controller: 'Band::showband'
_arguments:
name: bandname
defaultController: 'Band::listyear'
aspects:
bandname:
type: BandAndYearMapper
But, the URLs are not processed. They stay the same as without the configuration. (btw: the additional configuration for EXT:news above my configuration does work as expected!)
Any thoughts? Thanx EnzephaloN
Got it! I was wrong about the mapping of REPLACEMENT: ARGUMENTFIELD... The URL-argument is tx_psoabilling[band] and not [name]...
Must be:
...
PsoabillingPlugin:
type: Extbase
extension: Psoabilling
plugin: Pi1
routes:
- routePath: '/banddetail/{bandname}'
_controller: 'Band::showband'
_arguments:
bandname: band
defaultController: 'Band::listyear'
aspects:
bandname:
type: BandAndYearMapper
But sadly now I got a new problem. The cHash is attached to the url and the link does not work because of a cHash-comparsion-error. But thats another post...