[英]TYPO3 tx_news: How to remove “news” prefix from RealURL path
I have a problem. 我有个问题。 Does anybody know how to get rid of the news prefix from url ?
有人知道如何摆脱url中的新闻前缀吗?
it is like this 就是这样
http://www.example.com/**news**/detail/title-of-news/
and I would like to be like this 我想像这样
http://www.example.com/detail/title-of-news/
Or replace news word with diffrent "article" for example. 或以不同的“文章”代替新闻词。
article
page article
页面上 fixedPostVars
(from RealURL docs) to shorten the url, read this answer to see the sample for tt_news
(sorry I haven't now any sample for News + RU, but there's no problem with tuning this): fixedPostVars
(来自RealURL文档)来缩短URL, 阅读此答案以查看tt_news
的示例(对不起,我现在没有News + RU的任何示例,但是对此进行调整没有问题): Sample: 样品:
'fixedPostVars' => array(
'123' =>array(
array(
'GETvar' => 'tx_ttnews[tt_news]',
'lookUpTable' => array(
'table' => 'tt_news',
'id_field' => 'uid',
'alias_field' => 'title',
'addWhereClause' => ' AND NOT deleted',
'useUniqueCache' => 1,
'useUniqueCache_conf' => array(
'strtolower' => 1,
'spaceCharacter' => '-',
),
),
),
),
),
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.