EPONAP

realurl_conf.php

Aug 19th, 2016
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 9.12 KB | None | 0 0
  1. <?php
  2. /*
  3. if (PHP_SAPI === 'cli') {
  4.     // cache config for CLI here
  5.     $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['extbase_object']['backend'] = 'TYPO3\\CMS\\Core\\Cache\\Backend\\Typo3DatabaseBackend';
  6. };
  7.  
  8. */
  9. // realurl naming precedence configuration
  10. $TYPO3_CONF_VARS['FE']['addRootLineFields'] .= ',tx_realurl_pathsegment,alias,title';
  11.  
  12. $TYPO3_CONF_VARS['EXTCONF']['realurl'] = array(
  13.     'encodeSpURL_postProc' => array(
  14.         'yag' => 'EXT:yag/Classes/Hooks/RealUrlHook.php:user_Tx_Yag_Hooks_RealUrl->encodeSpURL_postProc',
  15.     ),
  16.     'decodeSpURL_preProc' => array(
  17.         'yag' => 'EXT:yag/Classes/Hooks/RealUrlHook.php:user_Tx_Yag_Hooks_RealUrl->decodeSpURL_preProc',
  18.     ),
  19. );
  20. $TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array(
  21.     'init' => array(
  22.         'enableCHashCache' => true,
  23.         'appendMissingSlash' => 'ifNotFile',
  24.         'adminJumpToBackend' => true,
  25.         'enableUrlDecodeCache' => true,
  26.         'enableUrlEncodeCache' => true,
  27.         'emptyUrlReturnValue' => '/',
  28.         // Allow for proper SEO 404 handling
  29.         'postVarSet_failureMode' => ''
  30.     ),
  31.     'redirects'  => array(),
  32.     'preVars' => array(
  33.         array(
  34.             'GETvar' => 'no_cache',
  35.             'valueMap' => array(
  36.                 'nc' => 1
  37.             ),
  38.             'noMatch' => 'bypass'
  39.         ),
  40.         array(
  41.             'GETvar' => 'L',
  42.             'valueMap' => array(
  43.                 // Sprachvariable Deutsch
  44.                 'de' => '0',
  45.             ),
  46.         'noMatch' => 'bypass',
  47.         ),
  48.     ),
  49.  
  50.     // PAGEPATH mit Standard-Realurl-Konfiguration
  51.     'pagePath' => array(
  52.         'type'   => 'user',
  53.         'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
  54.         'spaceCharacter' => '-',
  55.         'languageGetVar' => 'L',
  56.         'rootpage_id'  => 1,
  57.         'expireDays' => 30,
  58.         // Nimmt Sysordner aus der Rootline (aktuell auskommentiert!)
  59.         'excludeDoktypes' => '254',
  60.         'segTitleFieldList' => 'tx_realurl_pathsegment,alias,title'
  61.     ),
  62.  
  63.     'fixedPostVars' => array(),
  64.     'postVarSets' => array(
  65.         '_DEFAULT' => array(
  66.             // T3extBLOG
  67.                 /* BEGIN COPY */
  68.  
  69.                 't3extblog-action' => array(
  70.                     array(
  71.                         'GETvar' => 'tx_t3extblog_blogsystem[action]',
  72.                         'noMatch' => 'bypass',
  73.                     ),
  74.                 ),
  75.                 'article' => array(
  76.                     array(
  77.                         'GETvar' => 'tx_t3extblog_blogsystem[year]',
  78.                     ),
  79.                     array(
  80.                         'GETvar' => 'tx_t3extblog_blogsystem[month]',
  81.                     ),
  82.                     array(
  83.                         'GETvar' => 'tx_t3extblog_blogsystem[day]',
  84.                     ),
  85.                     array(
  86.                         'GETvar' => 'tx_t3extblog_blogsystem[post]',
  87.                         'lookUpTable' => array(
  88.                             'table' => 'tx_t3blog_post',
  89.                             'id_field' => 'uid',
  90.                             'alias_field' => 'title',
  91.                             'addWhereClause' => ' AND NOT deleted AND NOT hidden',
  92.                             'useUniqueCache' => 1,
  93.                             'useUniqueCache_conf' => array(
  94.                                 'strtolower' => 1,
  95.                                 'spaceCharacter' => '-',
  96.                             ),
  97.                             'enable404forInvalidAlias' => 1,
  98.                             'autoUpdate' => 1,
  99.                             'expireDays' => 180,
  100.                         ),
  101.                     ),
  102.                 ),
  103.                 // this is sufficient because we only need to change the controller keyword
  104.                 // as create is the default action for comment controller
  105.                 'comment' => array(
  106.                     array(
  107.                         'GETvar' => 'tx_t3extblog_blogsystem[controller]',
  108.                         'noMatch' => 'bypass',
  109.                         'valueMap' => array(
  110.                             'new' => 'Comment',
  111.                         ),
  112.                     ),
  113.                 ),
  114.                 'permalink' => array(
  115.                     array(
  116.                         'GETvar' => 'tx_t3extblog_blogsystem[permalinkPost]',
  117.                     ),
  118.                 ),
  119.                 'preview' => array(
  120.                     array(
  121.                         'GETvar' => 'tx_t3extblog_blogsystem[previewPost]',
  122.                     ),
  123.                 ),
  124.                 'tags' => array(
  125.                     array(
  126.                         'GETvar' => 'tx_t3extblog_blogsystem[tag]',
  127.                     ),
  128.                 ),
  129.                 'category' => array(
  130.                     array(
  131.                         'GETvar' => 'tx_t3extblog_blogsystem[category]',
  132.                         'lookUpTable' => array(
  133.                             'table' => 'tx_t3blog_cat',
  134.                             'id_field' => 'uid',
  135.                             'alias_field' => 'catname',
  136.                             'addWhereClause' => ' AND deleted !=1 AND hidden !=1',
  137.                             'useUniqueCache' => 1,
  138.                             'useUniqueCache_conf' => array(
  139.                                 'strtolower' => 1,
  140.                                 'spaceCharacter' => '-',
  141.                             ),
  142.                             'enable404forInvalidAlias' => 1,
  143.                             'autoUpdate' => 1,
  144.                             'expireDays' => 180,
  145.                         ),
  146.                     ),
  147.                 ),
  148.  
  149.                 /* END COPY */
  150.  
  151.             // JPPAGETEASER
  152.                 'teaserseite' => array (
  153.                     array (
  154.                         'GETvar' => 'tx_jppageteaser_pi1[pointer]',
  155.                     ),
  156.                 ),
  157.  
  158.                 // TT_NEWS: Archivparameter
  159.                 'datum' => array(
  160.                     array(
  161.                         'GETvar' => 'tx_ttnews[year]'
  162.                     ),
  163.                     array(
  164.                         'GETvar' => 'tx_ttnews[month]',
  165.                     ),
  166.                     array(
  167.                         'GETvar' => 'tx_ttnews[day]'
  168.                     ),
  169.                 ),
  170.  
  171.                 // TT_NEWS Seitenbrowser
  172.                 'npage' => array(
  173.                     array(
  174.                         'GETvar' => 'tx_ttnews[pointer]'
  175.                     ),
  176.                 ),
  177.  
  178.                 // TT_NEWS: Katalogansicht
  179.                 'rubrik' => array (
  180.                     array(
  181.                         'GETvar' => 'tx_ttnews[cat]',
  182.                         'lookUpTable' => array(
  183.                             'table' => 'tt_news_cat',
  184.                             'id_field' => 'uid',
  185.                             'alias_field' => 'title',
  186.                             'addWhereClause' => ' AND deleted != 1',
  187.                             'useUniqueCache' => 1,
  188.                             'useUniqueCache_conf' => array(
  189.                                 'strtolower' => 1
  190.                             ),
  191.                         ),
  192.                     ),
  193.                 ),
  194.  
  195.                 // TT_NEWS: Detailansicht
  196.                 'artikel' => array(
  197.                     array(
  198.                         'GETvar' => 'tx_ttnews[tt_news]',
  199.                         'lookUpTable' => array(
  200.                             'table' => 'tt_news',
  201.                             'id_field' => 'uid',
  202.                             // MLC Goolge wants uniqueness for spidering
  203.                             'alias_field' => 'concat(title)',
  204.                             'addWhereClause' => ' AND deleted != 1',
  205.                             'useUniqueCache' => 1,
  206.                             'useUniqueCache_conf' => array(
  207.                                 'strtolower' => 1,
  208.                                 'spaceCharacter' => '-'
  209.                             ),
  210.                         ),
  211.                     ), 
  212.                     array(
  213.                         'GETvar' => 'tx_ttnews[swords]'
  214.                     ),
  215.                     array(
  216.                         'GETvar' => 'news_search[search_text]'
  217.                     )
  218.                 ),
  219.                 // NEWLOGINBOX
  220.                 'login' => array(
  221.                     array(
  222.                         'GETvar' => 'tx_newloginbox_pi3[showUid]'
  223.                     ),
  224.                 ),
  225.             'forgot-login' => array(
  226.                 array(
  227.                     'GETvar' => 'tx_newloginbox_pi1[forgot]'
  228.                 )
  229.             ),
  230.             // Indexedsearch
  231.             'Suche' => array(
  232.                 array(
  233.                     'GETvar' => 'tx_indexedsearch[sword]'
  234.                 ),
  235.                 array(
  236.                     'GETvar' => 'tx_indexedsearch[ext]'
  237.                 ),
  238.                 array(
  239.                     'GETvar' => 'tx_indexedsearch[submit_button]'
  240.                 ),
  241.                 array(
  242.                     'GETvar' => 'tx_indexedsearch[_sections]'
  243.                 ),
  244.                 array(
  245.                     'GETvar' => 'tx_indexedsearch[pointer]'
  246.                 ),
  247.             ),
  248.  
  249.             // Modern Linklist
  250.             'link' => array(
  251.                 array(
  252.                     'GETvar' => 'tx_ablinklist_pi1[action]',
  253.                     'valueMap' => array(
  254.                         'kat' => 'getviewcategory',
  255.                         'katalog' => 'getviewcatalog',
  256.                         'neu' => 'getviewaddnewlink',
  257.                         'aktiv' => 'getviewclickedlink',
  258.                         'details' => 'getviewdetailsforlink',
  259.                         'defekt' => 'getviewreportbrokenlink',
  260.                         'bewertung' => 'getviewratelink',
  261.                     ),
  262.                 ),
  263.             ),
  264.             'cid' => array (
  265.                 array (
  266.                     'GETvar' => 'tx_ablinklist_pi1[cid]',
  267.                 ),
  268.             ),
  269.             'rubrik' => array(
  270.                 array(
  271.                     'GETvar' => 'tx_ablinklist_pi1[category_uid]',
  272.                     'valueMap' => array(
  273.                         'start' => '0',
  274.                     ),
  275.                     'lookUpTable' => array(
  276.                         'table' => 'tx_ablinklist_category',
  277.                         'id_field' => 'uid',
  278.                         'alias_field' => 'label',
  279.                         'addWhereClause' => ' AND deleted != 1',
  280.                         'useUniqueCache' => 1,
  281.                         'useUniqueCache_conf' => array(
  282.                             'strtolower' => 1,
  283.                             'spaceCharacter' => '-',
  284.                         ),
  285.                     ),
  286.                 ),
  287.             ),
  288.             'katalog' => array(
  289.                 array(
  290.                     'GETvar' => 'tx_ablinklist_pi1[uid]',
  291.                     'lookUpTable' => array(
  292.                         'table' => 'tx_ablinklist_link',
  293.                         'id_field' => 'uid',
  294.                         'alias_field' => 'label',
  295.                         'addWhereClause' => ' AND deleted != 1',
  296.                         'useUniqueCache' => 1,
  297.                         'useUniqueCache_conf' => array(
  298.                             'strtolower' => 1,
  299.                             'spaceCharacter' => '-',
  300.                         ),
  301.                     ),
  302.                 ),
  303.             ),
  304.             'aktuell' => array(
  305.                 array(
  306.                     'GETvar' => 'tx_ablinklist_pi1[pointer]',
  307.                 ),
  308.             ),
  309.  
  310.             // Alphabeticalindex
  311.             'alpha' => array (
  312.                 array (
  313.                     'GETvar' => 'tx_clalphabeticalindex_pi1[achar]',
  314.                 ),
  315.             ),
  316.  
  317.             'seite' => array (
  318.                 array(
  319.                     'GETvar' => 'print',
  320.                     'valueMap' => array(
  321.                         'drucken' => '1',
  322.                     ),
  323.                     'noMatch' => 'bypass',
  324.                 ),
  325.             ),
  326.         ),
  327.     ),
  328.  
  329.     'fileName' => array (
  330.         'defaultToHTMLsuffixOnPrev' => 1,
  331.  
  332.         'index' => array(
  333.             'sitemap.xml' => array(
  334.                 'keyValues' => array(
  335.                     'type' => 841132,
  336.                 ),
  337.             ),
  338.  
  339.             'sitemap.txt' => array(
  340.                 'keyValues' => array(
  341.                     'type' => 841131,
  342.                 ),
  343.             ),
  344.  
  345.             'robots.txt' => array(
  346.                 'keyValues' => array(
  347.                     'type' => 841133,
  348.                 ),
  349.             ),
  350.  
  351.             'drucken.html' => array(
  352.                 'keyValues' => array(
  353.                     'type' => '98',
  354.                     'print' => '1'
  355.                 ),
  356.             ),
  357.  
  358.             'index.html' => array(
  359.                 'keyValues' => array(
  360.                     'type' => '0',
  361.                 ),
  362.             ),
  363.             // TT_NEWS: Mapping RSS2
  364.             'rss.xml' => array(
  365.                 'keyValues' => array(
  366.                     'type' => '100',
  367.                 ),
  368.             ),
  369.             // TT_NEWS: Mapping RSS0.91
  370.             'rss091.xml' => array(
  371.                 'keyValues' => array(
  372.                     'type' => '101',
  373.                 ),
  374.             ),
  375.             // TT_NEWS: Mapping RDF
  376.             'rdf.xml' => array (
  377.                 'keyValues' => array(
  378.                     'type' => '102',                   
  379.                 ),
  380.             ),
  381.             // TT_NEWS: Mapping ATOM
  382.             'atom.xml' => array (
  383.                 'keyValues' => array(
  384.                     'type' => '103',
  385.                 ),
  386.             ),
  387.         ),
  388.         'defaultToHTMLsuffixOnPrev' => 1,
  389.         'acceptHTMLsuffix' => 1
  390.     ),
  391. );
Advertisement
Add Comment
Please, Sign In to add comment