Typo3:使用打字稿显示第一个子页面的内容
这就是我想要做的:在给定页面上,我想显示给定页面的第一个子页面的所有内容元素。我不能简单地使用快捷方式页面,因为我需要在子页面的内容元素之后显示其他内容元素。我该怎么做?
这是我认为如何做到这一点的片段,但我不知道如何构建选择。有更好的办法吗?
# save current content
tmp.pagecontent < page.10.subparts.main-content
# clear the content of the main column
page.10.subparts.main-content >
# build a new object for this column as content-object-array
page.10.subparts.main-content = COA
page.10.subparts.main-content {
10 = CONTENT
10.table = tt_content
10.select {
# what should I put here?
}
# re-insert the normal pagecontent to the page
20 < tmp.pagecontent
This is what I want to do: on a given page, I want to display all content elements of the first child page of a given page. I cannot simply use a shortcut page, because I need to display other content elements after the ones from the sub-page. How can I do this?
Here is a snippet of how I think I could do it, but I don't know how to build the select. Is there a better way?
# save current content
tmp.pagecontent < page.10.subparts.main-content
# clear the content of the main column
page.10.subparts.main-content >
# build a new object for this column as content-object-array
page.10.subparts.main-content = COA
page.10.subparts.main-content {
10 = CONTENT
10.table = tt_content
10.select {
# what should I put here?
}
# re-insert the normal pagecontent to the page
20 < tmp.pagecontent
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
只需添加其他人的答案即可。
First :指定当前页面的第一个子页面。
第二:获取该子页面所需的内容元素。
Just add answer for other people.
First : specify the first sub page of current page.
Second : get content elements that you want of that sub page.
我终于成功了!虽然不确定这是最好的方法。你对此有何看法?我是否也应该将第二个选择放入 userFunc 中?
fileadmin/userfunc/mailArchive.php
TS 模板
I finally succeed! Not sure though it is the best way. What do you think about it? Should I put the second select into userFunc too?
fileadmin/userfunc/mailArchive.php
TS template