Guest User

Untitled

a guest
Aug 17th, 2013
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 6.13 KB | None | 0 0
  1. <?php
  2. $TYPO3_CONF_VARS['FE']['pageNotFound_handling'] = 'index.php?id=25';
  3. $TYPO3_CONF_VARS['FE']['pageNotFound_handling_statheader'] = 'HTTP/1.0 404 Not Found';
  4. ?>
  5.  
  6. <?php
  7.  
  8. $TYPO3_CONF_VARS['FE']['addRootLineFields'].= ',tx_realurl_pathsegment';
  9. $TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array(
  10.         'pagePath' => array(
  11.                 'type' => 'user',
  12.                 'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
  13.                 'spaceCharacter' => '-',
  14.                 'languageGetVar' => 'L',
  15.                 'expireDays' => '3',
  16.                 'rootpage_id' => 9,
  17.                 'firstHitPathCache'=>1
  18.         ),
  19.         'init' => array(
  20.                 'enableCHashCache' => TRUE,
  21.                 'enableCHashCache' => 1,
  22.                 'respectSimulateStaticURLs' => 0,
  23.                 'enableUrlDecodeCache' => 1,
  24.                 'enableUrlEncodeCache' => 1
  25.         ),
  26.         'preVars' => array(
  27.                 array(
  28.                         'GETvar' => 'L',
  29.                         'valueMap' => array(
  30.                                 'en' => '1',
  31.                         ),
  32.                         'noMatch' => 'bypass',
  33.                 ),
  34.                 array(
  35.                         'GETvar' => 'no_cache',
  36.                         'valueMap' => array(
  37.                                 'nc' => 1,
  38.                         ),
  39.                         'noMatch' => 'bypass',
  40.                 ),
  41.         ),
  42.         'fixedPostVars' => array(
  43.                 'newsDetailConfiguration' => array(
  44.                         array(
  45.                                 'GETvar' => 'tx_news_pi1[news]',
  46.                                 'lookUpTable' => array(
  47.                                         'table' => 'tx_news_domain_model_news',
  48.                                         'id_field' => 'uid',
  49.                                         'alias_field' => 'title',
  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' => 'l10n_parent',
  60.                                         'autoUpdate' => 1,
  61.                                         'expireDays' => 180,
  62.                                 )
  63.                         )
  64.                 ),
  65.                 'newsCategoryConfiguration' => array(
  66.                         array(
  67.                                 'GETvar' => 'tx_news_pi1[overwriteDemand][categories]',
  68.                                 'lookUpTable' => array(
  69.                                         'table' => 'tx_news_domain_model_category',
  70.                                         'id_field' => 'uid',
  71.                                         'alias_field' => 'title',
  72.                                         'addWhereClause' => ' AND NOT deleted',
  73.                                         'useUniqueCache' => 1,
  74.                                         'useUniqueCache_conf' => array(
  75.                                                 'strtolower' => 1,
  76.                                                 'spaceCharacter' => '-'
  77.                                         )
  78.                                 )
  79.                         )
  80.                 ),
  81.                 'newsTagConfiguration' => array(
  82.                         array(
  83.                                 'GETvar' => 'tx_news_pi1[overwriteDemand][tags]',
  84.                                 'lookUpTable' => array(
  85.                                         'table' => 'tx_news_domain_model_tag',
  86.                                         'id_field' => 'uid',
  87.                                         'alias_field' => 'title',
  88.                                         'addWhereClause' => ' AND NOT deleted',
  89.                                         'useUniqueCache' => 1,
  90.                                         'useUniqueCache_conf' => array(
  91.                                                 'strtolower' => 1,
  92.                                                 'spaceCharacter' => '-'
  93.                                         )
  94.                                 )
  95.                         )
  96.                 ),
  97.                 '13' => 'newsDetailConfiguration',
  98.                 #'701' => 'newsDetailConfiguration', // For additional detail pages, add their uid as well
  99.                #'71' => 'newsTagConfiguration',
  100.                #'72' => 'newsCategoryConfiguration',
  101.  
  102.         ),
  103.         'postVarSets' => array(
  104.                 '_DEFAULT' => array(
  105.                         'controller' => array(
  106.                                 array(
  107.                                         'GETvar' => 'tx_news_pi1[action]',
  108.                                         'noMatch' => 'bypass'
  109.                                 ),
  110.                                 array(
  111.                                         'GETvar' => 'tx_news_pi1[controller]',
  112.                                         'noMatch' => 'bypass'
  113.                                 )
  114.                         ),
  115.  
  116.                         'dateFilter' => array(
  117.                                 array(
  118.                                         'GETvar' => 'tx_news_pi1[overwriteDemand][year]',
  119.                                 ),
  120.                                 array(
  121.                                         'GETvar' => 'tx_news_pi1[overwriteDemand][month]',
  122.                                 ),
  123.                         ),
  124.                         'page' => array(
  125.                                 array(
  126.                                         'GETvar' => 'tx_news_pi1[@widget_0][currentPage]',
  127.                                 ),
  128.                         ),
  129.                 ),
  130.         ),
  131.  
  132. );
  133.  
  134. ?>
Advertisement
Add Comment
Please, Sign In to add comment