[TYPO3-english] TYPO3 6.2: News, RealURL and categories
Bert Hiddink [BENDOO e-work solutions]
hiddink at bendoo.nl
Sun Oct 26 10:38:05 CET 2014
Hello,
I am using News with TYPO3 6.2.6 and RealURL, the project is making use
of sys_category for displaying/selecting news according the related
categories...
The snippet for REALURL below shows correctly the cat selected
http://www.domain.com/news/cat3/
http://www.domain.com/news/cat4/
etc
However, since the cats are organized according their parent-category, I
would like to adjust this in such a way that also parent-cats are
reflected, that is, if "cat3" is the parent of "cat4", the URL should
look like:
http://www.domain.com/news/cat3/cat4
I have developed some category-menus with TS which do this but do not
see how to implement this for REALURL.
Any ideas/pointers are highly appreciated!
Thanks and regards,
Bert
'news' => array(
array(
'GETvar' => 'tx_news_pi1[overwriteDemand][categories]',
'lookUpTable' => array(
'table' => 'sys_category',
'id_field' => 'uid',
'alias_field' =>'title',
// 'alias_field' => "CONCAT(parent,'-',title)",
//'alias_field' => 'coalesce(NULLIF(description, ""), 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