typo3 realurl - how to rewrite a get-parameter

360 Views Asked by At

I want to rewrite a url with realurl - I#Ve got a url in this form: ".../anzeige/?bildId=1&cHash=b90ddb3f161bc8c3f5113a3b823794d0". want to rewrite the bildId=1 into something like this: Rose.html - There is an Mysql-Table with ste uid = 1 and a field "Blume" in line 1: "Rose. Is there any possibility to rewrie it?

Thank you Volker

1

There are 1 best solutions below

3
On

As example for your realurl.conf:

'postVarSets' => [
  '_DEFAULT' => [
    'banner' => [
      [
        'GETvar'      => 'bildId',
        'lookUpTable' => [
          'table'               => 'tablename',
          'id_field'            => 'uid',
          'alias_field'         => 'title',
          'addWhereClause'      => ' AND NOT deleted',
          'useUniqueCache'      => 1,
          'useUniqueCache_conf' => [
            'strtolower'     => 1,
            'spaceCharacter' => '-',
          ],
          'autoUpdate'          => 1,
          'expireDays'          => 180,
        ],
      ],
    ]
  ]
]