Html 获取页面的内容';她是个打字错误的孩子

Html 获取页面的内容';她是个打字错误的孩子,html,macos,typo3,typoscript,typo3-6.2.x,Html,Macos,Typo3,Typoscript,Typo3 6.2.x,我在Mac OS上使用的是Typo3.6.4 MIDBLOCK = CONTENT MIDBLOCK { stdWrap.wrap = | table = pages select.orderBy = sorting # If this element is inserted as sitemap, consider the startingpoint select.pidInList.if.isTrue.field = pages selec

我在Mac OS上使用的是Typo3.6.4

  MIDBLOCK = CONTENT
  MIDBLOCK {
  stdWrap.wrap = |
    table = pages
    select.orderBy = sorting
    # If this element is inserted as sitemap, consider the startingpoint
    select.pidInList.if.isTrue.field = pages
    select.pidInList.field = pages
    renderObj = COA
    renderObj {
      stdWrap.wrap = |

      10 = CONTENT
      10.wrap = <div><h1>|</h1>
      10 {
        table = tt_content
        select.pidInList.field = uid
        select.where = colPos = 1
        select.orderBy = sorting
        renderObj = COA


        #read the bodytext
        renderObj.10 = TEXT
        renderObj.10.field = header
      }

      20 = TEXT
      20.value = Event
      20.typolink.parameter.field = uid


      # Title and link to the page
      30 = TEXT
      30.wrap = </div><div><h2>|</h2>
      30.field = title
      # 2. CONTENT object for reading the first content element
      40 = CONTENT
      40 {
        table = tt_content
        select.pidInList.field = uid
        select.where = colPos = 0
        select.orderBy = sorting
        renderObj = COA


        #read the bodytext
        renderObj.10 = TEXT
        renderObj.10 {
          field = bodytext
          #cut after 20 chars, keep whole words if possible
          crop = 20| ... |1
        }
      }
      # more link
      50 = TEXT
      50.wrap = <br /><br />|</div>
      50.value = > [More]
      50.typolink.parameter.field = uid
    }  
  }
我想从子页面获取内容。 内容位于3个子页面中,需要在“页面”中显示,并带有打字稿:

页面

-第1子页

-第2子页

-第3子页

我曾在Windows的Typo3.6.0上尝试过这段代码,它正在运行。但Mac OS上的Typo3.6.4版本则不然

  MIDBLOCK = CONTENT
  MIDBLOCK {
  stdWrap.wrap = |
    table = pages
    select.orderBy = sorting
    # If this element is inserted as sitemap, consider the startingpoint
    select.pidInList.if.isTrue.field = pages
    select.pidInList.field = pages
    renderObj = COA
    renderObj {
      stdWrap.wrap = |

      10 = CONTENT
      10.wrap = <div><h1>|</h1>
      10 {
        table = tt_content
        select.pidInList.field = uid
        select.where = colPos = 1
        select.orderBy = sorting
        renderObj = COA


        #read the bodytext
        renderObj.10 = TEXT
        renderObj.10.field = header
      }

      20 = TEXT
      20.value = Event
      20.typolink.parameter.field = uid


      # Title and link to the page
      30 = TEXT
      30.wrap = </div><div><h2>|</h2>
      30.field = title
      # 2. CONTENT object for reading the first content element
      40 = CONTENT
      40 {
        table = tt_content
        select.pidInList.field = uid
        select.where = colPos = 0
        select.orderBy = sorting
        renderObj = COA


        #read the bodytext
        renderObj.10 = TEXT
        renderObj.10 {
          field = bodytext
          #cut after 20 chars, keep whole words if possible
          crop = 20| ... |1
        }
      }
      # more link
      50 = TEXT
      50.wrap = <br /><br />|</div>
      50.value = > [More]
      50.typolink.parameter.field = uid
    }  
  }
MIDBLOCK=内容
中段{
stdWrap.wrap=|
表=页
select.orderBy=排序
如果这个元素插入SITMAP,考虑起始点
select.pidInList.if.isTrue.field=页面
select.pidInList.field=页面
renderObj=COA
伦德罗布{
stdWrap.wrap=|
10=内容
10.1|
10 {
表=tt_含量
select.pidInList.field=uid
选择.where=colPos=1
select.orderBy=排序
renderObj=COA
#阅读正文
renderObj.10=文本
renderObj.10.field=标题
}
20=文本
20.价值=事件
20.typolink.parameter.field=uid
#页面的标题和链接
30=文本
30.1.1|
30.字段=标题
#2.用于读取第一个内容元素的内容对象
40=内容
40 {
表=tt_含量
select.pidInList.field=uid
select.where=colPos=0
select.orderBy=排序
renderObj=COA
#阅读正文
renderObj.10=文本
图J.10{
字段=正文
#切掉20个字符后,尽可能保留整个单词
作物=20 |……| 1
}
}
#更多链接
50=文本
50.wrap=

| 50.value=>[更多] 50.typolink.parameter.field=uid } }
也许您已经通过

<INCLUDE_TYPOSCRIPT: source=FILE:EXT:my_ext/Configuration/TypoScript/setup.txt>

这将不再适用于TYPO3 6.2。您必须添加这样的引号:

<INCLUDE_TYPOSCRIPT: source="FILE:EXT:my_ext/Configuration/TypoScript/setup.txt">


我喜欢回答我自己的问题不是这样的,因为我其余的打字稿都很好用。我只是想得到我不能得到的子页面的内容。