helmutwinkelbach

realurl_conf.php for tx_news

Oct 7th, 2016
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 5.22 KB | None | 0 0
  1. <?php
  2.  
  3.  
  4. $TYPO3_CONF_VARS['FE']['addRootLineFields'].= ',tx_realurl_pathsegment';
  5. $TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array(
  6. 'pagePath' => array(
  7.     'type' => 'user',
  8.     'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
  9.     'spaceCharacter' => '-',
  10.     'languageGetVar' => 'L',
  11.     'expireDays' => '3',
  12.     'rootpage_id' => 1,
  13.     'firstHitPathCache'=>1
  14. ),
  15. 'init' => array(
  16.     'enableCHashCache' => TRUE,
  17.     'enableCHashCache' => 1,
  18.     'respectSimulateStaticURLs' => 0,
  19.     'enableUrlDecodeCache' => 1,
  20.     'enableUrlEncodeCache' => 1
  21. ),
  22. 'preVars' => array(
  23.     array(
  24.         'GETvar' => 'L',
  25.         'valueMap' => array(
  26.             //'de' => '0',
  27.             //'en' => '1',
  28.         ),
  29.         'noMatch' => 'bypass',
  30.     ),
  31.     array(
  32.         'GETvar' => 'no_cache',
  33.         'valueMap' => array(
  34.             'nc' => 1,
  35.         ),
  36.         'noMatch' => 'bypass',
  37.     ),
  38. ),
  39.  
  40. 'fileName' => array(
  41.   'index' => array(
  42.     'sitemap.xml' => array(
  43.       'keyValues' => array(
  44.         'type' => 1234,
  45.       ),
  46.     ),
  47.   ),
  48. ),
  49.  
  50. 'fixedPostVars' => array(
  51.     'newsDetailConfiguration' => array(
  52.         array(
  53.             'GETvar' => 'tx_news_pi1[action]',
  54.             'valueMap' => array(
  55.                 'detail' => '',
  56.             ),
  57.             'noMatch' => 'bypass',
  58.         ),
  59.         array(
  60.             'GETvar' => 'tx_news_pi1[controller]',
  61.             'valueMap' => array(
  62.                 'News' => '',
  63.             ),
  64.             'noMatch' => 'bypass',
  65.         ),
  66.  
  67.         array(
  68.             'GETvar' => 'tx_news_pi1[news]',
  69.             'lookUpTable' => array(
  70.                 'table' => 'tx_news_domain_model_news',
  71.                 'id_field' => 'uid',
  72.                 'alias_field' => 'title',
  73.                 'addWhereClause' => ' AND NOT deleted',
  74.                 'useUniqueCache' => 1,
  75.                 'useUniqueCache_conf' => array(
  76.                     'strtolower' => 1,
  77.                     'spaceCharacter' => '-',
  78.                 ),
  79.                 'languageGetVar' => 'L',
  80.                 'languageExceptionUids' => '',
  81.                 'languageField' => 'sys_language_uid',
  82.                 'transOrigPointerField' => 'l10n_parent',
  83.                 'autoUpdate' => 1,
  84.                 'expireDays' => 180,
  85.             ),
  86.         ),
  87.     ),
  88.  
  89.     '10' => 'newsDetailConfiguration',
  90.     // For additional detail pages, add their uid as well
  91.     //'13' => 'newsDetailConfiguration',
  92.     //'22' => 'newsDetailConfiguration',
  93.     //'4' => 'newsTagConfiguration',
  94.     //'4' => 'newsCategoryConfiguration',
  95.  
  96. ),
  97. 'postVarSets' => array(
  98.     '_DEFAULT' => array(
  99.         'controller' => array(
  100.             array(
  101.                 'GETvar' => 'tx_news_pi1[action]',
  102.                 'noMatch' => 'bypass',
  103.             ),
  104.             array(
  105.                 'GETvar' => 'tx_news_pi1[controller]',
  106.                 'noMatch' => 'bypass',
  107.             ),
  108.         ),
  109.         'stadt' => array(
  110.             array(
  111.                 'GETvar' => 'tx_news_pi1[overwriteDemand][categories]',
  112.                 'lookUpTable' => array(
  113.                     'table' => 'sys_category',
  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.  
  126.         'tags' => array(
  127.             array(
  128.                 'GETvar' => 'tx_news_pi1[overwriteDemand][tags]',
  129.                 'lookUpTable' => array (
  130.                   'table' => 'tx_news_domain_model_tag',
  131.                   'id_field' => 'uid',
  132.                   'alias_field' => 'title',
  133.                   'addWhereClause' => 'AND NOT deleted',
  134.                   'useUniqueCache' => 1,
  135.                   'useUniqueCache_conf' => array (
  136.                     'strtolower' => 1,
  137.                     'spaceCharacter' => '-',
  138.                     ),
  139.                 ),
  140.             ),
  141.         ),
  142.  
  143.         'seite' => array(
  144.             array(
  145.                 'GETvar' => 'tx_news_pi1[@widget_0][currentPage]',
  146.             ),
  147.         ),
  148.  
  149.         // news archive parameters
  150.         'archiv' => array(
  151.             array(
  152.                 'GETvar' => 'tx_news_pi1[overwriteDemand][year]',
  153.             ),
  154.             array(
  155.                 'GETvar' => 'tx_news_pi1[overwriteDemand][month]',
  156.                 'valueMap' => array(
  157.                     'january' => '01',
  158.                     'february' => '02',
  159.                     'march' => '03',
  160.                     'april' => '04',
  161.                     'may' => '05',
  162.                     'june' => '06',
  163.                     'july' => '07',
  164.                     'august' => '08',
  165.                     'september' => '09',
  166.                     'october' => '10',
  167.                     'november' => '11',
  168.                     'december' => '12',
  169.                 ),
  170.             ),
  171.         ),
  172.  
  173.     ),
  174. ),
  175. // configure filenames for different pagetypes
  176. 'fileName' => array(
  177.     'defaultToHTMLsuffixOnPrev' => 0,
  178. ),
  179. );
  180.  
  181. ?>
Add Comment
Please, Sign In to add comment