TYPO3 v 7.6.13 新聞5.3.1 realurl 2.1.5TYPO3擴展新聞和realurl
我已經添加了轉股票realurl配置:新聞到我的網站(手動realurl.conf)。
而且我的網址是讀爲:
www.example.com/news/story/news/detail/News/thisismystorytitle
我的頁面樹:
Root
-News (News - List)
--Story (News - Detail)
我realurl配置
<?php
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']=array (
'www.mysite.com' =>
array (
'init' =>
array (
'appendMissingSlash' => 'ifNotFile,redirect',
'emptyUrlReturnValue' => '/',
),
'pagePath' =>
array (
'rootpage_id' => '1',
),
'fileName' =>
array (
'defaultToHTMLsuffixOnPrev' => 0,
'acceptHTMLsuffix' => 1,
'index' =>
array (
'print' =>
array (
'keyValues' =>
array (
'type' => 98,
),
),
),
),
'preVars' => array(
array(
'GETvar' => 'L',
'valueMap' => array('en'=>0, 'cy'=>1),
'noMatch' => 'bypass',
),
), // end preVars
'postVarSets' =>
array (
'_DEFAULT' =>
array (
// EXT:news start
'news' => array(
array(
'GETvar' => 'tx_news_pi1[action]',
),
array(
'GETvar' => 'tx_news_pi1[controller]',
),
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,
),
),
),
// EXT:news end
),
),
),
);
感謝如果有人可以建議什麼是我的設置缺少或錯誤。
也許你可以告訴我們你認爲哪裏錯了? –
行動和控制器正在寫入的網址以及頁面? – Tom