[TYPO3-german] 'addQueryString.exclude' => 'id' ... klappt nicht im PHP code

Lorenz Ulrich lorenz-typo3 at visol.ch
Sat Mar 2 00:00:25 CET 2013


Hallo Ralf-René

Ungetestet, aber:

TypoScript ist auf PHP-Basis ein Array. Demnach müsste die Zeile nicht 
so aussehen:

 >      'addQueryString.exclude' =>  'id',

sondern so:

'addQueryString.' => array('exclude' => 'id'),

Beste Grüsse,

Lorenz

Am 01.03.2013 23:30, schrieb Ralf-Rene Schröder:
> Hallo...
> ist jetzt wahrscheinlich eine ziemlich blöde Frage,
> aber da ich das sonst mit Typoscript geregelt habe,
> habe ich hier jetzt ein kleines Problem...
>
> ich baue ein HMENU mit einer userfunction für eigene tabellen
> wie bekomme ich jetzt die doppelte id durch addQueryString weg
> 'addQueryString.exclude' =>  'id',
> klappt nicht (ist mit sicherheit ein Formfehler)...
>
>
> while ( ($genre = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) ) {
>    // build genre link
>    $linkConf = array (
>      'useCacheHash' =>  true,
>      'addQueryString' =>  true,
>      'addQueryString.exclude' =>  'id',
>      'parameter' =>  $conf['targetPid'],
>      'additionalParams' =>  '&tx_ifcwmedia_pi1[mg0]='.$genre['uid']
>    );
>    $link = $this->cObj->typolink_URL( $linkConf );
>
>    // add to menu
>    $genre_menu[] = array (
>      'title' =>  $genre['title'],
>      '_OVERRIDE_HREF' =>  $link
>    );
> }
>
>



More information about the TYPO3-german mailing list