[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 18:12:15 CEST 2010


Hi Dmitry

On Wed, Jun 16, 2010 at 5:07 PM, Dmitry Dulepov
<dmitry.dulepov at gmail.com> wrote:

<snip>
>
> Try:
>
>> 'show' => array(
>
>                                array (
>                                   'GETvar' => 'tx_ttnews[tt_news]',
>                                ),
>
>>                                 array (
>>                                         'GETvar' => 'tx_ttnews[tt_news]',
>>                                         'lookUpTable' => array (
>

I added that part too but then, the URLs look like this:
http://www.domain.com/show/{tt_news_uid}/

I just tried following:
$_GET["tx_ttnews"]["tt_news2"] = $_GET["tx_ttnews"]["tt_news2"];

and then, in the postvars:
 'show' => array(
                                array (
                                        'GETvar' =>
'tx_ttnews[tt_news2]',
                                ),
                                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' => '-',
                                                ),
                                        ),
                                ),
                        ),

But that didn't work :/ The URL now looks like this:
http://www.domain.com/show//{tt_news_title}/

Thanks for your help.

Kind regards,
Andy


More information about the TYPO3-english mailing list