Reputation: 213
I use TYPO3 8.7 and extension "news" version 6.1. I want to shorten the news article detail path. I already use this (the advanced example):
https://docs.typo3.org/typo3cms/extensions/news/AdministratorManual/BestPractice/Realurl/Index.html
Now I have:
article/title-of-the-news/
How to get rid of the "article" path? "article" is the title of the page where the news detail plugin is located.
Upvotes: 1
Views: 602
Reputation: 21
There are the hooks "encodeSpURL_postProc" and "decodeSpURL_preProc" in realurl. With them you can overwrite and remove parts from your url.
I guess you use "fixedPostVars"?
Upvotes: 1
Reputation: 802
Use the page, where you the news list is located, also as page for the news details. The news list will get overwritten with the news details.
I think there is no other solution, you can't have a page "article" for the news details but no part "article" in the url: TYPO3 has to know on which page it should display the news details.
Upvotes: 0