EPONAP

20161020 - realurl_conf.php

Oct 20th, 2016
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 7.89 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.  
  34.         'index' => array(
  35.             'sitemap.xml' => array(
  36.                 'keyValues' => array(
  37.                     'type' => 841132,
  38.                 ),
  39.             ),
  40.            
  41.             'feed.rss' => array(
  42.                 'keyValues' => array(
  43.                     type => 9818,
  44.                 ),
  45.             ),
  46.            
  47.             'calender.ical' => array (
  48.                 'keyValue' => array(
  49.                     type => 9819,
  50.                 ),
  51.             ),
  52.  
  53.             'sitemap.txt' => array(
  54.                 'keyValues' => array(
  55.                     'type' => 841131,
  56.                 ),
  57.             ),
  58.  
  59.             'robots.txt' => array(
  60.                 'keyValues' => array(
  61.                     'type' => 841133
  62.                 ),
  63.             ),
  64.  
  65.             'drucken.html' => array(
  66.                 'keyValues' => array(
  67.                     'type' => '98',
  68.                     'print' => '1'
  69.                 ),
  70.             ),
  71.  
  72.             'index.html' => array(
  73.                 'keyValues' => array(
  74.                     'type' => '0',
  75.                 ),
  76.             ),
  77.         ),
  78.         'defaultToHTMLsuffixOnPrev' => true,
  79.         'acceptHTMLsuffix' => true,
  80.     ),
  81.    
  82.     'redirects'  => array(),
  83.     'preVars' => array(
  84.         array(
  85.             'GETvar' => 'no_cache',
  86.             'valueMap' => array(
  87.                 'nc' => 1
  88.             ),
  89.             'noMatch' => 'bypass'
  90.         ),
  91.         array(
  92.             'GETvar' => 'L',
  93.             'valueMap' => array(
  94.                 // Sprachvariable Deutsch
  95.                 'de' => '0',
  96.             ),
  97.         'noMatch' => 'bypass',
  98.         ),
  99.     ),
  100.  
  101.     'fixedPostVars' => array(),
  102.     'postVarSets' => array(
  103.         '_DEFAULT' => array(
  104.        
  105.             // T3extBLOG Begin
  106.             't3extblog-action' => array(
  107.                 array(
  108.                     'GETvar' => 'tx_t3extblog_blogsystem[action]',
  109.                     'noMatch' => 'bypass',
  110.                 ),
  111.             ),
  112.             'article' => array(
  113.                 array(
  114.                     'GETvar' => 'tx_t3extblog_blogsystem[year]',
  115.                 ),
  116.                 array(
  117.                     'GETvar' => 'tx_t3extblog_blogsystem[month]',
  118.                 ),
  119.                 array(
  120.                     'GETvar' => 'tx_t3extblog_blogsystem[day]',
  121.                 ),
  122.                 array(
  123.                     'GETvar' => 'tx_t3extblog_blogsystem[post]',
  124.                     'lookUpTable' => array(
  125.                         'table' => 'tx_t3blog_post',
  126.                         'id_field' => 'uid',
  127.                         'alias_field' => 'title',
  128.                         'addWhereClause' => ' AND NOT deleted AND NOT hidden',
  129.                         'useUniqueCache' => 1,
  130.                         'useUniqueCache_conf' => array(
  131.                             'strtolower' => 1,
  132.                             'spaceCharacter' => '-',
  133.                         ),
  134.                         'enable404forInvalidAlias' => 1,
  135.                         'autoUpdate' => 1,
  136.                         'expireDays' => 180,
  137.                     ),
  138.                 ),
  139.             ),
  140.             // this is sufficient because we only need to change the controller keyword
  141.             // as create is the default action for comment controller
  142.             'comment' => array(
  143.                 array(
  144.                     'GETvar' => 'tx_t3extblog_blogsystem[controller]',
  145.                     'noMatch' => 'bypass',
  146.                     'valueMap' => array(
  147.                         'new' => 'Comment',
  148.                     ),
  149.                 ),
  150.             ),
  151.             'permalink' => array(
  152.                 array(
  153.                     'GETvar' => 'tx_t3extblog_blogsystem[permalinkPost]',
  154.                 ),
  155.             ),
  156.             'preview' => array(
  157.                 array(
  158.                     'GETvar' => 'tx_t3extblog_blogsystem[previewPost]',
  159.                 ),
  160.             ),
  161.             'tags' => array(
  162.                 array(
  163.                     'GETvar' => 'tx_t3extblog_blogsystem[tag]',
  164.                 ),
  165.             ),
  166.             'category' => array(
  167.                 array(
  168.                     'GETvar' => 'tx_t3extblog_blogsystem[category]',
  169.                     'lookUpTable' => array(
  170.                         'table' => 'tx_t3blog_cat',
  171.                         'id_field' => 'uid',
  172.                         'alias_field' => 'catname',
  173.                         'addWhereClause' => ' AND deleted !=1 AND hidden !=1',
  174.                         'useUniqueCache' => 1,
  175.                         'useUniqueCache_conf' => array(
  176.                             'strtolower' => 1,
  177.                             'spaceCharacter' => '-',
  178.                         ),
  179.                         'enable404forInvalidAlias' => 1,
  180.                         'autoUpdate' => 1,
  181.                         'expireDays' => 180,
  182.                     ),
  183.                 ),
  184.             ),
  185.             // TX3BLOG - End
  186.            
  187.             // Indexedsearch - Begin
  188.             'Suche' => array(
  189.                 array(
  190.                     'GETvar' => 'tx_indexedsearch[sword]'
  191.                 ),
  192.                 array(
  193.                     'GETvar' => 'tx_indexedsearch[ext]'
  194.                 ),
  195.                 array(
  196.                     'GETvar' => 'tx_indexedsearch[submit_button]'
  197.                 ),
  198.                 array(
  199.                     'GETvar' => 'tx_indexedsearch[_sections]'
  200.                 ),
  201.                 array(
  202.                     'GETvar' => 'tx_indexedsearch[pointer]'
  203.                 ),
  204.             ),
  205.  
  206.             'seite' => array (
  207.                 array(
  208.                     'GETvar' => 'print',
  209.                     'valueMap' => array(
  210.                         'drucken' => '1',
  211.                     ),
  212.                     'noMatch' => 'bypass',
  213.                 ),
  214.             ),
  215.             // Indexedsearch - End
  216.            
  217.             // TX_NEWS - Begin
  218.            
  219.             'uebersicht' => array(
  220.                 array(
  221.                     'GETvar' => 'tx_news_pi1[@widget_0][currentPage]',
  222.                 ),
  223.             ),
  224.            
  225.             'nachricht' => array(
  226.                 array(
  227.                     'GETvar' => 'tx_news_pi1[action]',
  228.                 ),
  229.                 array(
  230.                     'GETvar' => 'tx_news_pi1[controller]',
  231.                 ),
  232.                 array(
  233.                     'GETvar' => 'tx_news_pi1[year]',
  234.                 ),
  235.                 array(
  236.                     'GETvar' => 'tx_news_pi1[month]',
  237.                 ),
  238.                 array(
  239.                     'GETvar' => 'tx_news_pi1[day]',
  240.                 ),
  241.                 array(
  242.                     'GETvar' => 'tx_news_pi1[news]',
  243.                     'lookUpTable' => array(
  244.                         'table' => 'tx_news_domain_model_news',
  245.                         'id_field' => 'uid',
  246.                         'alias_field' => 'title',
  247.                         'addWhreClause' => ' AND NOT deleted',
  248.                         'useUniqueCahce' => 1,
  249.                         'useUniqueCache_conf' => array(
  250.                             'strtolower' => 1,
  251.                             'spaceCharacter' => '-',
  252.                         ),
  253.                     ),
  254.                 ),
  255.             ),
  256.            
  257.             // TX_NEWS - End
  258.         ),
  259.     ),
  260. );
  261. ?>
Advertisement
Add Comment
Please, Sign In to add comment