Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Typo3 -> RealURL -> КраÑ?ивые урлы (See related posts)

// description of your code here

   1  
   2  // insert code here..
   3  $TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array(
   4  	'init' => array(
   5  		'enableCHashCache' => 1,
   6  		'enableUrlDecodeCache' => 1,
   7  		'enableUrlEncodeHash' => 1,
   8  //		'postVarSet_failureMode' => 'redirect_goodUpperDir',
   9  		),
  10  	'rewrite' => array(
  11  		),
  12  	'preVars' => array(
  13  		/*
  14  		array(
  15  			'GETvar' => 'L',
  16  			'valueMap' => array(
  17  				'de' => '0',
  18  				'de' => '1',
  19  				'valueDefault' => 'de',
  20  				),
  21  			),
  22  		*/
  23  		),
  24  	'pagePath' => array(
  25  		'type' => 'user',
  26  		'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
  27  		'spaceCharacter' => '-',
  28  		'languageGetVar' => 'L',
  29  		'expireDays' => 3,
  30  		'segTitleFieldList' => 'tx_realurl_pathsegment,alias,uid',
  31  		),
  32  	'fileName' => array (
  33  #		'defaultToHTMLsuffixOnPrev' => 1,
  34  		'index' => array(
  35  			'page.html' => array(
  36  				'keyValues' => array (
  37  					'type' => 1,
  38  		        		),
  39  				),
  40  			),
  41  		'print.html' => array(
  42  			'keyValues' => array (
  43  				'type' => 98,
  44  				),
  45  			),
  46  		),
  47  	'fixedPostVarSets' => array(
  48  		),
  49  	'postVarSets' => array(
  50  		'_DEFAULT' => array(
  51  			//archive
  52  			'period' => array (
  53  				array (
  54  					'condPrevValue' => -1,
  55  					'GETvar' => 'tx_ttnews[pS]',
  56  					//'valueMap => array()
  57  					),
  58  				array (
  59  					'GETvar' => 'tx_ttnews[pL]',
  60  					//'valueMap => array()
  61  					),
  62  	  
  63  				array (
  64  					'GETvar' => 'tx_ttnews[arc]',
  65  					'valueMap' => array(
  66  						'non-archived' => -1,
  67  						),
  68  					),
  69  	  			),
  70  	  
  71  			'browse' => array (
  72  				array (
  73  					'GETvar' => 'tx_ttnews[pointer]',
  74  					),
  75  				),
  76  	  		'select' => array (
  77  				array (
  78  					'GETvar' => 'tx_ttnews[cat]',
  79  					'lookUpTable' => array (
  80  						'table'		=>	'tt_news_cat',
  81  						'id_field'	=>	'uid',
  82  						'alias_field'	=>	'title',
  83  						'addWhereClause'=>	'AND NOT deleted',
  84  						'useUniqueCache'=>	1,
  85  						'useUniqueCache_conf'	=>	array (
  86  							'strtolower'		=>	1,
  87  							'spaceCharacter'	=>	'-',
  88  							),
  89  						),
  90  					),
  91  				),
  92  	 		'article' => array( 
  93  				array (
  94  					'GETvar' => 'tx_ttnews[backPid]',
  95  					// 'valueMap => array(
  96  					// ),
  97  					),
  98  				array (
  99  					'GETvar' => 'tx_ttnews[tt_news]',
 100  					'lookUpTable' => array (
 101  						'table'		=>	'tt_news',
 102  						'id_field'	=>	'uid',
 103  						'alias_field'	=>	'title',
 104  						'maxLength'	=>	12,
 105  						'addWhereClause'=>	'AND NOT deleted',
 106  						'useUniqueCache'=>	1,
 107  						'useUniqueCache_conf'	=>	array (
 108  							'strtolower'		=>	1,
 109  							'spaceCharacter'	=>	'-',
 110  							),
 111  						),
 112  					),
 113  				),
 114  			),
 115  		),  
 116  	);
 117  
 118  $TYPO3_CONF_VARS["FE"]["pageNotFound_handling"] = 'READFILE:fileadmin/templates/html/404.html';
 119  $TYPO3_CONF_VARS["SYS"]["enable_DLOG"] = 'true';

You need to create an account or log in to post comments to this site.


Click here to browse all 5355 code snippets

Related Posts