Closed kj-coupling closed 3 months ago
Hello @kj-coupling
Please use routeEnhancers
with s
as last letter and the world keeps turning again ;-)
From my side this ticket is solved
Hallo @froemken
I've noticed this mistake a while ago :)
`routeEnhancers: NewsPlugin: type: Extbase extension: News plugin: Pi1 routes:
routePath: '/' _controller: 'News::list' defaultController: 'News::list' aspects: news_title: type: PersistedAliasMapper tableName: 'tx_news_domain_model_news' routeFieldName: 'path_segment' category_title: type: PersistedAliasMapper tableName: 'sys_category' routeFieldName: 'path_segment'
requirements: news_title: '^[a-zA-Z0-9].$' category_title: '^[a-zA-Z0-9].$'`
I've already tried different ways to configure this routeEnhancher..but still. I get the /currentPage/News-title corrent but after the title ?tx_news_pi1%5Bday%5D=18&tx_news_pi1%5Bmonth%5D=4&tx_news_pi1%5Byear%5D=2024&cHash=377f097992c57c789e6d8493741906ec.
Hello @kj-coupling
please use three of these ticks ``` to format your multi-lined code. It's damn hard to read. Or use the code button here in editor. You want to format the dates in uri? Please adapt your RouteEnhancer as decribed here:
Hello @froemken ,
sorry for that.
I've tried your suggestion: https://docs.typo3.org/p/georgringer/news/11.4/en-us/Tutorials/BestPractice/Routing/Index.html#human-readable-dates
It works like expected in TYPO3 11.5 but not in TYPO2 12.4. I dont need this part of the URL at all tx_news_pi1%5Bday%5D=18&tx_news_pi1%5Bmonth%5D=4&tx_news_pi1%5Byear%5D=2024&cHash=377f097992c57c789e6d8493741906ec. I've rewrote the Enhancer in different ways, but still, page and title are changing, but the rest still the same.
Is there something to consider in TYPO3 12.4? I am not using any other Extension - its a fresh installed TYPO3.
thanks
@kj-coupling
I have no clue what you're doing. The URL looks like an archive URL. Please try default news plugin with list/detail and default news template and keep archive settings disabled. Is the URL now correct?
Stefan
Bug Report
Current Behavior I'm not really sure if this problem is actualy a bug or missconfiguration. I've installed the news extension as always and wrote some lines for routeEnhancer. It worked on all my other TYPO3 installation but all of the sudden it doesnt.
Expected behavior/output I want the route to be /list-view/detail-view/news-title. Its working fine, but after the "news-title" the URL continues with this parameters: {news-titel}tx_news_pi1%5Bday%5D=26&tx_news_pi1%5Bmonth%5D=3&tx_news_pi1%5Byear%5D=2024&cHash=79da57fe3879139b3f9347b045910432
Am I missing something? I've tried some alternatives but still the same. List/Detail and Title working fine but month,day,year and chash still there. Is there something i need to considert in this version on TYPO3 and news.
routeEnhancer: NewsPlugin: type: Extbase extension: News plugin: Pi1 routes:
routePath: '/' _controller: 'News::list' defaultController: 'News::list' aspects: news_title: type: PersistedAliasMapper tableName: 'tx_news_domain_model_news' routeFieldName: 'path_segment' category_title: type: PersistedAliasMapper tableName: 'sys_category' routeFieldName: 'path_segment'
requirements: news_title: '^[a-zA-Z0-9].$' category_title: '^[a-zA-Z0-9].$'
Environment
Thank you all in advance.