Use FlexForm settings in TypoScript?

by Michael Cannon in TYPO3 · 0 comments

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.

Be Sociable, Share!

Related Entries

  • No Related Entries
About Michael Cannon

Hello, I'm Michael Cannon, Peichi's smiling man, an adventurous water-ratchief technology officer, cyclist, poet, WWOOF'er and world traveler.

Previous post:

Next post: