Created
June 13, 2013 13:53
-
-
Save Plou/5773841 to your computer and use it in GitHub Desktop.
Example of a flexform with text, rich text editor (rte), file (image), date and multiple items (flexform sections)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<dateName> | |
<TCEforms> | |
<label>LLL:EXT:skinFlex/flex/locallang.xml:flexform.flex.dateName</label> | |
<config> | |
<type>input</type> | |
<eval>date</eval> | |
</config> | |
</TCEforms> | |
</dateName> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<fileName> | |
<TCEforms> | |
<label>LLL:EXT:skinFlex/flex/locallang.xml:flexform.flex.fileName</label> | |
<config> | |
<type>group</type> | |
<internal_type>file</internal_type> | |
<allowed>gif,jpg,jpeg,tif,bmp,pcx,tga,png,pdf,ai</allowed> | |
<max_size>5000</max_size> | |
<uploadfolder>uploads/skinFlex/flex</uploadfolder> | |
<maxitems>1</maxitems> | |
<size>1</size> | |
<selectedListStyle>width:200px</selectedListStyle> | |
<show_thumbs>1</show_thumbs> | |
</config> | |
</TCEforms> | |
</fileName> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<T3DataStructure> | |
<meta> | |
<langDisable>1</langDisable> | |
</meta> | |
<sheets> | |
<sDEF> | |
<ROOT> | |
<TCEforms> | |
<sheetTitle>LLL:EXT:skinFlex/flex/locallang.xml:flexform.flex.sheets.general</sheetTitle> | |
</TCEforms> | |
<type>array</type> | |
<el> | |
<!-- | |
insert elements here | |
--> | |
</el> | |
</ROOT> | |
</sDEF> | |
</sheets> | |
</T3DataStructure> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<inputName> | |
<TCEforms> | |
<label>LLL:EXT:skinFlex/flex/locallang.xml:flexform.flex.inputNmae</label> | |
<config> | |
<type>input</type> | |
</config> | |
</TCEforms> | |
</inputName> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<rteName> | |
<TCEforms> | |
<label>LLL:EXT:skinFlex/flex/locallang.xml:flexform.flex.rteName</label> | |
<config> | |
<type>text</type> | |
<cols>30</cols> | |
<rows>5</rows> | |
</config> | |
<defaultExtras>richtext[*]:rte_transform[mode=ts_css]</defaultExtras> | |
</TCEforms> | |
</rteName> | |
<!-- a typoscript configuration need to be added on thee field: parseFunc - https://gist.github.com/in8/5765989 --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<items> | |
<section>1</section> | |
<type>array</type> | |
<el> | |
<item> | |
<type>array</type> | |
<tx_templavoila> | |
<title>LLL:EXT:skinFlex/flex/locallang.xml:flexform.flex.item</title> | |
</tx_templavoila> | |
<el> | |
<!-- | |
insert elements here | |
--> | |
</el> | |
</item> | |
</el> | |
</items> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<textareaName> | |
<TCEforms> | |
<label>LLL:EXT:skinFlex/flex/locallang.xml:flexform.flex.textareaName</label> | |
<config> | |
<type>text</type> | |
</config> | |
</TCEforms> | |
</textareaName> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
New variant for RTE:
<!-- Text -->
<settings.bodytext>
<TCEforms>
<label>Text</label>
<config>
<type>text</type>
<enableRichtext>1</enableRichtext>
</config>
</TCEforms>
</settings.bodytext>