EPONAP

realurl

Oct 8th, 2016
331
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 10.67 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']['p372493.mittwaldserver.info'] = array(
  7.     'init' => array(
  8.         'enableCHashCache' => true,
  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.     'redirects'  => array(),
  19.     'preVars' => array(
  20.         array(
  21.             'GETvar' => 'no_cache',
  22.             'valueMap' => array(
  23.                 'nc' => 1
  24.             ),
  25.             'noMatch' => 'bypass'
  26.         ),
  27.         array(
  28.             'GETvar' => 'L',
  29.             'valueMap' => array(
  30.                 // Sprachvariable Deutsch
  31.                 'de' => '0',
  32.             ),
  33.         'noMatch' => 'bypass',
  34.         ),
  35.     ),
  36.  
  37.     // PAGEPATH mit Standard-Realurl-Konfiguration
  38.     'pagePath' => array(
  39.         'type'   => 'user',
  40.         'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
  41.         'spaceCharacter' => '-',
  42.         'languageGetVar' => 'L',
  43.         'rootpage_id'  => 1,
  44.         'expireDays' => 30,
  45.         // Nimmt Sysordner aus der Rootline (aktuell auskommentiert!)
  46.         'excludeDoktypes' => '254',
  47.         'segTitleFieldList' => 'tx_realurl_pathsegment,alias,title'
  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.                 'dateFilter' => array(
  68.                     array(
  69.                         'GETvar' => 'tx_newss_pi1[year]',
  70.                     ),
  71.                     array(
  72.                         'GETvar' => 'tx_newss_pi1[month]',
  73.                         'valueMap' => array (
  74.                             'january' => '01',
  75.                             'february' => '02',
  76.                             'march' => '03',
  77.                             'april' => '04',
  78.                             'may' => '05',
  79.                             'june' => '06',
  80.                             'july' => '07',
  81.                             'august' => '08',
  82.                             'september' => '09',
  83.                             'october' => '10',
  84.                             'november' => '11',
  85.                             'december' => '12',
  86.                         ),
  87.                     ),
  88.                     array(
  89.                         'GETvar' => 'tx_newss_pi1[day]',
  90.                     ),
  91.                 ),
  92.                
  93.                 array(
  94.                     'GETvar' => 'tx_news_pi1[news]',
  95.                     'lookUpTable' => array(
  96.                         'table' => 'tx_news_domain_model_news',
  97.                         'id_field' => 'uid',
  98.                         'alias_field' => 'title',
  99.                         'addWhereClause' => ' AND NOT deleted',
  100.                         'useUniqueCache' => 1,
  101.                         'useUniqueCache_conf' => array(
  102.                             'strtolower' => 1,
  103.                             'spaceCharacter' => '-'
  104.                         ),
  105.                         'languageGetVar' => 'L',
  106.                         'languageExceptionUids' => '',
  107.                         'languageField' => 'sys_language_uid',
  108.                         'transOrigPointerField' => 'l10n_parent',
  109.                         'autoUpdate' => 1,
  110.                         'expireDays' => 180,
  111.                     ),
  112.                 ),
  113.             ), 
  114.     ),
  115.     'postVarSets' => array(
  116.         '_DEFAULT' => array(
  117.                
  118.             // NEWS
  119.            
  120.             'newsCategoryConfiguration' => array(
  121.                 array(
  122.                     'GETvar' => 'tx_news_pi1[overwriteDemand][categories]',
  123.                     'lookUpTable' => array(
  124.                         'table' => 'sys_category',
  125.                         'id_field' => 'uid',
  126.                         'alias_field' => 'title',
  127.                         'addWhereClause' => ' AND NOT deleted',
  128.                         'useUniqueCache' => 1,
  129.                         'useUniqueCache_conf' => array(
  130.                             'strtolower' => 1,
  131.                             'spaceCharacter' => '-'
  132.                         ),
  133.                     ),
  134.                 ),
  135.             ),
  136.             'newsTagConfiguration' => array(
  137.                 array(
  138.                     'GETvar' => 'tx_news_pi1[overwriteDemand][tags]',
  139.                     'lookUpTable' => array(
  140.                         'table' => 'tx_news_domain_model_tag',
  141.                         'id_field' => 'uid',
  142.                         'alias_field' => 'title',
  143.                         'addWhereClause' => ' AND NOT deleted',
  144.                         'useUniqueCache' => 1,
  145.                         'useUniqueCache_conf' => array(
  146.                             'strtolower' => 1,
  147.                             'spaceCharacter' => '-'
  148.                         ),
  149.                     ),
  150.                 ),
  151.             ),
  152.             '28' => 'newsDetailConfiguration',
  153. #           '701' => 'newsDetailConfiguration', // For additional detail pages, add their uid as well
  154. #           '71' => 'newsTagConfiguration',
  155. #           '72' => 'newsCategoryConfiguration',           
  156.            
  157.             'controller' => array(
  158.                 array(
  159.                     'GETvar' => 'tx_news_pi1[action]',
  160.                     'noMatch' => 'bypass'
  161.                 ),
  162.                 array(
  163.                     'GETvar' => 'tx_news_pi1[controller]',
  164.                     'noMatch' => 'bypass'
  165.                 ),
  166.             ),
  167.  
  168. //          'archiv' => array(
  169. //              'GETvar' => '',
  170. //              noMatch => 'bypass'
  171. //          ),
  172.            
  173.             'dateFilter' => array(
  174.                 array(
  175.                     'GETvar' => 'tx_newss_pi1[year]',
  176.                 ),
  177.                 array(
  178.                     'GETvar' => 'tx_newss_pi1[month]',
  179.                     'valueMap' => array (
  180.                         'january' => '01',
  181.                         'february' => '02',
  182.                         'march' => '03',
  183.                         'april' => '04',
  184.                         'may' => '05',
  185.                         'june' => '06',
  186.                         'july' => '07',
  187.                         'august' => '08',
  188.                         'september' => '09',
  189.                         'october' => '10',
  190.                         'november' => '11',
  191.                         'december' => '12',
  192.                     ),
  193.                 ),
  194.                 array(
  195.                     'GETvar' => 'tx_newss_pi1[day]',
  196.                 ),
  197.             ),
  198.             // NEWS
  199.            
  200.             // T3extBLOG
  201.             't3extblog-action' => array(
  202.                 array(
  203.                     'GETvar' => 'tx_t3extblog_blogsystem[action]',
  204.                     'noMatch' => 'bypass',
  205.                 ),
  206.             ),
  207.             'article' => array(
  208.                 array(
  209.                     'GETvar' => 'tx_t3extblog_blogsystem[year]',
  210.                 ),
  211.                 array(
  212.                     'GETvar' => 'tx_t3extblog_blogsystem[month]',
  213.                 ),
  214.                 array(
  215.                     'GETvar' => 'tx_t3extblog_blogsystem[day]',
  216.                 ),
  217.                 array(
  218.                     'GETvar' => 'tx_t3extblog_blogsystem[post]',
  219.                     'lookUpTable' => array(
  220.                         'table' => 'tx_t3blog_post',
  221.                         'id_field' => 'uid',
  222.                         'alias_field' => 'title',
  223.                         'addWhereClause' => ' AND NOT deleted AND NOT hidden',
  224.                         'useUniqueCache' => 1,
  225.                         'useUniqueCache_conf' => array(
  226.                             'strtolower' => 1,
  227.                             'spaceCharacter' => '-',
  228.                         ),
  229.                         'enable404forInvalidAlias' => 1,
  230.                         'autoUpdate' => 1,
  231.                         'expireDays' => 180,
  232.                     ),
  233.                 ),
  234.             ),
  235.             // this is sufficient because we only need to change the controller keyword
  236.             // as create is the default action for comment controller
  237.             'comment' => array(
  238.                 array(
  239.                     'GETvar' => 'tx_t3extblog_blogsystem[controller]',
  240.                     'noMatch' => 'bypass',
  241.                     'valueMap' => array(
  242.                         'new' => 'Comment',
  243.                     ),
  244.                 ),
  245.             ),
  246.             'permalink' => array(
  247.                 array(
  248.                     'GETvar' => 'tx_t3extblog_blogsystem[permalinkPost]',
  249.                 ),
  250.             ),
  251.             'preview' => array(
  252.                 array(
  253.                     'GETvar' => 'tx_t3extblog_blogsystem[previewPost]',
  254.                 ),
  255.             ),
  256.             'tags' => array(
  257.                 array(
  258.                     'GETvar' => 'tx_t3extblog_blogsystem[tag]',
  259.                 ),
  260.             ),
  261.             'category' => array(
  262.                 array(
  263.                     'GETvar' => 'tx_t3extblog_blogsystem[category]',
  264.                     'lookUpTable' => array(
  265.                         'table' => 'tx_t3blog_cat',
  266.                         'id_field' => 'uid',
  267.                         'alias_field' => 'catname',
  268.                         'addWhereClause' => ' AND deleted !=1 AND hidden !=1',
  269.                         'useUniqueCache' => 1,
  270.                         'useUniqueCache_conf' => array(
  271.                             'strtolower' => 1,
  272.                             'spaceCharacter' => '-',
  273.                         ),
  274.                         'enable404forInvalidAlias' => 1,
  275.                         'autoUpdate' => 1,
  276.                         'expireDays' => 180,
  277.                     ),
  278.                 ),
  279.             ),
  280.             // TX_NEWS
  281.            
  282.            
  283.            
  284.             // Indexedsearch
  285.             'Suche' => array(
  286.                 array(
  287.                     'GETvar' => 'tx_indexedsearch[sword]'
  288.                 ),
  289.                 array(
  290.                     'GETvar' => 'tx_indexedsearch[ext]'
  291.                 ),
  292.                 array(
  293.                     'GETvar' => 'tx_indexedsearch[submit_button]'
  294.                 ),
  295.                 array(
  296.                     'GETvar' => 'tx_indexedsearch[_sections]'
  297.                 ),
  298.                 array(
  299.                     'GETvar' => 'tx_indexedsearch[pointer]'
  300.                 ),
  301.             ),
  302.  
  303.             'seite' => array (
  304.                 array(
  305.                     'GETvar' => 'print',
  306.                     'valueMap' => array(
  307.                         'drucken' => '1',
  308.                     ),
  309.                     'noMatch' => 'bypass',
  310.                 ),
  311.             ),
  312.         ),
  313.     ),
  314.  
  315.     'fileName' => array (
  316.         'defaultToHTMLsuffixOnPrev' => true,
  317.  
  318.         'index' => array(
  319.             'sitemap.xml' => array(
  320.                 'keyValues' => array(
  321.                     'type' => 841132,
  322.                 ),
  323.             ),
  324.            
  325.             'feed.rss' => array(
  326.                 'keyValues' => array(
  327.                     type => 9818,
  328.                 ),
  329.             ),
  330.            
  331.             'calender.ical' => array (
  332.                 'keyValue' => array(
  333.                     type => 9819,
  334.                 ),
  335.             ),
  336.  
  337.             'sitemap.txt' => array(
  338.                 'keyValues' => array(
  339.                     'type' => 841131,
  340.                 ),
  341.             ),
  342.  
  343.             'robots.txt' => array(
  344.                 'keyValues' => array(
  345.                     'type' => 841133
  346.                 ),
  347.             ),
  348.  
  349.             'drucken.html' => array(
  350.                 'keyValues' => array(
  351.                     'type' => '98',
  352.                     'print' => '1'
  353.                 ),
  354.             ),
  355.  
  356.             'index.html' => array(
  357.                 'keyValues' => array(
  358.                     'type' => '0',
  359.                 ),
  360.             ),
  361.         ),
  362.         'defaultToHTMLsuffixOnPrev' => true,
  363.         'acceptHTMLsuffix' => true,
  364.     ),
  365.  
  366. );
  367. ?>
Advertisement
Add Comment
Please, Sign In to add comment