2
在我們的團隊中,我們有一個多語言,多域Typo3(6.2)安裝,包含約20個域。域的realurl配置正在工作。我的問題是,如果我想鏈接域之間,我只能得到http://www.domainA.com/?id=PAGEID的鏈接,而不是說網址。Typo3中的域與realurl之間的鏈接
頁面樹是這個樣子:
root
domainA
page1
domainB
page2
...
現在我想第1頁第2頁上的鏈接。
這是realurl_conf.php:
$languageMapping = array(
'en' => '0',
'de' => '1',
'fr' => '2',
...
);
$liveDomains = array(
"domainA.com" => "1",
"domainA.de" => "1",
"domainB.fr" => "2",
...
);
$liveDefault = array (
'init' =>
array (
'enableCHashCache' => true,
'appendMissingSlash' => 'ifNotFile,redirect[301]',
'adminJumpToBackend' => true,
'enableUrlDecodeCache' => true,
'enableUrlEncodeCache' => true,
'emptyUrlReturnValue' => '/',
),
'pagePath' =>
array (
'type' => 'user',
'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
'spaceCharacter' => '-',
'languageGetVar' => 'L',
'rootpage_id' => '1',
),
'fileName' =>
array (
'defaultToHTMLsuffixOnPrev' => 0,
'acceptHTMLsuffix' => 1,
'index' =>
array (
'print' =>
array (
'keyValues' =>
array (
'type' => 98,
),
),
),
),
'preVars' =>
array (
0 =>
array (
'GETvar' => 'L',
'valueMap' => $languageMapping,
'noMatch' => 'bypass',
),
),
"postVarSets" =>
array (
"_DEFAULT" =>
array (
"model" =>
array (
array (
"GETvar" => "model"
)
),
"modelName" =>
array (
array (
"GETvar" => "modelName"
)
),
),
),
);
foreach ($liveDomains as $domain => $rootpage_id) {
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']['www.'.$domain] = $liveDefault;
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']['www.'.$domain]["pagePath"]["rootpage_id"] = $rootpage_id;
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl'][$domain] = "www.".$domain;
}
在TS config.typolinkEnableLinksAcrossDomains = 1
啓用。
什麼是您的選項Page TSconfig樣子?你在每個根頁面上設置了「config.tx_realurl_enable = 1」嗎? – Michael