Hi,
ich hab ein Problem mit der Übergabe von PI-Paramtern per link.
Variante 1: (So funktioniert es)
// **** pi_linkTP_keepPIvars_url
$linkparams = array (
'mode' => 'game',
'action_2' => null,
'action' => 'game_report',
'game' => $game,
);
$href.=$this->plugin->pi_linkTP_keepPIvars_url($linkparams);
$content.='<a class="" href="'.$href.'"><span '.$status.'>Bericht</span></a>';
Variante 2: (So klappt es nicht)
// **** pi_linkToPage
$linkparams[$this->plugin->prefixId] = array (
'mode' => 'game',
'action' => 'game_report',
'game' => $game,
'action_2' => null,
'round' => $this->plugin->piVars['round'],
'competition' => $this->plugin->piVars['competition'],
'group' => $this->plugin->piVars['group'],
'saison' => $this->plugin->piVars['saison'],
);
$content.=$this->plugin->pi_linkToPage('<b>Bericht</b>',$GLOBALS['TSFE']->id,'',$linkparams);
Das seltsame dabei ist, wenn ich das (beide Varianten) auf meinem localhost Server mache, dann klappt alles wunderbar. Auf dem Online-Server passiert bei Variante 2 gar nichts. Als würden keine Parameter weitergegeben.
Das Problem mit Variante 1 "pi_linkTP_keepPIvars_url" ist, dass die links irgendwann elend lang werden und irgendwann nicht mehr richtig funktionieren!
Hat einer eine Idee?
Vielen dank
Sefer