Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/typo3/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何从typo3导出xml或json_Typo3 - Fatal编程技术网

如何从typo3导出xml或json

如何从typo3导出xml或json,typo3,Typo3,我需要将内容从typo3网站导出到web应用程序。我正在考虑使用xml或json。但我还没弄明白怎么做 我对typo3开发还不熟悉。因此,我想知道是否有人对此有建议 这在很大程度上取决于您的需求;) 作为起点,您可以使用新的页面类型并禁用所有标题代码来生成XML,例如 xml = PAGE xml { typeNum = 123 config { disableAllHeaderCode = 1 xhtml_cleaning = none

我需要将内容从typo3网站导出到web应用程序。我正在考虑使用xml或json。但我还没弄明白怎么做

我对typo3开发还不熟悉。因此,我想知道是否有人对此有建议


这在很大程度上取决于您的需求;)

作为起点,您可以使用新的页面类型并禁用所有标题代码来生成XML,例如

xml = PAGE
xml {
    typeNum = 123
    config {
        disableAllHeaderCode = 1
        xhtml_cleaning = none
        admPanel = 0
        metaCharset = utf-8 
        additionalHeaders = Content-Type:text/xml;charset=utf-8
    }
    10 = COA
    10 {
        wrap = <?xml version="1.0" encoding="UTF-8" standalone="yes" ?><your_root_tag>|</your_root_tag>
        # add code here to generate xml content
        10 = ...
    }
}
xml=PAGE
xml{
typeNum=123
配置{
disableAllHeaderCode=1
xhtml_清理=无
admPanel=0
metaCharset=utf-8
additionalHeaders=内容类型:text/xml;charset=utf-8
}
10=COA
10 {
包裹=|
#在此处添加代码以生成xml内容
10 = ...
}
}
如果浏览到,您将获得XML内容

但是如果事情变得更复杂,编写扩展可能是更好的方法。

请参阅