[TYPO3-german] Frage zu f:cObject

Philipp Gampe philipp.gampe at typo3.org
Mon Apr 27 09:17:12 CEST 2015


Hi Manuel Bachl,

Manuel Bachl wrote:

> Hallo Herr Gampe,
> 
> vielen dank für die Antwort. Klingt natürlich plausibel, aber ich fürchte
> ich stelle mich gerade zu dumm an:

Also ich habe folgendes im Einsatz:
    lib.renderProduktDetail = CONTENT                                                               
    lib.renderProduktDetail {                                                                       
        table = tt_content                                                                          
        # either current page or page passed via cObject viewhelper                                 
        select.pidInList.data = GP:currentpage                                                      
        select.pidInList.intval = 1                                                                 
        select.pidInList.ifEmpty.current = 1                                                        
    }    


Bist du dir sicher, dass auch wirklich ein Integer übergeben wird?

Probiere mal folgendes (ganz am Ende deines Templates):
lib.clientdescription >
lib.clientdescription = TEXT
lib.clientdescription.data = debug:data

Rufe die Seite dann auf. Es sollte jetzt eine Tabelle mit den Inhalten von 
$data ausgegeben werden. Dort sollte jetzt nur dein Integer stehen.
z.B. 0 => 5 für die Seite mit der pid 5.

> 
> alle unten genannten Varianten funktionieren nicht:
> 
> lib.clientdescription = CONTENT
> lib.clientdescription {
>     table = tt_content
>     select {
>         pidInList.current = 1
>         pidInList = |
>         orderBy = sorting
>         languageField = sys_language_uid
>         where = colPos=1
>     }
> }
> 
> lib.clientdescription = CONTENT
> lib.clientdescription {
>     table = tt_content
>     select {
>         pidInList.stdWrap.current = 1
>         pidInList = |
>         orderBy = sorting
>         languageField = sys_language_uid
>         where = colPos=1
>     }
> }
> 
> lib.clientdescription = CONTENT
> lib.clientdescription {
>     table = tt_content
>     select {
>         pidInList.current = 1
>         orderBy = sorting
>         languageField = sys_language_uid
>         where = colPos=1
>     }
> }
> 
> lib.clientdescription = CONTENT
> lib.clientdescription {
>     table = tt_content
>     select {
>         pidInList.stdWrap.current = 1
>         orderBy = sorting
>         languageField = sys_language_uid
>         where = colPos=1
>     }
> }
> 
> Ich glaube es ist einfach zu spät heute...
> Hat jemand vll. einen funktionierenden Schnipsel im Einsatz, und würde mir
> diesen bereitstellen? Vielen Dank schonmal
> 
> Grüße
-- 
Philipp Gampe – PGP-Key 0AD96065 – TYPO3 UG Bonn/Köln
Documentation – Active contributor TYPO3 CMS
TYPO3 .... inspiring people to share!



More information about the TYPO3-german mailing list