Mr_media

tx_news realurl config

Nov 1st, 2017
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.25 KB | None | 0 0
  1. <?php
  2.  
  3. $GLOBALS['TYPO3_CONF_VARS']['FE']['addRootLineFields'] .= ',tx_realurl_pathsegment';
  4.  
  5. // Adjust to your needs
  6. $domain = 'mysiteisthis.com';
  7. $domain = 'mysiteisthis.com';
  8. $rootPageUid = 1;
  9. $rssFeedPageType = 9818; // pageType of your RSS feed page
  10.  
  11. $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl'][$domain] = array(
  12. 'pagePath' => array(
  13. 'type' => 'user',
  14. 'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
  15. 'spaceCharacter' => '-',
  16. 'languageGetVar' => 'L',
  17. 'expireDays' => '3',
  18. 'rootpage_id' => $rootPageUid,
  19. 'firstHitPathCache' => 1
  20. ),
  21. 'init' => array(
  22. 'enableCHashCache' => TRUE,
  23. 'respectSimulateStaticURLs' => 0,
  24. 'appendMissingSlash' => 'ifNotFile,redirect',
  25. 'adminJumpToBackend' => TRUE,
  26. 'enableUrlDecodeCache' => TRUE,
  27. 'enableUrlEncodeCache' => TRUE,
  28. 'emptyUrlReturnValue' => '/',
  29. ),
  30. 'fileName' => array(
  31. 'defaultToHTMLsuffixOnPrev' => 0,
  32. 'acceptHTMLsuffix' => 1,
  33. 'index' => array(
  34. 'feed.rss' => array(
  35. 'keyValues' => array(
  36. 'type' => $rssFeedPageType,
  37. )
  38. )
  39. )
  40. ),
  41. 'preVars' => array(
  42. array(
  43. 'GETvar' => 'L',
  44. 'valueMap' => array(
  45. 'nl' => '1',
  46. ),
  47. 'noMatch' => 'bypass',
  48. ),
  49. array(
  50. 'GETvar' => 'no_cache',
  51. 'valueMap' => array(
  52. 'nc' => 1,
  53. ),
  54. 'noMatch' => 'bypass',
  55. ),
  56. ),
  57. 'fixedPostVars' => array(
  58. 'newsDetailConfiguration' => array(
  59. array(
  60. 'GETvar' => 'tx_news_pi1[action]',
  61. 'valueMap' => array(
  62. 'detail' => '',
  63. ),
  64. 'noMatch' => 'bypass'
  65. ),
  66. array(
  67. 'GETvar' => 'tx_news_pi1[controller]',
  68. 'valueMap' => array(
  69. 'News' => '',
  70. ),
  71. 'noMatch' => 'bypass'
  72. ),
  73. array(
  74. 'GETvar' => 'tx_news_pi1[news]',
  75. 'lookUpTable' => array(
  76. 'table' => 'tx_news_domain_model_news',
  77. 'id_field' => 'uid',
  78. 'alias_field' => 'title',
  79. 'addWhereClause' => ' AND NOT deleted',
  80. 'useUniqueCache' => 1,
  81. 'useUniqueCache_conf' => array(
  82. 'strtolower' => 1,
  83. 'spaceCharacter' => '+'
  84. ),
  85. 'languageGetVar' => 'L',
  86. 'languageExceptionUids' => '',
  87. 'languageField' => 'sys_language_uid',
  88. 'transOrigPointerField' => 'l10n_parent',
  89. 'expireDays' => 180,
  90. )
  91. )
  92. ),
  93. 'newsCategoryConfiguration' => array(
  94. array(
  95. 'GETvar' => 'tx_news_pi1[overwriteDemand][categories]',
  96. 'lookUpTable' => array(
  97. 'table' => 'sys_category',
  98. 'id_field' => 'uid',
  99. 'alias_field' => 'title',
  100. 'addWhereClause' => ' AND NOT deleted',
  101. 'useUniqueCache' => 1,
  102. 'useUniqueCache_conf' => array(
  103. 'strtolower' => 1,
  104. 'spaceCharacter' => '-'
  105. )
  106. )
  107. )
  108. ),
  109. 'newsTagConfiguration' => array(
  110. array(
  111. 'GETvar' => 'tx_news_pi1[overwriteDemand][tags]',
  112. 'lookUpTable' => array(
  113. 'table' => 'tx_news_domain_model_tag',
  114. 'id_field' => 'uid',
  115. 'alias_field' => 'title',
  116. 'addWhereClause' => ' AND NOT deleted',
  117. 'useUniqueCache' => 1,
  118. 'useUniqueCache_conf' => array(
  119. 'strtolower' => 1,
  120. 'spaceCharacter' => '-'
  121. )
  122. )
  123. )
  124. ),
  125. '28' => 'newsDetailConfiguration',
  126. '701' => 'newsDetailConfiguration', // For additional detail pages, add their uid as well
  127. '71' => 'newsTagConfiguration',
  128. '72' => 'newsCategoryConfiguration',
  129. ),
  130. 'postVarSets' => array(
  131. '_DEFAULT' => array(
  132. 'controller' => array(
  133. array(
  134. 'GETvar' => 'tx_news_pi1[action]',
  135. 'noMatch' => 'bypass'
  136. ),
  137. array(
  138. 'GETvar' => 'tx_news_pi1[controller]',
  139. 'noMatch' => 'bypass'
  140. )
  141. ),
  142.  
  143. 'dateFilter' => array(
  144. array(
  145. 'GETvar' => 'tx_news_pi1[overwriteDemand][year]',
  146. ),
  147. array(
  148. 'GETvar' => 'tx_news_pi1[overwriteDemand][month]',
  149. ),
  150. ),
  151. 'page' => array(
  152. array(
  153. 'GETvar' => 'tx_news_pi1[@widget_0][currentPage]',
  154. ),
  155. ),
  156. ),
  157. ),
  158.  
  159. );
Add Comment
Please, Sign In to add comment