1
votes

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.

2
At first I thought you could just hide the page via the "exclude form speaking url" checkbox in the page settings. But I don't think you can actually shorten that URL any further - that won't work, because then realurl will try to display the home page.deadfishli

2 Answers

1
votes

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"?

0
votes

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.