Typo3 Flexforms

Häufig genutzte Typo3 Flexform Konfigurationen:

<label>Text</label>
<config>
  <type>input</type>
  <size>20</size>
  <max>30</max>
  <eval>trim</eval>
</config>

<label>Checkbox</label>
<config>
  <type>check</type>
</config>

<label>Textarea</label>
<config>
  <type>text</type>
  <cols>24</cols>
  <rows>3</rows>
</config>

<label>Radiobuttons</label>
<config>
  <type>radio</type>
  <items type="array">
    <numIndex index="0" type="array">
      <numIndex index="0">Auswahl1</numIndex>
      <numIndex index="1">wert1</numIndex>
    </numIndex>
    <numIndex index="1" type="array">
      <numIndex index="0">Auswahl2</numIndex>
      <numIndex index="1">wert2</numIndex>
    </numIndex>
    <numIndex index="3" type="array">
      <numIndex index="0">Auswahl3</numIndex>
      <numIndex index="1">wert3</numIndex>
    </numIndex>
  </items>
</config>

<label>Select</label>
<config>
  <type>select</type>
  <items type="array">
    <numIndex index="0" type="array">
      <numIndex index="0">Item 1</numIndex>
      <numIndex index="1">value1</numIndex>
    </numIndex>
    <numIndex index="1" type="array">
      <numIndex index="0">Item 2</numIndex>
      <numIndex index="1">value2</numIndex>
    </numIndex>
  </items>
</config>

<label>Select aus Tabelle</label>
<config>
  <type>select</type>
  <items type="array">
    <numIndex index="0" type="array">
      <numIndex index="0"></numIndex>
      <numIndex index="1"></numIndex>
    </numIndex>
  </items>
  <foreign_table>tt_content</foreign_table>
  <foreign_table_where>
     AND tt_content.pid = 1
  </foreign_table_where>
</config>

<config>
  <type>group</type>
  <internal_type>db</internal_type>
  <allowed>pages</allowed>
  <size>1</size>
  <maxitems>1</maxitems>
  <minitems>0</minitems>
  <show_thumbs>1</show_thumbs>
</config>

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert.