-->

TYPO3 tx_news:如何删除RealURL路径“新闻”前缀(TYPO3 tx_news: H

2019-10-20 15:49发布

我有个问题。 是否有人知道如何摆脱来自URL的消息前缀?

就是这个样子

http://www.example.com/**news**/detail/title-of-news/

我想是这样的

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

或用不同势“文章”,例如更换消息字。

Answer 1:

  1. 将单一视图插件单独的article页面
  2. 使用fixedPostVars (从RealURL文档)缩短网址, 阅读这个答案 ,查看样品tt_news (对不起,我没有现在新闻+ RU任何样品,但与调整,该没有问题):

样品:

'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' => '-',
                ),
            ),
        ),
    ),
),


文章来源: TYPO3 tx_news: How to remove “news” prefix from RealURL path