1
votes

how could i can add html content element in flexform in typo3. I have tried

<settings.sDEF1.sociallinks>
                                        <TCEforms>
                                            <exclude>1</exclude>
                                            <label>Social Links</label>
                                            <config>
                                                <type>text</type>
                                                <renderType>t3editor</renderType>
                                                <format>html</format>
                                                <cols>30</cols>
                                                <rows>5</rows>
                                            </config>
                                        </TCEforms>
                    </settings.sDEF1.sociallinks> 

which not working.

ref : https://docs.typo3.org/typo3cms/TCAReference/Reference/Columns/Text/Index.html#rendertype

1
An idea... you could use a normal text-input field and display it with fluid <f:format.html> tag - Tobias Gaertner

1 Answers

0
votes
        <options.richTextArea>
            <TCEforms>
                <exclude>1</exclude>
                <label>
                    Rich Text Area
                </label>
                <config>
                    <type>text</type>
                    <rows>5</rows>
                    <cols>300</cols>
                    <enableRichtext>true</enableRichtext>
                </config>
                <defaultExtras>richtext[]</defaultExtras>
            </TCEforms>
        </options.richTextArea>