02. 11. 2010, 16:27

Hallo liebe Community!
Folgendes Problem:
Ich betreibe auf meiner Seite ein kleines Blogsystem mittels tt_news und möchte auch einen RSS Feed anbieten.
Soweit funktioniert auch alles ganz gut, bis auf die Generierung des RSS Links. Den habe ich folgendermassen erzeugt:

  1. page.headerData.550 = TEXT
  2. page.headerData.550 {
  3. parameter = 443,100
  4. returnLast = url
  5. }
  6. wrap = <link rel="alternate" type="application/rss+xml" title="RSS-Feed"
  7. href="http://domain.de/|" />
  8. }

Ohne RealURL wird daraus
http://domain.de/index.php?id=443&type=100

RealURL macht daraus allerdings:
http://domain.de/blog/

Das Ganze soll jedoch so aussehen:
http://domain.de/blog/rss.xml

Momentan schreibe ich den Link http://domain.de/blog/rss.xml hart ins TS, was ja nicht die feine Art ist, aber funktioniert.

Hat jemand eine Idee weshalb RealURL nicht das macht, was ich möchte?

Hier noch das TS von tt_news für die Erstellung des RSS Feeds:

  1. plugin.tt_news {
  2. displayXML {
  3. rss2_tmplFile = EXT:tt_news/res/rss_2.tmpl
  4.  
  5. xmlFormat = rss2
  6. xmlTitle = Domain Feed
  7. xmlLink = http://domain.de/
  8. xmlDesc = Domain Beschreibung
  9. xmlLang = de
  10. xmlIcon = fileadmin/tt_news_article.gif
  11. title_stdWrap.htmlSpecialChars = 1
  12. title_stdWrap.htmlSpecialChars.preserveEntities = 1
  13. subheader_stdWrap.stripHtml = 1
  14. subheader_stdWrap.htmlSpecialChars = 1
  15. subheader_stdWrap.htmlSpecialChars.preserveEntities = 1
  16. subheader_stdWrap.crop = 100 | ... | 1
  17. subheader_stdWrap.ifEmpty.field = bodytext
  18. xmlLastBuildDate = 1
  19. }
  20. }
  21.  
  22. xmlnews = PAGE
  23. xmlnews {
  24. typeNum = 100
  25. 10 >
  26. 10 < plugin.tt_news
  27. 10.pid_list >
  28. 10.pid_list = {$plugin.tt_news.pid_list}
  29. 10.singlePid = {$plugin.tt_news.singlePid}
  30. 10.defaultCode = XML
  31.  
  32. config {
  33. disableAllHeaderCode = 1
  34. additionalHeaders = Content-type:text/xml
  35. no_cache = 1
  36. xhtml_cleaning = 0
  37. admPanel = 0
  38. }
  39. }
  40.  
  41. page.headerData.550 = TEXT
  42. page.headerData.550 {
  43. parameter = 443,100
  44. returnLast = url
  45. }
  46. wrap = <link rel="alternate" type="application/rss+xml" title="RSS-Feed"
  47. href="http://domain.de/|" />
  48. }

