RealURL und TD Calendar (td_calendar)

  • andy-man andy-man
    Sternenflotten-Admiral
    0 x
    158 Beiträge
    0 Hilfreiche Beiträge
    20. 08. 2012, 10:04

    Hallo,
    ich habe den td_calendar installiert und wollte bei der Detailansicht auch suchmaschinenoptimierte URL's angezeigt bekommen. Dafür habe ich die mitgelieferten Beispiele mal in die realurl_conf.php eingetrgen, aber leider gab es keine Änderungen.

    http://www.domäne.de/veranstaltungen/details.html?tx_tdcalendar_pi1[year]=2012&tx_tdcalendar_pi1[month]=12&tx_tdcalendar_pi1[day]=12&tx_tdcalendar_pi1[event]=1&cHash=21ea2ad135692c40af461c507229a738

    Das erste Beispiel war:

    1. // EXAMPLE 1
    2. // Realurl - Configuration for td calendar by Holger Hinkerohe
    3. // with title rendering (like tt_news)
    4. 'date' => array(
    5. 'GETvar' => 'tx_tdcalendar_pi1[year]',
    6. ),
    7. 'GETvar' => 'tx_tdcalendar_pi1[month]',
    8. ),
    9. 'GETvar' => 'tx_tdcalendar_pi1[day]',
    10. ),
    11. 'GETvar' => 'tx_tdcalendar_pi1[event]',
    12. 'lookUpTable' => array (
    13. 'table' => 'tx_tdcalendar_events',
    14. 'id_field' => 'uid',
    15. 'alias_field' => 'title',
    16. 'addWhereClause' => ' AND NOT deleted',
    17. 'useUniqueCache' => '1',
    18. 'useUniqueCache_conf' => array (
    19. 'strtolower' => '1',
    20. 'spaceCharacter' => '-',
    21. ),
    22. ),
    23. ),
    24.  
    25. ),
    26. 'category' => array(
    27. 'GETvar' => 'tx_tdcalendar_pi1[category]',
    28. 'lookUpTable' => array (
    29. 'table' => 'tx_tdcalendar_categories',
    30. 'id_field' => 'uid',
    31. 'alias_field' => 'title',
    32. 'addWhereClause' => ' AND NOT deleted',
    33. 'useUniqueCache' => '1',
    34. 'useUniqueCache_conf' => array (
    35. 'strtolower' => '1',
    36. 'spaceCharacter' => '-',
    37. ),
    38. ),
    39. ),
    40. ),
    41. 'organizer' => array(
    42. 'GETvar' => 'tx_tdcalendar_pi1[organizer]',
    43. 'lookUpTable' => array (
    44. 'table' => 'tx_tdcalendar_organizer',
    45. 'id_field' => 'uid',
    46. 'alias_field' => 'name',
    47. 'addWhereClause' => ' AND NOT deleted',
    48. 'useUniqueCache' => '1',
    49. 'useUniqueCache_conf' => array (
    50. 'strtolower' => '1',
    51. 'spaceCharacter' => '-',
    52. ),
    53. ),
    54. ),
    55. ),
    56. 'location' => array(
    57. 'GETvar' => 'tx_tdcalendar_pi1[location]',
    58. 'lookUpTable' => array (
    59. 'table' => 'tx_tdcalendar_locations',
    60. 'id_field' => 'uid',
    61. 'alias_field' => 'location',
    62. 'addWhereClause' => ' AND NOT deleted',
    63. 'useUniqueCache' => '1',
    64. 'useUniqueCache_conf' => array (
    65. 'strtolower' => '1',
    66. 'spaceCharacter' => '-',
    67. ),
    68. ),
    69. ),
    70. ),

    und das zweite

    1. // EXAMPLE 2
    2. // Realurl - Configuration for td calendar by Thomas Dudzak
    3. // with numeric rendering of variables
    4. // Configuration for td calendar
    5. 'cdate' => array(
    6. 'GETvar' => 'tx_tdcalendar_pi1[year]',
    7. ),
    8. 'GETvar' => 'tx_tdcalendar_pi1[month]',
    9. 'valueMap' => array(
    10. 'january' => '1',
    11. 'february' => '2',
    12. 'march' => '3',
    13. 'april' => '4',
    14. 'may' => '5',
    15. 'june' => '6',
    16. 'july' => '7',
    17. 'august' => '8',
    18. 'september' => '9',
    19. 'october' => '10',
    20. 'november' => '11',
    21. 'december' => '12',
    22. ),
    23. ),
    24. 'GETvar' => 'tx_tdcalendar_pi1[day]',
    25. ),
    26. ),
    27. 'ccat' => array(
    28. 'GETvar' => 'tx_tdcalendar_pi1[category]',
    29. ),
    30. ),
    31. 'cevent' => array(
    32. 'GETvar' => 'tx_tdcalendar_pi1[event]',
    33. ),
    34. ),
    35. 'corganizer' => array(
    36. 'GETvar' => 'tx_tdcalendar_pi1[organizer]',
    37. ),
    38. ),
    39. 'clocation' => array(
    40. 'GETvar' => 'tx_tdcalendar_pi1[location]',
    41. ),
    42. ),

    Wie kann ich das anpassen, damit die Detailseite schön aussehen?

    Danke andy-man


  • 1
  • boykottke boykottke
    TYPO3-Anwärter
    0 x
    7 Beiträge
    0 Hilfreiche Beiträge
    20. 08. 2012, 20:36

    Wie hast du die denn eingebunden? ganz so, wie in der Beispieldatei geht es natürlich nicht, weil das eben nur ein Snippet ist. grundsätzlich muss da also noch ein wenig mehr rein. Die Beispiele fügen sich in das Array

    1. 'postVarSets' => array(
    2. '_DEFAULT' => array())

    ein.

  • andy-man andy-man
    Sternenflotten-Admiral
    0 x
    158 Beiträge
    0 Hilfreiche Beiträge
    21. 08. 2012, 13:21

    Hallo boykotte,
    vielen Dank für den Hinweis. Habe den Code in das Array eingebunden und es funktioniert :-}.
    Hier das komplette Script

    1. //
    2. <?php
    3. $TYPO3_CONF_VARS['FE']['addRootLineFields'].= ',tx_realurl_pathsegment';
    4. $TYPO3_CONF_VARS['EXTCONF']['realurl'] = array(
    5. '_DEFAULT' => array(
    6. 'init' => array(
    7. 'enableCHashCache' => 1,
    8. 'appendMissingSlash' => 'ifNotFile',
    9. 'enableUrlDecodeCache' => 1,
    10. 'enableUrlEncodeCache' => 1,
    11. 'postVarSet_failureMode' => '',
    12. ),
    13. 'redirects' => array(),
    14. 'preVars' => array(
    15. 'GETvar' => 'no_cache',
    16. 'valueMap' => array(
    17. 'nc' => 1,
    18. ),
    19. 'noMatch' => 'bypass',
    20. ),
    21. 'GETvar' => 'L',
    22. 'valueMap' => array(
    23. # 'de' => '0',
    24. 'en' => '1',
    25. ),
    26. 'valueDefault' => 'de',
    27. 'noMatch' => 'bypass',
    28. ),
    29. ),
    30. 'pagePath' => array(
    31. 'type' => 'user',
    32. 'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
    33. 'spaceCharacter' => '-',
    34. 'languageGetVar' => 'L',
    35. 'expireDays' => 7,
    36. 'rootpage_id' => 1,
    37. 'firstHitPathCache' => 1,
    38. ),
    39. 'fixedPostVars' => array(),
    40. 'postVarSets' => array(
    41. '_DEFAULT' => array(
    42. // news archive parameters
    43. 'archive' => array(
    44. 'GETvar' => 'tx_ttnews[year]' ,
    45. ),
    46. 'GETvar' => 'tx_ttnews[month]' ,
    47. 'valueMap' => array(
    48. 'january' => '01',
    49. 'february' => '02',
    50. 'march' => '03',
    51. 'april' => '04',
    52. 'may' => '05',
    53. 'june' => '06',
    54. 'july' => '07',
    55. 'august' => '08',
    56. 'september' => '09',
    57. 'october' => '10',
    58. 'november' => '11',
    59. 'december' => '12',
    60. )
    61. ),
    62. ),
    63. // news pagebrowser
    64. 'browse' => array(
    65. 'GETvar' => 'tx_ttnews[pointer]',
    66. ),
    67. ),
    68. // news categories
    69. 'select_category' => array (
    70. 'GETvar' => 'tx_ttnews[cat]',
    71. ),
    72. ),
    73. // news articles anMd searchwords
    74. 'article' => array(
    75. 'GETvar' => 'tx_ttnews[tt_news]',
    76. 'lookUpTable' => array(
    77. 'table' => 'tt_news',
    78. 'id_field' => 'uid',
    79. 'alias_field' => 'title',
    80. 'addWhereClause' => ' AND NOT deleted',
    81. 'useUniqueCache' => 1,
    82. 'useUniqueCache_conf' => array(
    83. 'strtolower' => 1,
    84. 'spaceCharacter' => '-',
    85. ),
    86. ),
    87. ),
    88. 'GETvar' => 'tx_ttnews[backPid]',
    89. ),
    90. 'GETvar' => 'tx_ttnews[swords]',
    91. ),
    92. ),
    93. ),
    94. ),
    95.  
    96. // configure filenames for different pagetypes
    97. 'fileName' => array(
    98. 'defaultToHTMLsuffixOnPrev' => 1,
    99. 'index' => array(
    100. 'print.html' => array(
    101. 'keyValues' => array(
    102. 'type' => 98,
    103. ),
    104. ),
    105. 'rss.xml' => array(
    106. 'keyValues' => array(
    107. 'type' => 100,
    108. ),
    109. ),
    110. 'rss091.xml' => array(
    111. 'keyValues' => array(
    112. 'type' => 101,
    113. ),
    114. ),
    115. 'rdf.xml' => array(
    116. 'keyValues' => array(
    117. 'type' => 102,
    118. ),
    119. ),
    120. 'atom.xml' => array(
    121. 'keyValues' => array(
    122. 'type' => 103,
    123. ),
    124. ),
    125. ),
    126. ),
    127. // Ende - configure filenames for different pagetypes
    128.  
    129. // EXAMPLE 2
    130. // Realurl - Configuration for td calendar by Holger Hinkerohe
    131. // with title rendering (like tt_news)
    132. 'postVarSets' => array(
    133. '_DEFAULT' => array(
    134. 'date' => array(
    135. 'GETvar' => 'tx_tdcalendar_pi1[year]',
    136. ),
    137. 'GETvar' => 'tx_tdcalendar_pi1[month]',
    138. ),
    139. 'GETvar' => 'tx_tdcalendar_pi1[day]',
    140. ),
    141. 'GETvar' => 'tx_tdcalendar_pi1[event]',
    142. 'lookUpTable' => array (
    143. 'table' => 'tx_tdcalendar_events',
    144. 'id_field' => 'uid',
    145. 'alias_field' => 'title',
    146. 'addWhereClause' => ' AND NOT deleted',
    147. 'useUniqueCache' => '1',
    148. 'useUniqueCache_conf' => array (
    149. 'strtolower' => '1',
    150. 'spaceCharacter' => '-',
    151. ),
    152. ),
    153. ),
    154.  
    155. ),
    156. 'category' => array(
    157. 'GETvar' => 'tx_tdcalendar_pi1[category]',
    158. 'lookUpTable' => array (
    159. 'table' => 'tx_tdcalendar_categories',
    160. 'id_field' => 'uid',
    161. 'alias_field' => 'title',
    162. 'addWhereClause' => ' AND NOT deleted',
    163. 'useUniqueCache' => '1',
    164. 'useUniqueCache_conf' => array (
    165. 'strtolower' => '1',
    166. 'spaceCharacter' => '-',
    167. ),
    168. ),
    169. ),
    170. ),
    171. 'organizer' => array(
    172. 'GETvar' => 'tx_tdcalendar_pi1[organizer]',
    173. 'lookUpTable' => array (
    174. 'table' => 'tx_tdcalendar_organizer',
    175. 'id_field' => 'uid',
    176. 'alias_field' => 'name',
    177. 'addWhereClause' => ' AND NOT deleted',
    178. 'useUniqueCache' => '1',
    179. 'useUniqueCache_conf' => array (
    180. 'strtolower' => '1',
    181. 'spaceCharacter' => '-',
    182. ),
    183. ),
    184. ),
    185. ),
    186. 'location' => array(
    187. 'GETvar' => 'tx_tdcalendar_pi1[location]',
    188. 'lookUpTable' => array (
    189. 'table' => 'tx_tdcalendar_locations',
    190. 'id_field' => 'uid',
    191. 'alias_field' => 'location',
    192. 'addWhereClause' => ' AND NOT deleted',
    193. 'useUniqueCache' => '1',
    194. 'useUniqueCache_conf' => array (
    195. 'strtolower' => '1',
    196. 'spaceCharacter' => '-',
    197. ),
    198. ),
    199. ),
    200. ),
    201.  
    202. ),
    203. ),
    204. //Ende TD_Kalender
    205. ),
    206. );
    207. ?>

    andy-man

  • boykottke boykottke
    TYPO3-Anwärter
    0 x
    7 Beiträge
    0 Hilfreiche Beiträge
    21. 08. 2012, 13:25

    Na, das dachte ich mir doch fast...

    Ich hatte in die Codebeispiele lediglich die Ausschnitte aus der realurl-Config eingefügt, da ich verhindern wollte, dass sich wer das ganze dann falsch zusammenkopiert und andere Konfigurationen verloren gehen. Nun stelle ich fest, dass das ein oder andere erläuternde Wort zur Konfiguration eventuell auch ganz sinnvoll gewesen wäre... Ich werd das Manual entsprechend ergänzen.

  • 1