2017-05-08 56 views
1

我需要幫助TYPO3 Flexforms和這個displayCond!TYPO3 - Flexforms displayCond

<displayCond>FIELD:settings.slider.slides.slider.layout:=:default</displayCond>

此實施例不工作太: <displayCond>FIELD:settings.slider.slides.layout:=:default</displayCond>

它陣列:( 這裏一個柔性成型例如在不工作

<slider> 
     <ROOT> 
      <TCEforms> 
       <sheetTitle>Slider</sheetTitle>          
      <displayCond>FIELD:sDEF.switchableControllerActions:=:Elements->slider</displayCond> 
      </TCEforms> 
      <type>array</type> 
      <el> 
       <settings.slider.slides type="array"> 
        <title>only first 3 items are used</title> 
        <type>array</type> 
        <section>1</section> 
        <el> 
         <slider> 
          <type>array</type> 
          <title>Slide</title> 
          <el> 

           <!-- Slider Settings 
           ====================================================================== --> 
           <layout> 
            <TCEforms> 
             <label>Layout</label> 
             <onChange>reload</onChange> 
             <config> 
              <type>select</type> 
              <items> 
               <numIndex index="10"> 
                <numIndex index="0">Default</numIndex> 
                <numIndex index="1">default</numIndex> 
               </numIndex> 
               <numIndex index="20"> 
                <numIndex index="0">Landingpage</numIndex> 
                <numIndex index="1">landingpage</numIndex> 
               </numIndex> 
              </items> 
             </config> 
            </TCEforms> 
           </layout> 


           <image> 
            <TCEforms> 
             <label>Image</label> 
             <displayCond>FIELD:settings.slider.slides.slider.layout:=:default</displayCond> 
             <config> 
              <type>group</type> 
              <internal_type>file</internal_type> 
              <allowed>jpg, jpeg, gif, png</allowed> 
              <show_thumbs>1</show_thumbs> 
              <minitems>0</minitems> 
              <maxitems>1</maxitems> 
              <size>1</size> 
             </config> 
            </TCEforms> 
           </image> 
+1

嘗試使用'領域:佈局:=:默認'。 – ravisachaniya

+0

jep,我發現問題;)看到我的答案:)謝謝! –

回答

0
<displayCond>FIELD:layout:=:default</displayCond> 

這工作正常;) 我處於正確的設置...「settings.slider.slides ....」 現在我只需要第一陣列: 「佈局」

1

嘗試使用以下displayCond

<displayCond>FIELD:layout:=:default</displayCond>