I configured some route enhancers for the news plugin:
routeEnhancers:
NewsPlugin:
type: Extbase
limitToPages: [3]
extension: News
plugin: Pi1
routes:
- { routePath: '/{news_title}', _controller: 'News::detail', _arguments: {'news_title': 'news'} }
- { routePath: '/tag/{tag_name}', _controller: 'News::list', _arguments: {'tag_name': 'overwriteDemand/tags'}}
- { routePath: '/category/{category_name}', _controller: 'News::list', _arguments: {'category_name': 'overwriteDemand/categories'}}
defaultController: 'News::list'
aspects:
news_title:
type: PersistedAliasMapper
tableName: 'tx_news_domain_model_news'
routeFieldName: 'path_segment'
For the category view I get now URL like www.mydomain.com/category/2/?cHash=1234567889
Threee questions: (1): Howto get rid of the cHash? This is not SEO friendly.
(2): Howto use the category title instead of the category uid? I tried to add an aspect:
category_name:
type: PersistedAliasMapper
tableName: 'sys_category'
routeFieldName: 'path_segment'
But without success, I got an unspecific error message.
(3) How to get a translated URL like www.mydomain.com/de/kategorie/...
?
Any hints welcome.