23. 08. 2006, 13:22

Hallo,

ich habe eben die Konfiguration von einer 4.0er Installation für RealURL in ein anderes System übernehmen wollen. Leider ohne Erfolg.

Habe im Typoscript alle relevanten Werte gesetzt und die htaccess angelegt. Wenn ich nun die neuen URLs aufrufe, funktioniert das auch, allerdings werden bei der Menugenerierung immer noch die alten URLs benutzt.

Scheinbar funktionieren die sog. "Hooks" nicht richtig, die ich in localconf.php eingetragen habe:

  1. // Activate script Hook, normaly already done in ext/realurl/ext_localconf.php
  2. $TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tstemplate.php']['linkData-PostProc'][] = 'EXT:realurl/class.tx_realurl.php:&tx_realurl->encodeSpURL';
  3. $TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['checkAlternativeIdMethods-PostProc'][] = 'EXT:realurl/class.tx_realurl.php:&tx_realurl->decodeSpURL';
  4.  
  5. // script Hook for clear all cache, normaly already done in ext/realurl/ext_localconf.php
  6. $TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearAllCache_additionalTables']['tx_realurl_urldecodecache'] = 'tx_realurl_urldecodecache';
  7. $TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearAllCache_additionalTables']['tx_realurl_urlencodecache'] = 'tx_realurl_urlencodecache';
  8.  
  9. $TYPO3_CONF_VARS['FE']['addRootLineFields'].= ',tx_realurl_pathsegment,alias,nav_title,title';
  10.  
  11.  
  12. # See http://wiki.typo3.org/index.php/EXT/realurl/manual#.24TYPO3_CONF_VARS.5B.27EXTCONF.27.5D.5B.27realurl.27.5D
  13. $TYPO3_CONF_VARS['EXTCONF']['realurl'] = array(
  14.  
  15. '_DEFAULT' => array(
  16. 'init' => array('enableCHashCache' => 1,
  17. 'appendMissingSlash' => 'ifNotFile',
  18. 'enableUrlDecodeCache' => 1,
  19. 'enableUrlEncodeHash' => 1,
  20. 'respectSimulateStaticURLs' => 'TRUE',
  21. ),
  22. 'pagePath' => array('type' => 'user',
  23. 'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
  24. 'spaceCharacter' => '-',
  25. 'languageGetVar' => 'L',
  26. 'expireDays' => 3,
  27. 'rootpage_id' => 1,
  28. 'dontResolveShortcuts' => 'TRUE',
  29. ),
  30. 'fixedPostVars' => array(),
  31. 'postVarSets' => array(
  32. '_DEFAULT' => array(
  33. // news archive parameters
  34. 'archiv' => array(
  35. array('GETvar' => 'tx_ttnews[year]' , ),
  36. array('GETvar' => 'tx_ttnews[month]' ,'valueMap' => array('januar' => '01','februar' => '02','maerz' => '03','april' => '04','mai' => '05','juni' => '06','juli' => '07','august' => '08','september' => '09','oktober' => '10','november' => '11','dezember' => '12',) ),),
  37. // news pagebrowser
  38. 'browse' => array( array( 'GETvar' => 'tx_ttnews[pointer]', ), ),
  39. // news categories
  40. 'select_category' => array ( array( 'GETvar' => 'tx_ttnews[cat]', ),),
  41. // news articles and searchwords
  42. 'meldung' => array(
  43. array('GETvar' => 'tx_ttnews[tt_news]',
  44. 'lookUpTable' => array( 'table' => 'tt_news', 'id_field' => 'uid', 'alias_field' => 'title', 'addWhereClause' => ' AND NOT deleted', 'useUniqueCache' => 1, 'useUniqueCache_conf' => array( 'strtolower' => 1, 'spaceCharacter' => '-', ),),),
  45. array('GETvar' => 'tx_ttnews[swords]',),),
  46. // KALENDER
  47. 'details' => array(
  48. array('GETvar' => 'tx_jwcalendar_pi1[action]','valueMap' => array('Ereignis' => 'singleView','Veranstalter' => 'organizerView','Veranstaltungsort' => 'locationView','Tagesansicht' => 'dayView',) ),
  49. array('GETvar' => 'tx_jwcalendar_pi1[eventid]', 'lookUpTable' => array('table' => 'tx_jwcalendar_events', 'id_field' => 'uid', 'alias_field' => 'teaser', 'addWhereClause' => ' AND NOT deleted', 'useUniqueCache' => 1, 'useUniqueCache_conf' => array( 'strtolower' => 1, 'spaceCharacter' => '-', ),),),
  50. array('GETvar' => 'tx_jwcalendar_pi1[orguid]', 'lookUpTable' => array('table' => 'tx_jwcalendar_organizer', 'id_field' => 'uid', 'alias_field' => 'name', 'addWhereClause' => ' AND NOT deleted', 'useUniqueCache' => 1, 'useUniqueCache_conf' => array( 'strtolower' => 1, 'spaceCharacter' => '-', ),),),
  51. array('GETvar' => 'tx_jwcalendar_pi1[locuid]', 'lookUpTable' => array('table' => 'tx_jwcalendar_location', 'id_field' => 'uid', 'alias_field' => 'location', 'addWhereClause' => ' AND NOT deleted', 'useUniqueCache' => 1, 'useUniqueCache_conf' => array( 'strtolower' => 1, 'spaceCharacter' => '-', ),),),
  52. array('GETvar' => 'tx_jwcalendar_pi1[view]','valueMap' => array('Monatsansicht' => 'MONTH','Listenansicht' => 'LIST','Tagesansicht' => 'DAY',) ),
  53.  
  54. array('GETvar' => 'tx_jwcalendar_pi1[time]',),
  55. array('GETvar' => 'tx_jwcalendar_pi1[uid]',),
  56. ), //Kalender ende
  57. //eCards
  58. 'karte' => array(
  59. array('GETvar' => 'tx_srsendcard_pi1[card_caption]',),
  60. array('GETvar' => 'tx_srsendcard_pi1[cmd]', 'valueMap' => array('verschicken' => 'prompt', 'anzeigen' => 'view',) ),
  61. array('GETvar' => 'tx_srsendcard_pi1[cardid]',),
  62. ), //eCards ende
  63. //CHC-Forum
  64. 'zeigen' => array(
  65. array('GETvar' => 'view', 'valueMap' => array('konferenz' => 'single_conf', 'kategorien' => 'all_cats', 'beitrag' => 'single_thread', 'kategorie' => 'single_cat', ) ),
  66. array('GETvar' => 'cat_uid', 'lookUpTable' => array('table' => 'tx_chcforum_category', 'id_field' => 'uid', 'alias_field' => 'cat_title', 'addWhereClause' => ' AND NOT deleted', 'useUniqueCache' => 1, 'useUniqueCache_conf' => array( 'strtolower' => 1, 'spaceCharacter' => '-', ),),),
  67. array('GETvar' => 'conf_uid', 'lookUpTable' => array('table' => 'tx_chcforum_conference', 'id_field' => 'uid', 'alias_field' => 'conference_name', 'addWhereClause' => ' AND NOT deleted', 'useUniqueCache' => 1, 'useUniqueCache_conf' => array( 'strtolower' => 1, 'spaceCharacter' => '-', ),),),
  68. array('GETvar' => 'thread_uid', 'lookUpTable' => array('table' => 'tx_chcforum_thread', 'id_field' => 'uid', 'alias_field' => 'thread_subject', 'addWhereClause' => ' AND NOT deleted', 'useUniqueCache' => 1, 'useUniqueCache_conf' => array( 'strtolower' => 1, 'spaceCharacter' => '-', ),),),
  69. ), //CHC-Forum ende
  70.  
  71. //FRONTEND USER REGISTRATION - Start
  72. 'registrieren' => array(
  73. array('GETvar' => 'tx_srfeuserregister_pi1[pointer]',),
  74. array('GETvar' => 'tx_srfeuserregister_pi1[mode]',),
  75. array('GETvar' => 'tx_srfeuserregister_pi1[sword]',),
  76. array('GETvar' => 'tx_srfeuserregister_pi1[sort]',),
  77. array('GETvar' => 'tx_srfeuserregister_pi1[cmd]',),
  78. array('GETvar' => 'tx_srfeuserregister_pi1[rU]',),
  79. array('GETvar' => 'tx_srfeuserregister_pi1[sFK]',),
  80. array('GETvar' => 'fD[_FIELDLIST]',),
  81. array('GETvar' => 'fD[usergroup]',),
  82. array('GETvar' => 'fD[disable]',),
  83. array('GETvar' => 'tx_srfeuserregister_pi1[aC]',),
  84. ), //FRONTEND USER REGISTRATION - Ende
  85. ),
  86. ),
  87.  
  88. // configure filenames for different pagetypes
  89. 'fileName' => array(
  90. // 'defaultToHTMLsuffixOnPrev' => 1,
  91. 'index' => array(
  92. '_DEFAULT' => array('keyValues' => array()), // index.html
  93. 'print.html' => array('keyValues' => array('type' => 98-)),
  94. 'rss.xml' => array('keyValues' => array('type' => 100)),
  95. 'rss091.xml' => array('keyValues' => array('type' => 101)),
  96. 'rdf.xml' => array('keyValues' => array('type' => 102)),
  97. 'atom.xml' => array('keyValues' => array('type' => 103)),
  98. ),
  99. ),
  100. ),
  101. );

Wie gesagt, in einer anderen Installation läuft das so. What's wrong ?

Grüsse,
Björn Kahle