Zitat:
|
Zitat von mic_jan Mein Tipp: Setz dich eine Stunde hin und schreibe die 400 Zeilen conditions...ist ja nahezu copy& paste. |
Ja, irgendeine Mapping-Methode wirst Du schon brauchen. Eine Methode wäre:
Typoscript-Code:
1: 2: 3: 4: 5:
| catToPid { 1 = 54 2 = 358 3 = 24 } |
Im PHP Code kommst Du dann ganz bequem daran:
PHP-Code:
$pid = $this->conf['catToPid.'][$cat];