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通过打字脚本呈现子页面中的内容_Typo3_Typoscript_Typo3 8.x - Fatal编程技术网

TYPO3通过打字脚本呈现子页面中的内容

TYPO3通过打字脚本呈现子页面中的内容,typo3,typoscript,typo3-8.x,Typo3,Typoscript,Typo3 8.x,我不熟悉打字。我试图在归档页面上呈现一些子页面的内容 我不知道为什么我的代码没有显示任何内容 首先,我尝试遍历我的子页面 在该代码范围内 stdWrap.wrap = <div class="row"> | </div> table = pages select { orderBy = sorting # If this element is inserted as sitemap, consider the startingpoint pid

我不熟悉打字。我试图在归档页面上呈现一些子页面的内容

我不知道为什么我的代码没有显示任何内容

首先,我尝试遍历我的子页面

在该代码范围内

  stdWrap.wrap = <div class="row"> | </div>
table = pages
select {
    orderBy = sorting
    # If this element is inserted as sitemap, consider the startingpoint
    pidInList.field = uid
    #max = 1
    begin = 0
  }
其次,我正在通过我的tt_内容表进行编辑,并尝试获取列标题的值,并将其呈现在我的归档页面上

该代码一直工作到

<div class="row"> | </div>
完整代码如下:

lib.content = COA
lib.content {
  stdWrap.wrap = <div class="row"> | </div>
    table = pages
    select {
            orderBy = sorting
        # If this element is inserted as sitemap, consider the startingpoint
            pidInList.field = uid
      #max = 1
      begin = 0
        }
    renderObj = COA
    renderObj {
      stdWrap.wrap = <div class="testfestinner"> | </div>

      10 = CONTENT
      10.wrap = <h3>|</h3>
      10 {
        table = tt_content
                select {
                    pidInList.field = uid
                    where = colPos = 212
                    orderBy = sorting
                }

        renderObj = COA
        renderObj.10 = TEXT
        renderObj.10.field = header
      }
    }
}
我不确定在哪里以及如何调试该代码。 提前感谢。

类似于table=页面的内容不能直接分配给COA。
为此,您需要一个CONTENT类型的cObject。就像您分配给renderObj的页面一样。

如果您对创建归档页面有更好的想法。请让我知道。正如乔伊所说:你的lib.content必须是一个CONTENTobject。外部内容对象的另一种选择可以是一个菜单,任何页面列表/页面UID都可以是一个菜单,您可以在其中添加内部内容。赞成:你甚至可以在一个页面树中组织你的档案,而不是在一个层次上组织一个长长的子页面列表。非常感谢!你帮了我的忙。请你给我一个提示,告诉我如何更好地打字。。。。官方文件很好,但我可能需要另一个来源。还有,如果我犯了错误,我会感到孤独,你有没有关于调试我的打字稿的提示?