[Frage] News-System mit RealurlConf -> Probleme mit der Darstellung der Links TYPO3-Version: 6.1.7

  • reinki0013 reinki001...
    Jar Jar Binks
    0 x
    1 Beiträge
    0 Hilfreiche Beiträge
    04. 03. 2014, 08:19

    Hallo Zusammen,

    ich nutze das news_system (2.3.0) und ebenso den Realurl Configurator (1.0.3).
    Ich habe das Problem, dass ich auf meiner News-Listen-Übersicht zwar überall zu den einzelnen Beiträgen die Links habe, diese funktionieren auch, allerdings sieht die URL wirklich furchtbar aus, hier ein Beispiel:

    http://www.muster_platzhalter/newsarchiv/detail/?tx_news_pi1%5Bnews%5D=6&tx_news_pi1%5Bcontroller%5D=News&tx_news_pi1%5Baction%5D=detail&cHash=d4ceacc2b20e7d031fd6e3ec41ebee0f

    [u]Ich hätte aber gerne eher sowas in diese Richtung:[/u]

    http://www.muster_platzhalter.at/newsarchiv/detail/dies-ist-ein-musterartikel

    Ist das möglich, wenn ja wie gehe ich da am besten vor?
    Ich hänge euch hier noch meine aktuelle conf-Datei an:

    1. $TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array(
    2. 'init' => array(
    3. 'enableCHashCache' => 1,
    4. 'appendMissingSlash' => 'ifNotFile',
    5. 'enableUrlDecodeCache' => 1,
    6. 'enableUrlEncodeCache' => 1,
    7. 'respectSimulateStaticURLs' => 0,
    8. 'postVarSet_failureMode'=>'redirect_goodUpperDir',
    9. ),
    10. 'redirects_regex' => array (
    11.  
    12. ),
    13. 'preVars' => array(
    14. array(
    15. 'GETvar' => 'no_cache',
    16. 'valueMap' => array(
    17. 'no_cache' => 1,
    18. ),
    19. 'noMatch' => 'bypass',
    20. ),
    21. array(
    22. 'GETvar' => 'L',
    23. 'valueMap' => array(
    24. 'en' => '1',
    25. ),
    26. 'noMatch' => 'bypass',
    27. ),
    28. ),
    29. 'pagePath' => array(
    30. 'type' => 'user',
    31. 'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
    32. 'spaceCharacter' => '-',
    33. 'languageGetVar' => 'L',
    34. 'expireDays' => 7,
    35. 'rootpage_id' => 1,
    36. ),
    37.  
    38.  
    39. 'postVarSets' => array(
    40.  
    41. // EXT:news start
    42. 'news' => array(
    43. array(
    44. 'GETvar' => 'tx_news_pi1[action]',
    45. ),
    46. array(
    47. 'GETvar' => 'tx_news_pi1[controller]',
    48. ),
    49. array(
    50. 'GETvar' => 'tx_news_pi1[news]',
    51. 'lookUpTable' => array(
    52. 'table' => 'tx_news_domain_model_news',
    53. 'id_field' => 'uid',
    54. 'alias_field' => 'title',
    55. 'addWhereClause' => ' AND NOT deleted',
    56. 'useUniqueCache' => 1,
    57. 'useUniqueCache_conf' => array(
    58. 'strtolower' => 1,
    59. 'spaceCharacter' => '-',
    60. ),
    61. 'languageGetVar' => 'L',
    62. 'languageExceptionUids' => '',
    63. 'languageField' => 'sys_language_uid',
    64. 'transOrigPointerField' => 'l10n_parent',
    65. 'autoUpdate' => 1,
    66. 'expireDays' => 180,
    67. ),
    68. ),
    69. ),
    70. // EXT:news end
    71. '_DEFAULT' => array(
    72. // news archive parameters
    73. 'archive' => array(
    74. array(
    75. 'GETvar' => 'tx_ttnews[year]' ,
    76. ),
    77. array(
    78. 'GETvar' => 'tx_ttnews[month]' ,
    79. 'valueMap' => array(
    80. 'january' => '01',
    81. 'february' => '02',
    82. 'march' => '03',
    83. 'april' => '04',
    84. 'may' => '05',
    85. 'june' => '06',
    86. 'july' => '07',
    87. 'august' => '08',
    88. 'september' => '09',
    89. 'october' => '10',
    90. 'november' => '11',
    91. 'december' => '12',
    92. )
    93. ),
    94. ),
    95. // news pagebrowser
    96. 'browse' => array(
    97. array(
    98. 'GETvar' => 'tx_ttnews[pointer]',
    99. ),
    100. ),
    101. // news categories
    102. 'select_category' => array (
    103. array(
    104. 'GETvar' => 'tx_ttnews[cat]',
    105. ),
    106. ),
    107. // news articles and searchwords
    108. 'article' => array(
    109. array(
    110. 'GETvar' => 'tx_ttnews[tt_news]',
    111. 'lookUpTable' => array(
    112. 'table' => 'tt_news',
    113. 'id_field' => 'uid',
    114. 'alias_field' => 'title',
    115. 'addWhereClause' => ' AND NOT deleted',
    116. 'useUniqueCache' => 1,
    117. 'useUniqueCache_conf' => array(
    118. 'strtolower' => 1,
    119. 'spaceCharacter' => '-',
    120. ),
    121. ),
    122. ),
    123. array(
    124. 'GETvar' => 'tx_ttnews[swords]',
    125. ),
    126. ),
    127. ),
    128. ),
    129.  
    130. 'fileName' => array(
    131. 'defaultToHTMLsuffixOnPrev'=>0,
    132. 'index' => array(
    133. 'rss.xml' => array(
    134. 'keyValues' => array(
    135. 'type' => 100,
    136. ),
    137. ),
    138. 'rss091.xml' => array(
    139. 'keyValues' => array(
    140. 'type' => 101,
    141. ),
    142. ),
    143. 'rdf.xml' => array(
    144. 'keyValues' => array(
    145. 'type' => 102,
    146. ),
    147. ),
    148. 'atom.xml' => array(
    149. 'keyValues' => array(
    150. 'type' => 103,
    151. ),
    152. ),
    153. ),
    154. ),
    155. );


  • 1
  • ra-kue-lue ra-kue-lu...
    Padawan
    0 x
    36 Beiträge
    0 Hilfreiche Beiträge
    18. 03. 2014, 17:40

    Hallo,

    mit dieser realurl_conf.php:

    1. <?php
    2.  
    3. $TYPO3_CONF_VARS['FE']['addRootLineFields'].= ',tx_realurl_pathsegment';
    4. $TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array(
    5. 'pagePath' => array(
    6. 'type' => 'user',
    7. 'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
    8. 'spaceCharacter' => '-',
    9. 'languageGetVar' => 'L',
    10. 'expireDays' => '3',
    11. 'rootpage_id' => 1,
    12. 'firstHitPathCache' => 1
    13. ),
    14. 'init' => array(
    15. 'enableCHashCache' => TRUE,
    16. 'enableCHashCache' => 1,
    17. 'respectSimulateStaticURLs' => 0,
    18. 'enableUrlDecodeCache' => 1,
    19. 'enableUrlEncodeCache' => 1
    20. ),
    21. 'preVars' => array(
    22. 'GETvar' => 'L',
    23. 'valueMap' => array(
    24. 'de' => '0',
    25. ),
    26. 'noMatch' => 'bypass',
    27. ),
    28. 'GETvar' => 'no_cache',
    29. 'valueMap' => array(
    30. 'nc' => 1,
    31. ),
    32. 'noMatch' => 'bypass',
    33. ),
    34. ),
    35.  
    36. 'postVarSets' => array(
    37. '_DEFAULT' => array(
    38. // EXT:news start
    39. 'artikel' => array(
    40. /*
    41. *
    42. array(
    43. 'GETvar' => 'tx_news_pi1[action]',
    44. ),
    45. array(
    46. 'GETvar' => 'tx_news_pi1[controller]',
    47. ),
    48.  
    49. */
    50.  
    51. 'GETvar' => 'tx_news_pi1[day]',
    52. //'noMatch' => 'bypass',
    53. ),
    54. 'GETvar' => 'tx_news_pi1[month]',
    55. //'noMatch' => 'bypass',
    56. ),
    57. 'GETvar' => 'tx_news_pi1[year]',
    58. //'noMatch' => 'bypass',
    59. ),
    60.  
    61.  
    62. 'GETvar' => 'tx_news_pi1[news]',
    63. 'lookUpTable' => array(
    64. 'table' => 'tx_news_domain_model_news',
    65. 'id_field' => 'uid',
    66. 'alias_field' => 'title',
    67. 'addWhereClause' => ' AND NOT deleted',
    68. 'useUniqueCache' => 1,
    69. 'useUniqueCache_conf' => array(
    70. 'strtolower' => 1,
    71. 'spaceCharacter' => '-',
    72. ),
    73. 'languageGetVar' => 'L',
    74. 'languageExceptionUids' => '',
    75. 'languageField' => 'sys_language_uid',
    76. 'transOrigPointerField' => 'l10n_parent',
    77. 'autoUpdate' => 1,
    78. 'expireDays' => 180,
    79. ),
    80. ),
    81. ),
    82. // EXT:news end
    83. ),
    84. ),
    85.  
    86. );
    87.  
    88. ?>

    ... und diesem Typoskript im SetupTS:

    1. plugin.tx_news {
    2. settings {
    3. link {
    4. skipControllerAndAction = 1
    5. hrDate = 1
    6. hrDate {
    7. day = j
    8. month = n
    9. year = Y
    10. }
    11. }
    12. }
    13. }

    ... bekomme ich solche Links:

    http://www.meinedomain.de/aktuelles/details/artikel/17/3/2014/in-eigener-sache/

    Dies ist mehr oder weniger 1 zu 1 von der Doku von "news" übernommen.

    1. 'noMatch' => 'bypass',

    habe ich bei den Datumsfeldern auskommentiert, weil sonst nix angekommen wäre außer mehrfach Slashes.

    Hoffe, es hilft.

    Ralf

  • 1