EPONAP

20161028 - realurl-conf

Oct 28th, 2016
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 7.01 KB | None | 0 0
  1. <?php
  2.  
  3. // realurl naming precedence configuration
  4. $TYPO3_CONF_VARS['FE']['addRootLineFields'] .= 'tx_realurl_pathsegment,alias,title';
  5.  
  6. $TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array(
  7.     'init' => array(
  8.         'enableCHashCache' => false,
  9.         'appendMissingSlash' => 'ifNotFile',
  10.         'adminJumpToBackend' => true,
  11.         'enableUrlDecodeCache' => true,
  12.         'enableUrlEncodeCache' => true,
  13.         'emptyUrlReturnValue' => '/',
  14.         // Allow for proper SEO 404 handling
  15.         'postVarSet_failureMode' => ''
  16.     ),
  17.    
  18.     // PAGEPATH mit Standard-Realurl-Konfiguration
  19.     'pagePath' => array(
  20.         'type'   => 'user',
  21.         'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
  22.         'spaceCharacter' => '-',
  23.         'languageGetVar' => 'L',
  24.         'rootpage_id'  => 1,
  25.         'expireDays' => 30,
  26.         // Nimmt Sysordner aus der Rootline (aktuell auskommentiert!)
  27.         'excludeDoktypes' => '254',
  28.         'segTitleFieldList' => 'tx_realurl_pathsegment,alias,title'
  29.     ),
  30.  
  31.     'fileName' => array (
  32.         'defaultToHTMLsuffixOnPrev' => true,
  33.          'index' => array(
  34.             'sitemap.xml' => array(
  35.                 'keyValues' => array(
  36.                     'type' => 841132,
  37.                 ),
  38.             ),
  39.            
  40.             'feed.rss' => array(
  41.                 'keyValues' => array(
  42.                     type => 9818,
  43.                 ),
  44.             ),
  45.            
  46.             'calender.ical' => array (
  47.                 'keyValue' => array(
  48.                     type => 9819,
  49.                 ),
  50.             ),
  51.  
  52.             'sitemap.txt' => array(
  53.                 'keyValues' => array(
  54.                     'type' => 841131,
  55.                 ),
  56.             ),
  57.  
  58.             'robots.txt' => array(
  59.                 'keyValues' => array(
  60.                     'type' => 841133
  61.                 ),
  62.             ),
  63.  
  64.             'drucken.html' => array(
  65.                 'keyValues' => array(
  66.                     'type' => '98',
  67.                     'print' => '1'
  68.                 ),
  69.             ),
  70.  
  71.             'index.html' => array(
  72.                 'keyValues' => array(
  73.                     'type' => '0',
  74.                 ),
  75.             ),
  76.         ),
  77.         'defaultToHTMLsuffixOnPrev' => true,
  78.         'acceptHTMLsuffix' => true,
  79.     ),
  80.    
  81.     'redirects'  => array(),
  82.     'preVars' => array(
  83.         array(
  84.             'GETvar' => 'no_cache',
  85.             'valueMap' => array(
  86.                 'nc' => 1
  87.             ),
  88.             'noMatch' => 'bypass'
  89.         ),
  90.         array(
  91.             'GETvar' => 'L',
  92.             'valueMap' => array(
  93.                 // Sprachvariable Deutsch
  94.                 'de' => '0',
  95.             ),
  96.         'noMatch' => 'bypass',
  97.         ),
  98.     ),
  99.  
  100.     'fixedPostVars' => array(),
  101.     'postVarSets' => array(
  102.         '_DEFAULT' => array(
  103.        
  104.             // T3extBLOG Begin
  105.             't3extblog-action' => array(
  106.                 array(
  107.                     'GETvar' => 'tx_t3extblog_blogsystem[action]',
  108.                     'noMatch' => 'bypass',
  109.                 ),
  110.             ),
  111.             'article' => array(
  112.                 array(
  113.                     'GETvar' => 'tx_t3extblog_blogsystem[year]',
  114.                 ),
  115.                 array(
  116.                     'GETvar' => 'tx_t3extblog_blogsystem[month]',
  117.                 ),
  118.                 array(
  119.                     'GETvar' => 'tx_t3extblog_blogsystem[day]',
  120.                 ),
  121.                 array(
  122.                     'GETvar' => 'tx_t3extblog_blogsystem[post]',
  123.                     'lookUpTable' => array(
  124.                         'table' => 'tx_t3blog_post',
  125.                         'id_field' => 'uid',
  126.                         'alias_field' => 'title',
  127.                         'addWhereClause' => ' AND NOT deleted AND NOT hidden',
  128.                         'useUniqueCache' => 1,
  129.                         'useUniqueCache_conf' => array(
  130.                             'strtolower' => 1,
  131.                             'spaceCharacter' => '-',
  132.                         ),
  133.                         'enable404forInvalidAlias' => 1,
  134.                         'autoUpdate' => 1,
  135.                         'expireDays' => 180,
  136.                     ),
  137.                 ),
  138.             ),
  139.             // this is sufficient because we only need to change the controller keyword
  140.             // as create is the default action for comment controller
  141.             'comment' => array(
  142.                 array(
  143.                     'GETvar' => 'tx_t3extblog_blogsystem[controller]',
  144.                     'noMatch' => 'bypass',
  145.                     'valueMap' => array(
  146.                         'new' => 'Comment',
  147.                     ),
  148.                 ),
  149.             ),
  150.             'permalink' => array(
  151.                 array(
  152.                     'GETvar' => 'tx_t3extblog_blogsystem[permalinkPost]',
  153.                 ),
  154.             ),
  155.             'preview' => array(
  156.                 array(
  157.                     'GETvar' => 'tx_t3extblog_blogsystem[previewPost]',
  158.                 ),
  159.             ),
  160.             'tags' => array(
  161.                 array(
  162.                     'GETvar' => 'tx_t3extblog_blogsystem[tag]',
  163.                 ),
  164.             ),
  165.             'category' => array(
  166.                 array(
  167.                     'GETvar' => 'tx_t3extblog_blogsystem[category]',
  168.                     'lookUpTable' => array(
  169.                         'table' => 'tx_t3blog_cat',
  170.                         'id_field' => 'uid',
  171.                         'alias_field' => 'catname',
  172.                         'addWhereClause' => ' AND deleted !=1 AND hidden !=1',
  173.                         'useUniqueCache' => 1,
  174.                         'useUniqueCache_conf' => array(
  175.                             'strtolower' => 1,
  176.                             'spaceCharacter' => '-',
  177.                         ),
  178.                         'enable404forInvalidAlias' => 1,
  179.                         'autoUpdate' => 1,
  180.                         'expireDays' => 180,
  181.                     ),
  182.                 ),
  183.             ),
  184.             // TX3BLOG - End
  185.            
  186.             // Indexedsearch - Begin
  187.             'Suche' => array(
  188.                 array(
  189.                     'GETvar' => 'tx_indexedsearch[sword]'
  190.                 ),
  191.                 array(
  192.                     'GETvar' => 'tx_indexedsearch[ext]'
  193.                 ),
  194.                 array(
  195.                     'GETvar' => 'tx_indexedsearch[submit_button]'
  196.                 ),
  197.                 array(
  198.                     'GETvar' => 'tx_indexedsearch[_sections]'
  199.                 ),
  200.                 array(
  201.                     'GETvar' => 'tx_indexedsearch[pointer]'
  202.                 ),
  203.             ),
  204.  
  205.             'seite' => array (
  206.                 array(
  207.                     'GETvar' => 'print',
  208.                     'valueMap' => array(
  209.                         'drucken' => '1',
  210.                     ),
  211.                     'noMatch' => 'bypass',
  212.                 ),
  213.             ),
  214.             // Indexedsearch - End
  215.         ),
  216.     ),
  217. );
  218. ?>
Advertisement
Add Comment
Please, Sign In to add comment