首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >typo3新闻现实overwriteDemand

typo3新闻现实overwriteDemand
EN

Stack Overflow用户
提问于 2015-04-24 12:12:16
回答 1查看 1.3K关注 0票数 1

我正在使用Typo3 7.1 +流体(最新集成与7.1),我是非常新的这个最新版本。

添加了新闻插件(Tx_news)和使用类别。类别是左菜单,并位于新闻列表页面以及新闻详细信息页面。

我长得像这样,

pi1%5BoverwriteDemand%5D%5Bcategories%5D=5&cHash=8aa8fd1fb7a5e47165a4e4acca3125e9

我不知道我在哪里做错了,我只想像这样,http://domain.com/de/sample/

如果有人解释的话,这真的很有帮助。提前谢谢。

我在urltoolconf_realurl.php中的Typoscript设置是,

代码语言:javascript
复制
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl'] = array ( 
    '_DEFAULT' => array (
        'init' => array (
            'enableCHashCache' => '1',
            'appendMissingSlash' => 'ifNotFile',
            'enableUrlDecodeCache' => '1',
            'enableUrlEncodeCache' => '1',
        ),
        'redirects' => array (
        ),
        'preVars' => array (
            '0' => array (
                'GETvar' => 'no_cache',
                'valueMap' => array (
                    'nc' => '1',
                ),
                'noMatch' => 'bypass'
            ),
            '1' => array (
                'GETvar' => 'L',
                'valueMap' => array (
                    'de' => '0',
                    'en' => '1',
                    'cs' => '2'
                ),
                'noMatch' => 'bypass'
            ),
            '2' => array (
                'GETvar' => 'lang',
                'valueMap' => array (
                    'de' => 'de',
                ),
                'noMatch' => 'bypass',
            ),
        ),
        'pagePath' => array (
            'type' => 'user',
            'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
            'spaceCharacter' => '-',
            'languageGetVar' => 'L',
            'expireDays' => '7',
        ),
        'fixedPostVars' => array (
        'newsDetailConfiguration' => array(
array(
'GETvar' => 'tx_news_pi1[action]',
'valueMap' => array(
'detail' => '',
),
'noMatch' => 'bypass'
),
array(
'GETvar' => 'tx_news_pi1[controller]',
'valueMap' => array(
'Legamaster' => '',
),
'noMatch' => 'bypass'
),
array(
'GETvar' => 'tx_news_pi1[news]',
'lookUpTable' => array(
'table' => 'tx_news_domain_model_news',
'id_field' => 'uid',
'alias_field' => 'title',
'addWhereClause' => ' AND NOT deleted',
'useUniqueCache' => 1,
'useUniqueCache_conf' => array(
'strtolower' => 1,
'spaceCharacter' => '-'
),
'languageGetVar' => 'L',
'languageExceptionUids' => '',
'languageField' => 'sys_language_uid',
'transOrigPointerField' => 'l10n_parent',
'autoUpdate' => 1,
'expireDays' => 180,
)
)
),
'newsCategoryConfiguration' => array(
array(
'GETvar' => 'tx_news_pi1[overwriteDemand][categories]',
'lookUpTable' => array(
'table' => 'sys_category',
'id_field' => 'uid',
'alias_field' => 'title',
'addWhereClause' => ' AND NOT deleted',
'useUniqueCache' => 1,
'useUniqueCache_conf' => array(
'strtolower' => 1,
'spaceCharacter' => '-'
)
)
)
),
'newsTagConfiguration' => array(
array(
'GETvar' => 'tx_news_pi1[overwriteDemand][tags]',
'lookUpTable' => array(
'table' => 'tx_news_domain_model_tag',
'id_field' => 'uid',
'alias_field' => 'title',
'addWhereClause' => ' AND NOT deleted',
'useUniqueCache' => 1,
'useUniqueCache_conf' => array(
'strtolower' => 1,
'spaceCharacter' => '-'
)
)
)
),
),
'postVarSets' => array (
            '_DEFAULT' => array (
                'article' => array(
                    array(
                            'GETvar' => 'tx_news_pi1[action]',
                            'noMatch' => 'bypass'
                    ),
                    array(
                        'GETvar' => 'tx_news_pi1[controller]',
                        'noMatch' => 'bypass'
                    ),
                    array(
                        'GETvar' => 'tx_news_pi1[year]',
                    ),
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-04-24 13:31:36

试着添加

代码语言:javascript
复制
'fixedPostVars' => array(
...
                '35' => 'newsDetailConfiguration', #change you id page with news detail plugin
                '79' => 'newsTagConfiguration', # change you id page with news tag plugin if need
                #'69' => 'newsCategoryConfiguration', # change you id page with news category plugin
),
票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/29847248

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档