[TYPO3-english] RealURL & tt_news: Possible to have tt_news_uid and tt_news_title in the URL?
Andy Pattynama
andy.pattynama at gmail.com
Wed Jun 16 14:21:58 CEST 2010
Hi list,
I try to create following URLs for a site:
http://www.domain.com/show/{tt_news_uid}/{tt_news_title}.html
It is important that the tt_news-uid is separated through a "/" from
the news_title.
The configuration so far can be found under following link:
http://pastebin.com/14qJLJC7 The important part is at the end of the
configuration:
'show' => array(
array (
'GETvar' => 'tx_ttnews[tt_news]',
'lookUpTable' => array (
'table' => 'tt_news',
'id_field' => 'uid',
'alias_field' => 'title',
'maxLength' => 50,
'addWhereClause'=>
'AND NOT deleted',
'useUniqueCache'=> 1,
'useUniqueCache_conf' => array (
'strtolower' => 1,
'spaceCharacter' => '-',
),
),
),
),
In the alias field, I tried:
'alias_field' => 'CONCAT(uid, "/", title)',
but the "/" just got ignored.
Any help is appreciated.
Thanks,
Andy
More information about the TYPO3-english
mailing list