Learn about the top 2016 CMS trends. Read on.


I’ve not seen FlexForm settings used in TypoScript before. Have you?

TypoScript

templateFile = template|lDEF|template|vDEF
templateFile.ifEmpty = EXT:pp_feregister/pi1/template.tmpl

FlexForm

<T3DataStructure>
    <meta>
        <langDisable>1</langDisable>
    </meta>
    <sheets>
...
        <template>
            <ROOT>
                <TCEforms>
                    <sheetTitle>LLL:EXT:pp_feregister/locallang_db.xml:flexform.template</sheetTitle>
                </TCEforms>
                <type>array</type>
                <el>
                    <template>
                        <TCEforms>
                            <label>LLL:EXT:pp_feregister/locallang_db.xml:flexform.template.choose</label>
                            <config>
                                <type>select</type>
                                <itemsProcFunc>EXT:pp_lib/tceforms/class.tx_pplib_userfuncs.php:tx_pplib_userfuncs->fillASelectBox</itemsProcFunc>
                                <pluginKey>pp_feregister_pi1</pluginKey>
                                <items type="array">
                                    <numIndex index="0" type="array">
                                        <numIndex index="0"></numIndex>
                                        <numIndex index="1"></numIndex>
                                    </numIndex>
                                </items>
                            </config>
                        </TCEforms>
                    </template>

                </el>
            </ROOT>
        </template>
    </sheets>
</T3DataStructure>

References

Scroll down the linked to page to read the file.

Thanks to Popy for sharing this trick with us.

Still stuck? Write us.