我有一些内容要在TYPO3网站的多个页面上显示.我可以将其插入到模板中,但我也希望在Rich Text Editor中可以编辑该内容.
所以我有了创建隐藏页面的想法,但我不知道如何将这些内容插入到模板中.
它需要select
typoscript声明吗?
此外,作为后续问题,我可以添加一些内容,仅包含将此页面ID作为页面层次结构中的直接父级的页面.
我没有得到第二个问题.如果您只想将某些记录包含在其他页面下的页面中,那么这显然会起作用:
[PIDinRootline = pages-uid, pages-uid, ...]
temp.foo = RECORDS
temp.foo {
tables = tt_content
source = ID # Enter the object's ID here
}
[end]
Run Code Online (Sandbox Code Playgroud)
另一方面,如果您想要包含页面中的所有记录,作为其他页面的子项,请尝试以下操作:
1 = CONTENT
1.table = tt_content
1.select {
pidInList = parent-uid
}
Run Code Online (Sandbox Code Playgroud)
不知道我是不是你说得对.德米特里.
temp.foo = RECORDS
temp.foo {
tables = tt_content
source = ID # Enter the object's ID here
}
Run Code Online (Sandbox Code Playgroud)
请注意,ID是内容记录ID,而不是页面ID.
但这并没有回答如何仅包含某个父母的页面/记录的问题.
归档时间: |
|
查看次数: |
23356 次 |
最近记录: |