Und hier noch die Realurl Konfiguration:

  1. $TYPO3_CONF_VARS['EXTCONF']['realurl'] = array(
  2. '_DEFAULT' => array(
  3. 'init' => array(
  4. 'enableCHashCache' => 1,
  5. 'appendMissingSlash' => 'ifNotFile',
  6. 'enableUrlDecodeCache' => 1,
  7. 'enableUrlEncodeCache' => 1,
  8. 'postVarSet_failureMode' => '',
  9. ),
  10. 'redirects' => array(),
  11. 'preVars' => array(
  12. 'GETvar' => 'no_cache',
  13. 'valueMap' => array(
  14. 'nc' => 1,
  15. ),
  16. 'noMatch' => 'bypass',
  17. ),
  18. 'GETvar' => 'L',
  19. 'valueMap' => array(
  20. # 'de' => '0',
  21. 'en' => '1',
  22. ),
  23. 'valueDefault' => 'de',
  24. 'noMatch' => 'bypass',
  25. ),
  26. ),
  27.  
  28. 'pagePath' => array(
  29. 'type' => 'user',
  30. 'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
  31. 'spaceCharacter' => '-',
  32. 'segTitleFieldList' => 'alias,tx_realurl_pathsegment,nav_title,title',
  33. 'languageGetVar' => 'L',
  34. 'expireDays' => 1,
  35. 'disablePathCache' => 1,
  36. 'rootpage_id' => $RootPID[$_SERVER['HTTP_HOST']],
  37. #'rootpage_id' => 1,
  38. ),
  39. 'fixedPostVars' => array(
  40. 'news' => array(
  41. 'GETvar' => 'tx_ttnews[pointer]',
  42. 'valueMap' => array(),
  43. 'noMatch' => 'bypass',
  44. ),
  45. 'GETvar' => 'tx_ttnews[tt_news]',
  46. 'lookUpTable' => array(
  47. 'table' => 'tt_news',
  48. 'id_field' => 'uid',
  49. 'alias_field' => 'tx_lonewsseo_alias',
  50. 'addWhereClause' => ' AND NOT deleted',
  51. 'useUniqueCache' => 1,
  52. 'useUniqueCache_conf' => array(
  53. 'strtolower' => 1,
  54. 'spaceCharacter' => '-',
  55. ),
  56. 'languageGetVar' => 'L',
  57. 'languageExceptionUids' => '',
  58. 'languageField' => 'sys_language_uid',
  59. 'transOrigPointerField' => 'l18n_parent',
  60. 'autoUpdate' => 1,
  61. 'expireDays' => 180,
  62. ),
  63. ),
  64. ),
  65. ),
  66. 'postVarSets' => array(
  67. '_DEFAULT' => array(
  68. 'seite' => array(
  69. 'GETvar' => 'tx_ttnews[pointer]',
  70. ),
  71. ),
  72.  
  73. // news kategorien
  74. 'kategorie' => array (
  75. 'GETvar' => 'tx_ttnews[cat]',
  76. 'lookUpTable' => array(
  77. 'table' => 'tt_news_cat',
  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. ),
  89.  
  90. 'nach' => array(
  91. 'GETvar' => 'tx_ttnews[swords]',
  92. ),
  93. ),
  94. ),
  95. ),
  96.  
  97. // configure filenames for different pagetypes
  98. 'fileName' => array(
  99. 'defaultToHTMLsuffixOnPrev' => 0,
  100. 'index' => array(
  101. 'print.html' => array(
  102. 'keyValues' => array(
  103. 'type' => 98,
  104. ),
  105. ),
  106. 'rss.xml' => array(
  107. 'keyValues' => array(
  108. 'type' => 100,
  109. ),
  110. ),
  111. 'rss091.xml' => array(
  112. 'keyValues' => array(
  113. 'type' => 101,
  114. ),
  115. ),
  116. 'rdf.xml' => array(
  117. 'keyValues' => array(
  118. 'type' => 102,
  119. ),
  120. ),
  121. 'atom.xml' => array(
  122. 'keyValues' => array(
  123. 'type' => 103,
  124. ),
  125. ),
  126. ),
  127. ),
  128. ),
  129. );
  130.  
  131. // RealURL - valueMap creation for tt-news
  132. for($x=1; $x<=1000; $x++) {
  133. $TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT']['fixedPostVars']['news'][0]['valueMap'][$x+1] = $x;
  134. }
  135.  
  136.  
  137. // RealURL - page definition for tt_news, 82 = Single Page UID
  138. $TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT']['fixedPostVars']['80'] = 'news';
  139. $TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT']['fixedPostVars']['453'] = 'news';
  140. $TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT']['fixedPostVars']['466'] = 'news';