Advertisement
Guest User

Untitled

a guest
Apr 28th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. // $GLOBALS['TYPO3_CONF_VARS']['FE']['addRootLineFields'].= ',tx_realurl_pathsegment'; // Nicht mehr nötig
  3. $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl'] = array(
  4.     '_DEFAULT' => array(
  5.         'init' => array(
  6.             'enableCHashCache' => 1,
  7.             'appendMissingSlash' => 'ifNotFile',
  8.             'enableUrlDecodeCache' => 1,
  9.             'enableUrlEncodeCache' => 1,
  10.             'postVarSet_failureMode' => '',
  11.         ),
  12.         'redirects' => array(),
  13.         'preVars' => array(
  14.             array(
  15.                 'GETvar' => 'no_cache',
  16.                     'valueMap' => array(
  17.                         'nc' => 1,
  18.                     ),
  19.                     'noMatch' => 'bypass',
  20.                 ),
  21.                 array(
  22.                     'GETvar' => 'L',
  23.                     'valueMap' => array(
  24.                             'de' => '0',
  25.                         'en' => '1',
  26.                     ),
  27.                     'noMatch' => 'bypass',
  28.                 ),
  29.             ),
  30.             'pagePath' => array(
  31.                 'type' => 'user',
  32.                 'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
  33.                 'spaceCharacter' => '-',
  34.                 'languageGetVar' => 'L',
  35.                 'expireDays' => 7,
  36.                 'rootpage_id' => 1,
  37.                 'firstHitPathCache' => 1,
  38.             ),
  39.             'fixedPostVars' => array(),
  40.             'postVarSets' => array(
  41.                 '_DEFAULT' => array(
  42.                     // news archive parameters
  43.                     'archive' => array(
  44.                         array(
  45.                             'GETvar' => 'tx_ttnews[year]' ,
  46.                         ),
  47.                         array(
  48.                             'GETvar' => 'tx_ttnews[month]' ,
  49.                             'valueMap' => array(
  50.                             'january' => '01',
  51.                             'february' => '02',
  52.                             'march' => '03',
  53.                             'april' => '04',
  54.                             'may' => '05',
  55.                             'june' => '06',
  56.                             'july' => '07',
  57.                             'august' => '08',
  58.                             'september' => '09',
  59.                             'october' => '10',
  60.                             'november' => '11',
  61.                             'december' => '12',
  62.                         )
  63.                     ),
  64.                 ),
  65.                 // news pagebrowser
  66.                 'browse' => array(
  67.                     array(
  68.                         'GETvar' => 'tx_ttnews[pointer]',
  69.                     ),
  70.                 ),
  71.                 // news categories
  72.                 'select_category' => array (
  73.                     array(
  74.                         'GETvar' => 'tx_ttnews[cat]',
  75.                     ),
  76.                 ),
  77.                 // news articles and searchwords
  78.                 'article' => array(
  79.                     array(
  80.                         'GETvar' => 'tx_ttnews[tt_news]',
  81.                         'lookUpTable' => array(
  82.                             'table' => 'tt_news',
  83.                             'id_field' => 'uid',
  84.                             'alias_field' => 'title',
  85.                             'addWhereClause' => ' AND NOT deleted',
  86.                             'useUniqueCache' => 1,
  87.                             'useUniqueCache_conf' => array(
  88.                                 'strtolower' => 1,
  89.                                 'spaceCharacter' => '-',
  90.                             ),
  91.                         ),
  92.                     ),
  93.                     array(
  94.                         'GETvar' => 'tx_ttnews[backPid]',
  95.                     ),
  96.                     array(
  97.                         'GETvar' => 'tx_ttnews[swords]',
  98.                     ),
  99.                 ),
  100.             ),
  101.         ),
  102.         // configure filenames for different pagetypes
  103.         'fileName' => array(
  104.             'defaultToHTMLsuffixOnPrev' => 0,
  105.             'index' => array(
  106.                 'print.html' => array(
  107.                     'keyValues' => array(
  108.                         'type' => 98,
  109.                     ),
  110.                 ),
  111.                 'rss.xml' => array(
  112.                     'keyValues' => array(
  113.                         'type' => 100,
  114.                     ),
  115.                 ),
  116.                 'rss091.xml' => array(
  117.                     'keyValues' => array(
  118.                         'type' => 101,
  119.                     ),
  120.                 ),
  121.                 'rdf.xml' => array(
  122.                     'keyValues' => array(
  123.                         'type' => 102,
  124.                     ),
  125.                 ),
  126.                 'atom.xml' => array(
  127.                     'keyValues' => array(
  128.                         'type' => 103,
  129.                     ),
  130.                 ),
  131.             ),
  132.         ),
  133.     ),
  134. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement