2016-05-24 2 views
0

私はかなり簡単なRealurl 2.0 + News設定を持っていますが、それでも動作しません。TYPO3、Realurl、News:私は正しくなっていません

私は

http://mydomain/list-news-page/single-news-page/news/single-news-title/News/?tx_news_pi1[action]=detail&cHash=5f96d3b6bebd41076d2f752ea4d068d4 

のようなものを取得し、私は/News/?tx_news_pi1[action]=detail&cHash=5f96d3b6bebd41076d2f752ea4d068d4部分を取り除くことを望みます。マイtypo3conf/realurl.autoconf.phpセット:

'postVarSets' => 
    array (
     '_DEFAULT' => 
       array (
       'news' => 
        array ( 
          array( 'GETvar' => 'tx_news_pi1[action]', ), 
          array( 'GETvar' => 'tx_news_pi1[controller]', 
      ), 
       0 => 
       array ( 
    'GETvar' => 'tx_news_pi1[news]', 
    'lookUpTable' => 
    array (
     'table' => 'tx_news_domain_model_news', 
     'id_field' => 'uid', 
     'alias_field' => 'title', 
     'useUniqueCache' => 1, 
     'useUniqueCache_conf' => 
     array (
     'strtolower' => 1, 
     'spaceCharacter' => '-', 

),),),),),) 

は、私はまた、

[globalVar = GP:L =0] 
.... 
config.defaultGetVars { 
    tx_news_pi1 { 
      controller=Notizie 
      action=Dettaglio 
    } 
} 
[global] 

を持っていますが、動作するようには思えません。

最後に、Enable automatic configuration [basic.enableAutoConf]の設定を解除すると、ページがレンダリングされません。

TYPO3 6.2.23。

答えて

1

コードにいくつかの誤りがあります。

第一

manualを見てみましょう:設定は

config.defaultGetVars { 
     tx_news_pi1 { 
       controller=News 
       action=detail 
     } 
} 

第二でなければなりませんので、アクション自体を翻訳しないでください。

あなたは

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, 
    ) 
) 
+0

@@ゲオルクのおかげを使用して、タイトルにニュースUIDをマッピングする必要があり、私はいくつかの暇な時間を見つけてチェックする必要があります。戻ってきます。 – mario

+0

@George私はちょうどあなたに感謝を忘れたと思う。実際に私はマニュアルを見て、それは働いた。今、私は7.6.21のニュース4.2.1にアップデートしています。最初の上記の問題をもう一度抱えています。イタリア語のdettaglioで、デフォルトの 'detail'の代わりにどのように話すURLを取得するのですか?ありがとう – mario

関連する問題