also wer sich FlexForms in Verbindung mit einer Extbase Extension konfigurieren 
möchte stößt sicherlich irgendwann auf die "switchableControllerActions". 
Wer hierfür jetzt spezielle configs anlegen möchte die abhängig der Action 
ausgegeben werden sollen, den könnte evtl. dieses Snippet  hier interessieren.

        <switchController>
                        <ROOT>
                                <TCEforms>
                                        <sheetTitle>General 
settings</sheetTitle>
                                </TCEforms>
                                <type>array</type>
                                <el>
                                        <switchableControllerActions>
                                                <TCEforms>
                                                        <label>action</label>
                                                        
<onChange>reload</onChange>
                                                        <config>
                                                                
<type>select</type>
                                                                <items 
type="array">
                                                                        
<numIndex index="0" type="array">
                                                                                
<numIndex index="0">Subscribe</numIndex>
                                                                                
<numIndex index="1">Recipient->new;Recipient->create</numIndex>
                                                                        
</numIndex>
                                                                        
<numIndex index="1" type="array">
                                                                                
<numIndex index="0">Unsubscribe</numIndex>
                                                                                
<numIndex index="1">Recipient->unsubscribe; Recipient->delete</numIndex>
                                                                        
</numIndex>
                                                                        
<numIndex index="2" type="array">
                                                                                
<numIndex index="0">Activate Recipient</numIndex>
                                                                                
<numIndex index="1">Recipient->activate</numIndex>
                                                                        
</numIndex>
                                                                </items>
                                                                
<maxitems>1</maxitems>
                                                                <size>1</size>
                                                        </config>
                                                </TCEforms>
                                        </switchableControllerActions>
                                        <settings.pid>
                                                <TCEforms>
                                                        <label>Page ID</label>
                                                        
<displayCond><![CDATA[FIELD:switchableControllerActions:=:Recipient->new;Recipient->create]]></displayCond>
                                                        <config>
                                                                
<type>group</type>
                                                                
<internal_type>db</internal_type>
                                                                
<allowed>pages</allowed>
                                                                <size>1</size>
                                                                
<maxitems>1</maxitems>
                                                                
<minitems>1</minitems>
                                                        </config>
                                                </TCEforms>
                                        </settings.pid>
                                </el>
                        </ROOT>
                </switchController>

Wichtig! <![CDATA]> nicht vergessen bei <displayCond> aufgrund der angle 
brackets!

On 18.05.2011, at 17:14, Georg Ringer wrote:

> Am 18.05.2011 15:34, schrieb Patrick Finkbeiner:
>> Spitze! Hat geklappt.
>> 
>> Vielen Dank!
> 
> für den nächsten wäre vielleicht ein codeschnippsel interessant, wärst du so 
> nett?
> 
> danke
> georg
> _______________________________________________
> TYPO3-german mailing list
> TYPO3-german@lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german

_______________________________________________
TYPO3-german mailing list
TYPO3-german@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german

Antwort per Email an