简体   繁体   English

TYPO3 tx_news:如何从RealURL路径中删除“新闻”

[英]TYPO3 tx_news: How to remove “News” from RealURL path

I have configured RealURL and tx_news in TYPO3 6.x according to the basic setup from the manual. 我已根据手册中的基本设置在TYPO3 6.x中配置了RealURL和tx_news。

The generated URL for a single view is: 生成的单个视图的URL是:

http://www.domain.com/news/detail/News/title-of-news/

That's quite ok - but how to remove the second, uppercase "News" from the URL, to make it look like this?: 这很好 - 但是如何从URL中删除第二个大写的“新闻”,使它看起来像这样?:

http://www.domain.com/news/detail/title-of-news/

You have to switch from using postVarSets configuration (which uses a keyword in the URL to identify how to process the values in the URL that follow) to fixedPostVars configuration which is based on the page UID . 您必须从使用postVarSets配置(使用URL中的关键字来标识如何处理后续URL中的值)切换到基于页面UID的 fixedPostVars配置。 That's its slight drawback - you have to set the page UIDs in the RealURL config which means that it can be done only by an admin. 这是它的一个小缺点 - 您必须在RealURL配置中设置页面UID,这意味着它只能由管理员完成。

See the Advanced example in the manual that you posted yourself. 请参阅您自己发布的手册中的高级示例

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM