30. 11. 2010, 22:47

Ich steh schon ne Zeit lang an. Es gibt dazu auch sooo viele Einträge in Foren, dass es schwer ist hier durchzublicken.

Ich hab RealURL konfiguriert. So weit funktioniert das auch. Nur wenn ich das jetzt ordentlich konfiguriere um auch im tt_news ordentliche URLs zu haben, bekomm ich sofort folgende Fehlermeldung (bis auf die BadeURL hald)

Reason: Segment "..." was not a keyword for a postVarSet as expected!

Ich verstehs einfach nicht. Ich hab schon sooo viele sachen durchgelesen und überall scheint das so leicht zu funktionieren...

realurl config schaut jetzt so aus:

  1. <?php
  2.  
  3. $TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tstemplate.php']['linkData-PostProc']['tx_realurl'] = 'EXT:realurl/class.tx_realurl.php:&tx_realurl->encodeSpURL';
  4. $TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_content.php']['typoLink_PostProc']['tx_realurl'] = 'EXT:realurl/class.tx_realurl.php:&tx_realurl->encodeSpURL_urlPrepend';
  5. $TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['checkAlternativeIdMethods-PostProc']['tx_realurl'] = 'EXT:realurl/class.tx_realurl.php:&tx_realurl->decodeSpURL';
  6. $TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearPageCacheEval']['tx_realurl'] = 'EXT:realurl/class.tx_realurl.php:&tx_realurl->clearPageCacheMgm';
  7.  
  8. $TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearAllCache_additionalTables']['tx_realurl_urldecodecache'] = 'tx_realurl_urldecodecache';
  9. $TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearAllCache_additionalTables']['tx_realurl_urlencodecache'] = 'tx_realurl_urlencodecache';
  10.  
  11. $TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass']['tx_realurl'] = 'EXT:realurl/class.tx_realurl_tcemain.php:&tx_realurl_tcemain';
  12. $TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass']['tx_realurl'] = 'EXT:realurl/class.tx_realurl_tcemain.php:&tx_realurl_tcemain';
  13.  
  14. $TYPO3_CONF_VARS['FE']['addRootLineFields'] .= ',tx_realurl_pathsegment,tx_realurl_exclude,tx_realurl_pathoverride';
  15. $TYPO3_CONF_VARS['FE']['pageOverlayFields'] .= ',tx_realurl_pathsegment';
  16.  
  17. // Include configuration file
  18. $_realurl_conf = @unserialize($_EXTCONF);
  19. if (is_array($_realurl_conf)) {
  20. $_realurl_conf_file = trim($_realurl_conf['configFile']);
  21. if ($_realurl_conf_file && @file_exists(PATH_site . $_realurl_conf_file)) {
  22. require_once(PATH_site . $_realurl_conf_file);
  23. }
  24. unset($_realurl_conf_file);
  25. }
  26.  
  27. define('TX_REALURL_AUTOCONF_FILE', 'typo3conf/realurl_autoconf.php');
  28. if (!isset($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl'])) {
  29. @include_once(PATH_site . TX_REALURL_AUTOCONF_FILE);
  30. }
  31. unset($_realurl_conf);
  32.  
  33. define('TX_REALURL_SEGTITLEFIELDLIST_DEFAULT', 'tx_realurl_pathsegment,alias,nav_title,title,uid');
  34. define('TX_REALURL_SEGTITLEFIELDLIST_PLO', 'tx_realurl_pathsegment,nav_title,title,uid');
  35.  
  36. // TYPO3 clean up handler
  37. //$GLOBALS ['TYPO3_CONF_VARS']['EXTCONF']['lowlevel']['cleanerModules'][$_EXTKEY] = array('EXT:' . $_EXTKEY . '/class.tx_realurl_cleanuphandler.php:tx_realurl_cleanuphandler');
  38.  
  39. $TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array(
  40.  
  41. 'init' => array(
  42. 'useCHashCache' => '0',
  43. 'enableCHashCache' => 1,
  44. 'respectSimulateStaticURLs' => 'TRUE',
  45. 'appendMissingSlash' => 'ifNotFile',
  46. 'enableUrlDecodeCache' => '1',
  47. 'enableUrlEncodeCache' => '1',
  48. ),
  49.  
  50. 'preVars' => array(
  51. 'GETvar' => 'no_cache',
  52. 'valueMap' => array(
  53. 'no_cache' => 1,
  54. 'nc' => 1,
  55. ),
  56. 'noMatch' => 'bypass',
  57. ),
  58. 'GETvar' => 'L',
  59. 'valueMap' => array(
  60. 'de' => '0',
  61. 'en' => '1',
  62. ),
  63. 'noMatch' => 'bypass',
  64. ),
  65. ),
  66.  
  67.  
  68. 'pagePath' => array(
  69. 'type' => 'user',
  70. 'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
  71. 'spaceCharacter' => '-',
  72. 'segTitleFieldList' => 'alias,tx_realurl_pathsegment,nav_title,title',
  73. 'languageGetVar' => 'L',
  74. 'expireDays' => 1,
  75. 'disablePathCache' => 1,
  76. 'rootpage_id' => 1,
  77. ),
  78.  
  79. 'fileName' => array(
  80. 'index' => array(
  81. 'rss.xml' => array(
  82. 'keyValues' => array(
  83. 'type' => 100,
  84. ),
  85. ),
  86. 'rss091.xml' => array(
  87. 'keyValues' => array(
  88. 'type' => 101,
  89. ),
  90. ),
  91. 'rdf.xml' => array(
  92. 'keyValues' => array(
  93. 'type' => 102,
  94. ),
  95. ),
  96. 'atom.xml' => array(
  97. 'keyValues' => array(
  98. 'type' => 103,
  99. ),
  100. ),
  101. ),
  102. ),
  103.  
  104.  
  105.  
  106. 'postVarSets' => array(
  107. '_DEFAULT' => array(
  108.  
  109.  
  110.  
  111. 'browse' => array(
  112. array( 'GETvar' => 'tx_ttnews[pointer]', 'valueMap' => array('weiter' => '1','weiter' => '2',)),),
  113.  
  114.  
  115. // news kategorien
  116.  
  117. 'kategorie' => array (
  118. array( 'GETvar' => 'tx_ttnews[cat]', 'lookUpTable' => array('table' => 'tt_news_cat', 'id_field' => 'uid', 'alias_field' => 'title', 'addWhereClause' => ' AND NOT deleted', 'useUniqueCache' => 1, 'useUniqueCache_conf' => array( 'strtolower' => 1, 'spaceCharacter' => '-', ),),),),
  119.  
  120.  
  121. // news artikel
  122.  
  123. 'datum' => array(
  124. array('GETvar' => 'tx_ttnews[year]' , ),
  125.  
  126. array('GETvar' => 'tx_ttnews[month]' , ),
  127. array('GETvar' => 'tx_ttnews[day]' , ),
  128. array('GETvar' => 'tx_ttnews[tt_news]','lookUpTable' => array( 'table' => 'tt_news', 'id_field' => 'uid', 'alias_field' => 'title', 'addWhereClause' => ' AND NOT deleted', 'useUniqueCache' => 1, 'useUniqueCache_conf' => array( 'strtolower' => 1, 'spaceCharacter' => '-', ),),),),
  129.  
  130.  
  131. ),),
  132. );
  133.  
  134. ?>

  1. config.noPageTitle = 2
  2. # RealURL
  3. config.simulateStaticDocuments = 0
  4. config.tx_realurl_enable = 1
  5. config.baseURL = http://www.musicalplanet.at/