Advertisement
jochla

realurlconf.php

Mar 5th, 2013
23
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.60 KB | None | 0 0
  1. <?php
  2. $TYPO3_CONF_VARS['FE']['addRootLineFields'].= ',tx_realurl_pathsegment';
  3. $TYPO3_CONF_VARS['EXTCONF']['realurl'] = array(
  4.     'encodeSpURL_postProc' => array(
  5.         'yag' => 'EXT:yag/Classes/Hooks/RealUrlHook.php:user_Tx_Yag_Hooks_RealUrl->encodeSpURL_postProc',
  6.     ),
  7.     'decodeSpURL_preProc' => array(
  8.         'yag' => 'EXT:yag/Classes/Hooks/RealUrlHook.php:user_Tx_Yag_Hooks_RealUrl->decodeSpURL_preProc',
  9.     ),
  10.     '_DEFAULT' => array(
  11.     'pagePath' => array(
  12.         'type' => 'user',
  13.         'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
  14.         'spaceCharacter' => '-',
  15.         'languageGetVar' => 'L',
  16.         'expireDays' => '3',
  17.         'rootpage_id' => 1
  18.         #'firstHitPathCache'=> 1
  19.    ),
  20.     'init' => array(
  21.         'enableCHashCache' => TRUE,
  22.         'enableCHashCache' => 1,
  23.         'respectSimulateStaticURLs' => 1,
  24.         'enableUrlDecodeCache' => 1,
  25.         'enableUrlEncodeCache' => 1,
  26.                 'appendMissingSlash' => 'ifNotFile'
  27.     ),
  28.     'preVars' => array(
  29.                 '0' => array (
  30.                         'GETvar' => 'no_cache',
  31.                         'valueMap' => array (
  32.                                 'nc' => '1',
  33.                         ),
  34.                         'noMatch' => 'bypass'
  35.                 ),
  36.     ),
  37.         'fileName' => array (
  38. //
  39. // if you don't want .html-URLs set the following to "false" (e.g. 'defaultToHTMLsuffixOnPrev' => false,)
  40. // then you get http://www.yourdomain.com/imprint/ instead of http://www.yourdomain.com/imprint.html
  41. //
  42.                 'defaultToHTMLsuffixOnPrev' => true,
  43.                 'index' => array (
  44.                         'sitemap.xml' => array (
  45.                                 'keyValues' => array (
  46.                                         'type' => '776',
  47.                                 ),
  48.                         ),
  49.                         'rss-newsfeed.xml' => array (
  50.                                 'keyValues' => array (
  51.                                         'type' => '9818',
  52.                                 ),
  53.                         ),
  54.                         'rss-newsfeed.html' => array (
  55.                                 'keyValues' => array (
  56.                                         'type' => '9818',
  57.                                 ),
  58.                         ),
  59.                 ),
  60.         ),
  61.     'fixedPostVars' => array(
  62.         'newsDetailConfiguration' => array(
  63.             array(
  64.                 'GETvar' => 'tx_news_pi1[news]',
  65.                 'lookUpTable' => array(
  66.                     'table' => 'tx_news_domain_model_news',
  67.                     'id_field' => 'uid',
  68.                     'alias_field' => 'title',
  69.                     'addWhereClause' => ' AND NOT deleted',
  70.                     'useUniqueCache' => 1,
  71.                     'useUniqueCache_conf' => array(
  72.                         'strtolower' => 1,
  73.                         'spaceCharacter' => '-'
  74.                     ),
  75.                 ),
  76.             ),
  77.         ),
  78.         'newsCategoryConfiguration' => array(
  79.             array(
  80.                 'GETvar' => 'tx_news_pi1[overwriteDemand][categories]',
  81.                 'lookUpTable' => array(
  82.                     'table' => 'tx_news_domain_model_category',
  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.         ),
  94.         'newsTagConfiguration' => array(
  95.             array(
  96.                 'GETvar' => 'tx_news_pi1[overwriteDemand][tags]',
  97.                 'lookUpTable' => array(
  98.                     'table' => 'tx_news_domain_model_tag',
  99.                     'id_field' => 'uid',
  100.                     'alias_field' => 'title',
  101.                     'addWhereClause' => ' AND NOT deleted',
  102.                     'useUniqueCache' => 1,
  103.                     'useUniqueCache_conf' => array(
  104.                         'strtolower' => 1,
  105.                         'spaceCharacter' => '-'
  106.                     ),
  107.                 ),
  108.             ),
  109.         ),
  110.                 # Set page IDs
  111.        '58' => 'newsDetailConfiguration',
  112.         #'71' => 'newsTagConfiguration',
  113.        #'72' => 'newsCategoryConfiguration',
  114.    ),
  115.     'postVarSets' => array(
  116.         '_DEFAULT' => array(
  117.             'controller' => array(
  118.                 array(
  119.                     'GETvar' => 'tx_news_pi1[action]',
  120.                     'noMatch' => 'bypass'
  121.                 ),
  122.                 array(
  123.                     'GETvar' => 'tx_news_pi1[controller]',
  124.                     'noMatch' => 'bypass'
  125.                 ),
  126.             ),
  127.  
  128.             'dateFilter' => array(
  129.                 array(
  130.                     'GETvar' => 'tx_news_pi1[overwriteDemand][year]',
  131.                 ),
  132.                 array(
  133.                     'GETvar' => 'tx_news_pi1[overwriteDemand][month]',
  134.                 ),
  135.             ),
  136.         ),
  137.     ),
  138.     )
  139. );
  140. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement