[TYPO3-english] RealURL: using IN with lookUpTable for News & Categories

Bert Hiddink [BENDOO e-work solutions] hiddink at bendoo.nl
Tue Dec 16 16:09:34 CET 2014


Hello,

I would like to show several categories in the URL using the postVar "cat"

Is there a way to concat multiple categories in the URL so that my URL 
will look something like:
http://mysite.com/page/cat_one/cat_two/cat_three/title_news_item
where cat_one,cat_two and cat_three are the titles of the 3 categories 
the news item is related to?

The snippet below only returns the title of the first cat, I guess I 
have to work with an IN: "uid IN 12,33,555"

Any ideas are highly appreciated!

Regards,
Bert


'cat' => array(
	array(
		'GETvar' => 'parent', //fe &parent=12,33,555
		'lookUpTable' => array(
			'table' => 'sys_category',
			'id_field' => 'uid',
			'alias_field' => 'title',
			'addWhereClause' => ' AND NOT deleted',
			'useUniqueCache' => 1,
			'useUniqueCache_conf' => array(
					'strtolower' => 1,
					'spaceCharacter' => '-',
			),
			'languageGetVar' => 'L',
			'languageExceptionUids' => '',
			'languageField' => 'sys_language_uid',
			'transOrigPointerField' => 'l10n_parent',
			'autoUpdate' => 1,
			'expireDays' => 180,
		),
	),					
),


More information about the TYPO3-english mailing list