如何将XML文件导入Typo3-Flexform-XML文件?

时间:2018-08-17 10:03:46

标签: xml include typo3 flexform

我在Typo3中有一个很大的SomthingAction.xml。

现在,我想用XML包含一些代码片段,例如:

<?xml version="1.0" encoding="utf-8" standalone="yes" ?> 
<T3DataStructure>
<sheets>

    <sDefault>
        <ROOT>
            <TCEforms>
                <sheetTitle>Einstellungen</sheetTitle>
            </TCEforms>
            <type>array</type>
            <el>

                <switchableControllerActions>
                    <TCEforms>
                        ...
                    </TCEforms>
                </switchableControllerActions>

                <settings.flexform.something>
                    <TCEforms>

                            <include href="Partials/Text.xml" xmlns="http://www.w3.org/2001/XInclude"/>
                            <xs:include href="Partials/Text.xml" xmlns:xs="http://www.w3.org/2001/XInclude"/>
                            <include href="Partials/Text.xml" parse="text" xmlns="http://www.w3.org/2001/XInclude"/>
                            <xs:include href="Partials/Text.xml" parse="text" xmlns:xs="http://www.w3.org/2001/XInclude"/>
                            <include href="Partials/LabelText.xml" xmlns="http://www.w3.org/2001/XInclude"/>
                            <xs:include href="Partials/LabelText.xml" xmlns:xs="http://www.w3.org/2001/XInclude"/>

                        <config>
                            ...
                        </config>
                    </TCEforms>
                </settings.flexform.something>
            </el>
        </ROOT>
    </sDefault>

</sheets>
</T3DataStructure>

我的LabelText的内容是

<label>
abc
</label>

我的文本的内容只是一些文本字符串。

是否可以导入代码片段?因为include或xs:include不起作用...

0 个答案:

没有答案