[TYPO3-german] Kontextmenu fehlt im BE von T3 4.0

JoH info at cybercraft.de
Wed Apr 12 17:15:24 CEST 2006


>> tt_content.stdWrap {
>>   if {
>>     value.postUserFunc = tx_waprintctrl_pi1->processingOutput
>>     value.postUserFunc.printPage < config.printPage
>>     value.postUserFunc.pdfPage < config.pdfPage
>>     isInList.field  = tx_waprintctrl_prt_ctrl
>>   }
>> }
>
> sieht schon viel besser aus. ich denke Du kommst da auch ohne
> irgendwelche schickimickiwodo userFuncs aus, aber das ist schonmal way
> better.

Ich frage mich auch die ganze Zeit, was da eigentlich mit PHP Funktionen
gemacht werden muß.
Wenn ich das richtig verstanden habe, gibt es ein Feld, das genau eine Zahl
als Wert haben kann. -> field = tx_waprintctrl_prt_ctrl
Ist diese Zahl in einer vorgegebenen Liste, wird etwas angezeigt, ansonsten
nicht. -> if.isInList
Die Liste variiert dabei je nach Seitentyp. -> Conditions

tt_content.stdWrap {
    if {
        value = 0,1
        isInList.field  = tx_waprintctrl_prt_ctrl
    }
}

[globalVar = GP:type=98]
tt_content.stdWrap.if.value = 0,2,4


[globalVar = GP:type=123]
tt_content.stdWrap.if.value = 0,3,4


[global]

Nur mal so als Beispiel.
Zuerst wird ein Default definiert und dann je nach Zustand überschrieben,
was sich ändert.
Je nachdem mußt Du in den Conditions die Abfragen ändern, aber dazu findest
Du eigentlich alles nötige in der TSref.

Joey

-- 
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your knob sometimes!)
Dieter Nuhr, German comedian
openBC: http://www.cybercraft.de





More information about the TYPO3-german mailing list