[TYPO3-shop] tt_products and RealURL (Solution)

Alexander master_nhg at mail.ru
Tue Apr 17 21:58:40 CEST 2007


Solution:

--------------
$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array(
	'init' => array (
		'enableCHashCache' => '1',
		'appendMissingSlash' => 'ifNotFile',
		'enableUrlDecodeCache' => '1',
		'enableUrlEncodeCache' => '1',
	),

	'redirects' => array (
	),

	'preVars' => array (
		'0' => array (
			'GETvar' => 'no_cache',
			'valueMap' => array (
				'no_cache' => '0',
			),
			'noMatch' => 'bypass',
		),
		'1' => array (
			'GETvar' => 'L',
			'valueMap' => array (
				'en' => '1',
			),
			'noMatch' => 'bypass',
		),
	),
	'pagePath' => array (
         'type' => 'user',
         'userFunc' => 
'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
         'spaceCharacter' => '-',
         'languageGetVar' => 'L',
         'expireDays' => '3',
         'rootpage_id' => '1',
     ),

	'fixedPostVars' => array(),
	'postVarSets' => array(
		'_DEFAULT' => array(
			//tt_news
			// 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(
						'archived' => 1,
						'non-archived' => -1,
					)
				),
			),
			// pagebrowser
			'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,
						),
					),
				),
			),
			'article' => array(
				array(
					'GETvar' => 'tx_ttnews[backPid]',
				),
				array(
					'GETvar' => 'tx_ttnews[tt_news]',
					'lookUpTable' => array(
						'table' => 'tt_news',
						'id_field' => 'uid',
						'alias_field' => 'title',
						'addWhereClause' => ' AND NOT deleted',
						'useUniqueCache' => 1,
						'useUniqueCache_conf' => array(
							'strtolower' => 1,
							'spaceCharacter' => '-',
						),
					),
				),
				array(
					'GETvar' => 'tx_ttnews[swords]'
				),
			),


			
			
			
			
// backPID
'backPID' => array(
         array(
                 'GETvar' => 'tx_ttproducts_pi1[backPID]',
                 'lookUpTable' => array(
                         'table' => 'pages',
                         'id_field' => 'uid',
                         'alias_field' => 'title',
                         'addWhereClause' => ' AND NOT deleted',
                         'useUniqueCache' => 1,
                         'useUniqueCache_conf' => array(
                                 'strtolower' => 1,
                                 'spaceCharacter' => '-',
                         ),
                 ),
         ),
), 			
			
			
			
			
// product categories
'categories' => array(
         array(
                 'GETvar' => 'tx_ttproducts_pi1[cat]',
                 'lookUpTable' => array(
                         'table' => 'tt_products_cat',
                         'id_field' => 'uid',
                         'alias_field' => 'title',
                         'addWhereClause' => ' AND NOT deleted',
                         'useUniqueCache' => 1,
                         'useUniqueCache_conf' => array(
                                 'strtolower' => 1,
                                 'spaceCharacter' => '-',
                         ),
                 ),
         ),
),
// products
'products' => array(
         array(
                 'GETvar' => 'tx_ttproducts_pi1[product]',
                 'lookUpTable' => array(
                         'table' => 'tt_products',
                         'id_field' => 'uid',
                         'alias_field' => 'title',
                         'addWhereClause' => ' AND NOT deleted',
                         'useUniqueCache' => 1,
                         'useUniqueCache_conf' => array(
                                 'strtolower' => 1,
                                 'spaceCharacter' => '-',
                         ),
                 ),
         ),
),


		),
	),


);

--------------





Nicole Y. Maennl пишет:
> Alexander schrieb:
>> I found solution
> 
> Could you pls. post your solution?
> 
> Thanks in adv.,
> Nicole
> 
> 
>> Alexander пишет:
>>> Hello list.
>>> Is any body have solution for use RealURL with tt_products?
>>> I need to display path like this:
>>> www.mysite.com/catalog/motorola/keyboards/0132/details
>>>
>>> Previously published solution does not work
>>>
>>> Thanks, Alex


More information about the TYPO3-project-tt-products mailing list