[TYPO3-english] RealURL & tt_news: Possible to have tt_news_uid and tt_news_title in the URL?

Dmitry Dulepov dmitry.dulepov at gmail.com
Wed Jun 16 17:07:41 CEST 2010


Hi!

Andy Pattynama wrote:
> 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.

Try:

> 'show' => array(

                                array (
                                   'GETvar' => 'tx_ttnews[tt_news]',
                                ),

>                                 array (
>                                         'GETvar' => 'tx_ttnews[tt_news]',
>                                         'lookUpTable' => array (

... and so on. You need to have another copy of tx_ttnews[tt_news], that's
all. Not tested but should work.

> In the alias field, I tried:
> 
> 'alias_field' => 'CONCAT(uid, "/", title)',
> 
> but the "/" just got ignored.

That's right. You can't add another segment this way.

-- 
Dmitry Dulepov
TYPO3 expert / TYPO3 core&security teams member
Twitter: http://twitter.com/dmitryd
Read more @ http://dmitry-dulepov.com/


More information about the TYPO3-english mailing list