【发布时间】:2016-11-24 08:44:38
【问题描述】:
我用 bootstrap_package 设置了一个typo3;使用扩展生成器创建我自己的扩展,并使用自动配置安装了 realURL,并希望它能正常工作。它没有。我尝试编写自己的 conf,但它被忽略了,但页面设置正在某个地方进行。
自动生成的文件已经有一个 no_cache 设置,但它没有被解释,我自己的设置也没有使用,但页面设置是。 有什么想法吗?
我的网址目前如下所示:
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',
),
),
),
),
),);
【问题讨论】:
标签: twitter-bootstrap typo3-7.6.x realurl typo3-extensions