我在Mac OS上使用Typo3.6.4。
我想从子页面获取内容。 内容在3子页面中,需要显示在" Page"使用TypoScript:
页
-SubPage 1
-SubPage 2
-SubPage 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
}
}
答案 0 :(得分:0)
也许您已经通过
添加了TypoScript<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">
答案 1 :(得分:0)
我喜欢回答我自己的问题&lt; 3
所以,问题来到了项目“css_styled_content”,在第一个,我没有使用它,但在第二个,我使用这个项目,它不起作用。
因此,如果您想像我一样写作,您需要停用该项目或反复搜索:D