本文介绍了typo3 7,bootstrap_package,RealUrl和自己的扩展名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用bootstrap_package设置了typo3;使用扩展程序构建器创建了我自己的扩展程序,并使用auto conf安装了realURL,并希望它能正常工作.它没有.我尝试编写自己的conf,但是它被忽略了,但是在某些地方进行了页面设置.

I setup a typo3 with the bootstrap_package; created with the extension builder my own extension and installed realURL with auto conf and hoped it would work. It did not. I tried to write my own conf but it is ignored but somewhere the page settings are beeing made.

自动生成的文件已经具有no_cache设置,但是不会被解释,也不会使用我自己的设置,但是会使用页面设置.有什么想法吗?

The auto generated file already had a no_cache setting but it isn't beeing interpreted and my own settings are also not used but the page settings are.any ideas?

我的网址当前看起来像这样:

my url currently looks like this:

http://localhost/test/sub/
?tx_test_shop[product]=1
&tx_test_shop[action]=show
&tx_test_shop[controller]=Product
&cHash=49495417a4d9eb25776b945d2123bbdf

我的设置: https://i.stack.imgur.com/HZbKC.jpg

完整文件:

$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl'] = array(
'http://localhost/' => array(
        'init'        =>
            array(
                'appendMissingSlash'  => 'ifNotFile,redirect',
                'emptyUrlReturnValue' => '/',
            ),
        'pagePath'    =>
            array(
                'rootpage_id' => '2',
            ),
        'fileName'    =>
            array(
                'defaultToHTMLsuffixOnPrev' => 0,
                'acceptHTMLsuffix'          => 1,
                'index'                     =>
                    array(
                        'print' =>
                            array(
                                'keyValues' =>
                                    array(
                                        'type' => 98,
                                    ),
                            ),
                    ),
            ),
        'preVars'     =>
            array(
                0 =>
                    array(
                        'GETvar'   => 'no_cache',
                        'valueMap' =>
                            array(
                                'nc' => '1',
                            ),
                        'noMatch'  => 'bypass',
                    ),
                1 =>
                    array(
                        'GETvar'   => 'L',
                        'valueMap' =>
                            array(
                                'de' => '1',
                            ),
                        'noMatch'  => 'bypass',
                    ),
            ),
        'postVarSets' => array(
            '_DEFAULT' => array(
                'p' => array(
                    array(
                        'GETvar' => 'tx_test_shop[product]',
                    ),
                    array(
                        'GETvar'   => 'tx_test_shop[controller]',
                        'valueMap' => array(
                            'Product' => 66,
                        ),

                    ),
                    array(
                        'GETvar'   => 'tx_test_shop[action]',
                        'valueMap' => array(
                            'list' => 'list',
                            'show' => 'show',
                        ),
                    ),
                ),
                'page'    => array(
                    0 =>
                        array(
                            'GETvar' => 'page',
                        ),
                ),
            ),
        ),
    ),);

推荐答案

我遇到了类似的问题:

I had a similar problem: TYPO3 - realurl is ignoring created/own extension

我所做的是:

  • 我停用并删除了该扩展名.
  • 已删除typo3temp和所有realurl表.
  • InstallTool中清除的缓存
  • 再次安装了扩展程序.

->现在一切都按预期进行

-> Now everything works as expected

*为防止万一,请先删除记录和表的副本.

*Please make copies of records and tables before removing them just in case.

这可能是由于安装顺序造成的:

It might be due to the installation order:

安装扩展的顺序很重要!请确保先安装RealURL扩展,然后安装引导程序包,然后再安装包含RealURL规则的其余扩展,包括新规则." (来源: https://aimeos.org/tips/tag/realurl/)

"The order you will install the extensions matters! Make sure the RealURL extension is installed first, then the bootstrap package and afterwards the rest of the extensions which contain RealURL rules including your new one." (Source: https://aimeos.org/tips/tag/realurl/ )

这篇关于typo3 7,bootstrap_package,RealUrl和自己的扩展名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-23 14:57