[Frage] News Übersetzung funktioniert nur für 1 Sprache --> Realurl Problem [Gelöst] TYPO3-Version: 6.0.6


  • 0 x
    16. 01. 2014, 14:24

    Hallo zusammen,

    ich habe eine 3-sprachige-Seite (de -> default, en, cz) inkl. News.

    Die News Übersetzungen funktionieren im Englischen wunderbar.

    Im Tschechischen werden die News noch richtig gelistet (LIST), nur bei Klick auf die Detailseite (SINGLE) werde ich [b]auf die Startseite geleitet[/b].

    [b]Wenn ich Realurl abschalte funktioniert's[/b], kann mir jemand helfen?

    Grüße
    Stefan


  • 0 x
    16. 01. 2014, 14:27 - Lösung

    Hier meine RealUrl-Konfiguration:

    1. <?php
    2. $TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array(
    3. 'init' => array(
    4. 'enableCHashCache' => 1,
    5. 'appendMissingSlash' => 'ifNotFile',
    6. 'enableUrlDecodeCache' => 1,
    7. 'enableUrlEncodeCache' => 1,
    8. 'respectSimulateStaticURLs' => 0
    9. ),
    10. 'redirects_regex' => array(),
    11. 'preVars' => array(
    12. 'GETvar' => 'no_cache',
    13. 'valueMap' => array(
    14. 'no_cache' => 1
    15. ),
    16. 'noMatch' => 'bypass'
    17. ),
    18. 'GETvar' => 'L',
    19. 'valueMap' => array(
    20. 'de' => '0',
    21. 'en' => '1',
    22. 'cz' => '2'
    23. ),
    24. 'noMatch' => 'bypass'
    25. )
    26. ),
    27. 'pagePath' => array(
    28. 'type' => 'user',
    29. 'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
    30. 'spaceCharacter' => '-',
    31. 'languageGetVar' => 'L',
    32. 'expireDays' => 7,
    33. 'rootpage_id' => 1
    34. ),
    35. 'fixedPostVars' => array(
    36. 'news' => array(
    37. 'GETvar' => 'tx_ttnews[pointer]',
    38. 'valueMap' => array(),
    39. 'noMatch' => 'bypass'
    40. ),
    41. 'GETvar' => 'tx_ttnews[tt_news]',
    42. 'lookUpTable' => array(
    43. 'table' => 'tt_news',
    44. 'id_field' => 'uid',
    45. 'alias_field' => 'title',
    46. 'addWhereClause' => ' AND NOT deleted',
    47. 'useUniqueCache' => 1,
    48. 'useUniqueCache_conf' => array(
    49. 'strtolower' => 1,
    50. 'spaceCharacter' => '-'
    51. ),
    52. 'languageGetVar' => 'L',
    53. 'languageExceptionUids' => '',
    54. 'languageField' => 'sys_language_uid',
    55. 'transOrigPointerField' => 'l18n_parent',
    56. 'autoUpdate' => 1,
    57. 'expireDays' => 180
    58. )
    59. )
    60. )
    61. ),
    62. 'postVarSets' => array(
    63. '_DEFAULT' => array(
    64. //archive
    65. 'period' => array(
    66. 'condPrevValue' => -1,
    67. 'GETvar' => 'tx_ttnews[pS]'
    68. //'valueMap => array()
    69. ),
    70. 'GETvar' => 'tx_ttnews[pL]'
    71. //'valueMap => array()
    72. ),
    73. 'GETvar' => 'tx_ttnews[arc]',
    74. 'valueMap' => array(
    75. 'non-archived' => -1
    76. )
    77. )
    78. ),
    79. 'browse' => array(
    80. 'GETvar' => 'tx_ttnews[pointer]'
    81. )
    82. ),
    83. 'select' => array(
    84. 'GETvar' => 'tx_ttnews[cat]',
    85. 'lookUpTable' => array(
    86. 'table' => 'tt_news_cat',
    87. 'id_field' => 'uid',
    88. 'alias_field' => 'title',
    89. 'addWhereClause' => 'AND NOT deleted',
    90. 'useUniqueCache' => 1,
    91. 'useUniqueCache_conf' => array(
    92. 'strtolower' => 1,
    93. 'spaceCharacter' => '-'
    94. )
    95. )
    96. )
    97. ),
    98. 'article' => array(
    99. 'GETvar' => 'tx_ttnews[pointer]',
    100. 'valueMap' => array(),
    101. 'noMatch' => 'bypass'
    102. ),
    103. 'GETvar' => 'tx_ttnews[tt_news]',
    104. 'lookUpTable' => array(
    105. 'table' => 'tt_news',
    106. 'id_field' => 'uid',
    107. 'alias_field' => 'title',
    108. 'addWhereClause' => ' AND NOT deleted',
    109. 'useUniqueCache' => 1,
    110. 'useUniqueCache_conf' => array(
    111. 'strtolower' => 1,
    112. 'spaceCharacter' => '-'
    113. ),
    114. 'languageGetVar' => 'L',
    115. 'languageExceptionUids' => '',
    116. 'languageField' => 'sys_language_uid',
    117. 'transOrigPointerField' => 'l18n_parent',
    118. 'autoUpdate' => 1,
    119. 'expireDays' => 180
    120. )
    121. )
    122. ),
    123. 'details' => array(
    124. 'GETvar' => 'tx_kbeventboard_pi1[evt]',
    125. 'lookUpTable' => array(
    126. 'table' => 'tx_kbeventboard_events',
    127. 'id_field' => 'uid',
    128. 'alias_field' => 'eventname',
    129. 'maxLength' => 20,
    130. 'addWhereClause' => ' AND NOT deleted',
    131. 'strtolower' => 1,
    132. 'spaceCharacter' => '-'
    133.  
    134. )
    135. )
    136. )
    137. )
    138. ),
    139. // configure filenames for different pagetypes
    140. 'fileName' => array(
    141. 'defaultToHTMLsuffixOnPrev' => 1,
    142. 'index' => array(
    143. 'rss.xml' => array(
    144. 'keyValues' => array(
    145. 'type' => '100'
    146. )
    147. ),
    148. 'rss091.xml' => array(
    149. 'keyValues' => array(
    150. 'type' => '101'
    151. )
    152. ),
    153. 'rdf.xml' => array(
    154. 'keyValues' => array(
    155. 'type' => '102'
    156. )
    157. ),
    158. 'atom.xml' => array(
    159. 'keyValues' => array(
    160. 'type' => '103'
    161. )
    162. ),
    163. 'sitemap.xml' => array(
    164. 'keyValues' => array(
    165. 'type' => '776'
    166. )
    167. ),
    168. 'robots.txt' => array(
    169. 'keyValues' => array(
    170. 'type' => '201'
    171. )
    172. )
    173. )
    174.  
    175. )
    176. );
    177.  
    178. // RealURL - valueMap creation for tt-news
    179. for ($x = 1; $x <= 100; $x++) {
    180. $TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT']['fixedPostVars']['news'][0]['valueMap'][$x + 1] = $x;
    181. }
    182. // Definiert, dass sich die Singleanzeige der News auf folgenden Seiten befinden
    183. $TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT']['fixedPostVars']['23'] = 'news';
    184.  
    185. ?>


  • 1

  • 0 x
    16. 01. 2014, 14:27

    Hier meine RealUrl-Konfiguration:

    1. <?php
    2. $TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array(
    3. 'init' => array(
    4. 'enableCHashCache' => 1,
    5. 'appendMissingSlash' => 'ifNotFile',
    6. 'enableUrlDecodeCache' => 1,
    7. 'enableUrlEncodeCache' => 1,
    8. 'respectSimulateStaticURLs' => 0
    9. ),
    10. 'redirects_regex' => array(),
    11. 'preVars' => array(
    12. 'GETvar' => 'no_cache',
    13. 'valueMap' => array(
    14. 'no_cache' => 1
    15. ),
    16. 'noMatch' => 'bypass'
    17. ),
    18. 'GETvar' => 'L',
    19. 'valueMap' => array(
    20. 'de' => '0',
    21. 'en' => '1',
    22. 'cz' => '2'
    23. ),
    24. 'noMatch' => 'bypass'
    25. )
    26. ),
    27. 'pagePath' => array(
    28. 'type' => 'user',
    29. 'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
    30. 'spaceCharacter' => '-',
    31. 'languageGetVar' => 'L',
    32. 'expireDays' => 7,
    33. 'rootpage_id' => 1
    34. ),
    35. 'fixedPostVars' => array(
    36. 'news' => array(
    37. 'GETvar' => 'tx_ttnews[pointer]',
    38. 'valueMap' => array(),
    39. 'noMatch' => 'bypass'
    40. ),
    41. 'GETvar' => 'tx_ttnews[tt_news]',
    42. 'lookUpTable' => array(
    43. 'table' => 'tt_news',
    44. 'id_field' => 'uid',
    45. 'alias_field' => 'title',
    46. 'addWhereClause' => ' AND NOT deleted',
    47. 'useUniqueCache' => 1,
    48. 'useUniqueCache_conf' => array(
    49. 'strtolower' => 1,
    50. 'spaceCharacter' => '-'
    51. ),
    52. 'languageGetVar' => 'L',
    53. 'languageExceptionUids' => '',
    54. 'languageField' => 'sys_language_uid',
    55. 'transOrigPointerField' => 'l18n_parent',
    56. 'autoUpdate' => 1,
    57. 'expireDays' => 180
    58. )
    59. )
    60. )
    61. ),
    62. 'postVarSets' => array(
    63. '_DEFAULT' => array(
    64. //archive
    65. 'period' => array(
    66. 'condPrevValue' => -1,
    67. 'GETvar' => 'tx_ttnews[pS]'
    68. //'valueMap => array()
    69. ),
    70. 'GETvar' => 'tx_ttnews[pL]'
    71. //'valueMap => array()
    72. ),
    73. 'GETvar' => 'tx_ttnews[arc]',
    74. 'valueMap' => array(
    75. 'non-archived' => -1
    76. )
    77. )
    78. ),
    79. 'browse' => array(
    80. 'GETvar' => 'tx_ttnews[pointer]'
    81. )
    82. ),
    83. 'select' => array(
    84. 'GETvar' => 'tx_ttnews[cat]',
    85. 'lookUpTable' => array(
    86. 'table' => 'tt_news_cat',
    87. 'id_field' => 'uid',
    88. 'alias_field' => 'title',
    89. 'addWhereClause' => 'AND NOT deleted',
    90. 'useUniqueCache' => 1,
    91. 'useUniqueCache_conf' => array(
    92. 'strtolower' => 1,
    93. 'spaceCharacter' => '-'
    94. )
    95. )
    96. )
    97. ),
    98. 'article' => array(
    99. 'GETvar' => 'tx_ttnews[pointer]',
    100. 'valueMap' => array(),
    101. 'noMatch' => 'bypass'
    102. ),
    103. 'GETvar' => 'tx_ttnews[tt_news]',
    104. 'lookUpTable' => array(
    105. 'table' => 'tt_news',
    106. 'id_field' => 'uid',
    107. 'alias_field' => 'title',
    108. 'addWhereClause' => ' AND NOT deleted',
    109. 'useUniqueCache' => 1,
    110. 'useUniqueCache_conf' => array(
    111. 'strtolower' => 1,
    112. 'spaceCharacter' => '-'
    113. ),
    114. 'languageGetVar' => 'L',
    115. 'languageExceptionUids' => '',
    116. 'languageField' => 'sys_language_uid',
    117. 'transOrigPointerField' => 'l18n_parent',
    118. 'autoUpdate' => 1,
    119. 'expireDays' => 180
    120. )
    121. )
    122. ),
    123. 'details' => array(
    124. 'GETvar' => 'tx_kbeventboard_pi1[evt]',
    125. 'lookUpTable' => array(
    126. 'table' => 'tx_kbeventboard_events',
    127. 'id_field' => 'uid',
    128. 'alias_field' => 'eventname',
    129. 'maxLength' => 20,
    130. 'addWhereClause' => ' AND NOT deleted',
    131. 'strtolower' => 1,
    132. 'spaceCharacter' => '-'
    133.  
    134. )
    135. )
    136. )
    137. )
    138. ),
    139. // configure filenames for different pagetypes
    140. 'fileName' => array(
    141. 'defaultToHTMLsuffixOnPrev' => 1,
    142. 'index' => array(
    143. 'rss.xml' => array(
    144. 'keyValues' => array(
    145. 'type' => '100'
    146. )
    147. ),
    148. 'rss091.xml' => array(
    149. 'keyValues' => array(
    150. 'type' => '101'
    151. )
    152. ),
    153. 'rdf.xml' => array(
    154. 'keyValues' => array(
    155. 'type' => '102'
    156. )
    157. ),
    158. 'atom.xml' => array(
    159. 'keyValues' => array(
    160. 'type' => '103'
    161. )
    162. ),
    163. 'sitemap.xml' => array(
    164. 'keyValues' => array(
    165. 'type' => '776'
    166. )
    167. ),
    168. 'robots.txt' => array(
    169. 'keyValues' => array(
    170. 'type' => '201'
    171. )
    172. )
    173. )
    174.  
    175. )
    176. );
    177.  
    178. // RealURL - valueMap creation for tt-news
    179. for ($x = 1; $x <= 100; $x++) {
    180. $TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT']['fixedPostVars']['news'][0]['valueMap'][$x + 1] = $x;
    181. }
    182. // Definiert, dass sich die Singleanzeige der News auf folgenden Seiten befinden
    183. $TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT']['fixedPostVars']['23'] = 'news';
    184.  
    185. ?>

  • 1