DZone 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

Snippets has posted 5883 posts at DZone. View Full User Profile

Typo3 -> RealURL -> КраÑ?ивые урлы

06.15.2006
| 2965 views |
  • submit to reddit
        // description of your code here

// insert code here..
$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array(
	'init' => array(
		'enableCHashCache' => 1,
		'enableUrlDecodeCache' => 1,
		'enableUrlEncodeHash' => 1,
//		'postVarSet_failureMode' => 'redirect_goodUpperDir',
		),
	'rewrite' => array(
		),
	'preVars' => array(
		/*
		array(
			'GETvar' => 'L',
			'valueMap' => array(
				'de' => '0',
				'de' => '1',
				'valueDefault' => 'de',
				),
			),
		*/
		),
	'pagePath' => array(
		'type' => 'user',
		'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
		'spaceCharacter' => '-',
		'languageGetVar' => 'L',
		'expireDays' => 3,
		'segTitleFieldList' => 'tx_realurl_pathsegment,alias,uid',
		),
	'fileName' => array (
#		'defaultToHTMLsuffixOnPrev' => 1,
		'index' => array(
			'page.html' => array(
				'keyValues' => array (
					'type' => 1,
		        		),
				),
			),
		'print.html' => array(
			'keyValues' => array (
				'type' => 98,
				),
			),
		),
	'fixedPostVarSets' => array(
		),
	'postVarSets' => array(
		'_DEFAULT' => array(
			//archive
			'period' => array (
				array (
					'condPrevValue' => -1,
					'GETvar' => 'tx_ttnews[pS]',
					//'valueMap => array()
					),
				array (
					'GETvar' => 'tx_ttnews[pL]',
					//'valueMap => array()
					),
	  
				array (
					'GETvar' => 'tx_ttnews[arc]',
					'valueMap' => array(
						'non-archived' => -1,
						),
					),
	  			),
	  
			'browse' => array (
				array (
					'GETvar' => 'tx_ttnews[pointer]',
					),
				),
	  		'select' => array (
				array (
					'GETvar' => 'tx_ttnews[cat]',
					'lookUpTable' => array (
						'table'		=>	'tt_news_cat',
						'id_field'	=>	'uid',
						'alias_field'	=>	'title',
						'addWhereClause'=>	'AND NOT deleted',
						'useUniqueCache'=>	1,
						'useUniqueCache_conf'	=>	array (
							'strtolower'		=>	1,
							'spaceCharacter'	=>	'-',
							),
						),
					),
				),
	 		'article' => array( 
				array (
					'GETvar' => 'tx_ttnews[backPid]',
					// 'valueMap => array(
					// ),
					),
				array (
					'GETvar' => 'tx_ttnews[tt_news]',
					'lookUpTable' => array (
						'table'		=>	'tt_news',
						'id_field'	=>	'uid',
						'alias_field'	=>	'title',
						'maxLength'	=>	12,
						'addWhereClause'=>	'AND NOT deleted',
						'useUniqueCache'=>	1,
						'useUniqueCache_conf'	=>	array (
							'strtolower'		=>	1,
							'spaceCharacter'	=>	'-',
							),
						),
					),
				),
			),
		),  
	);

$TYPO3_CONF_VARS["FE"]["pageNotFound_handling"] = 'READFILE:fileadmin/templates/html/404.html';
$TYPO3_CONF_VARS["SYS"]["enable_DLOG"] = 'true';