[TYPO3-german] mehrere aahbook Gästebücher in einer Installation

Philipp Holdener philipp at holdener.ch
Wed Nov 18 16:47:07 CET 2009


Philipp Holdener schrieb:


> 
> $res = $GLOBALS['TYPO3_DB']->sql(TYPO3_db, 'SELECT storage_pid FROM 
> pages WHERE uid = '.$GLOBALS['TSFE']->id);
> 
>         if ($general_storage_pid != 0 and $this->cObj->data['pages'] != 
> '') {
>             if (strpos($this->cObj->data['pages'],$general_storage_pid) 
>  > -1) {
>                 $storage_pid = $this->cObj->data['pages'];
>                 $parts = explode(',', $storage_pid);
>                 $storage_pid = implode(' OR pid = ', $parts);
>             } else {
>                 $storage_pid = 
> $this->cObj->data['pages'].','.$general_storage_pid;
>                 $parts = explode(',', $storage_pid);
>                 $storage_pid = implode(' OR pid = ', $parts);
>             }
>         } elseif ($general_storage_pid == 0 and 
> $this->cObj->data['pages'] != '') {
>             if (strpos($this->cObj->data['pages'],$GLOBALS['TSFE']->id) 
>  > -1) {
>                 $storage_pid = $this->cObj->data['pages'];
>                 $parts = explode(',', $storage_pid);
>                 $storage_pid = implode(' OR pid = ', $parts);
>             } else {
>                 $storage_pid = 
> $this->cObj->data['pages'].','.$GLOBALS['TSFE']->id;
>                 $parts = explode(',', $storage_pid);
>                 $storage_pid = implode(' OR pid = ', $parts);
>             }
>         } elseif ($general_storage_pid != 0 and 
> $this->cObj->data['pages'] == '') {
>             $storage_pid = $general_storage_pid;
>         } else {
>             $storage_pid = $GLOBALS['TSFE']->id;
>         }
> 
> 
> 


was muss man in dem Code Abschnitt ändern damit NUR die Einträge auf der 
unter Ausgangspunkt definierten Seite verwendet werden?
Ich hätte gerne nur einträge von der Seite auf der sich das Plugin befindet.
Das andere mit dem General Storage scheint ja nicht zu funktionieren. 
Egal was ich dort eingebe - es kommen immer alle Einträge von allen 
Domains :-(

Besten Dank schon mal

Gruss
PHilipp


More information about the TYPO3-german mailing list