[TYPO3-dev] Make type-array field in flexform conditional

Henk Scholten henk at wolfsstyle.nl
Thu Nov 7 11:46:45 CET 2013


Nobody?

Henk Scholten schreef op 06-11-13 15:37:
> Hello,
>
> How can i make an array field in a flexform conditional?
>
> For a simple string field this works:
>
> <settings.linklabel>
>      <TCEforms>
>          <label>Linklabel</label>
>          <displayCond>FIELD:settings.type:=:normal</displayCond>
>          <config>
>              <type>input</type>
>              <size>24</size>
>              <eval>trim</eval>
>          </config>
>      </TCEforms>
> </settings.linklabel>
>
> But for an array field this does not work:
> The field is still generated.
>
> <settings.images type="array">
>
>      <title>Images</title>
>      <type>array</type>
>      <section>1</section>
>      <displayCond>FIELD:settings.type:=:normal</displayCond>
>
>      <el type="array">
>
>          <image type="array">
>
>              <type>array</type>
>              <tx_templavoila type="array">
>                  <title>Image</title>
>                  <eType>input</eType>
>              </tx_templavoila>
>
>              <el type="array">
>
>                  <title>
>                      <TCEforms>
>                          <label>Title</label>
>                          <config>
>                              <type>input</type>
>                              <size>24</size>
>                              <eval>trim</eval>
>                          </config>
>                      </TCEforms>
>                  </title>
>
>                  <image>
>                      <TCEforms>
>                          <label>Image</label>
>                          <config>
>                              <type>group</type>
>                              <internal_type>file</internal_type>
>                              <allowed>gif,png,jpeg,jpg</allowed>
>                              <max_size>10000</max_size>
>
> <uploadfolder>uploads/tx_spiritit</uploadfolder>
>                              <show_thumbs>1</show_thumbs>
>                              <size>1</size>
>                              <minitems>0</minitems>
>                              <maxitems>1</maxitems>
>                          </config>
>                      </TCEforms>
>                  </image>
>
>              </el>
>
>          </image>
>
>      </el>
>
> </settings.images>
>
> Regards,
> Henk




More information about the TYPO3-dev mailing list