TYPO3 fluid:从页面获取所有内容 ID
TYPO3 fluid: Get all content IDs from page
是否有可能从一个页面获取所有内容 ID?
我试过这样的事情:
<v:resource.record
table="tt_content"
uid="1811"
field="pid"
as="item"
>
<f:debug>{item}</f:debug>
</v:resource.record>
但它只给了我父 ID,我无法交换属性以使其工作。
谢谢
获取 UID 为 312 的内容元素的页面 ID:
<v:resource.record
table="tt_content"
uid="312"
field="pid"
as="item"
><f:debug title="query 1: page of CE">{item}</f:debug></v:resource.record>
获取 UID 为 123 的页面中内容元素的 UID:
<f:cObject typoscriptObjectPath="lib.UidList" data="{pid:123}" />
打字错误:
lib.UidList = CONTENT
lib.UidList {
table = tt_content
select {
pidInList.field = pid
}
renderObj = TEXT
renderObj.field = uid
renderObj.wrap = |, |*| |, |*| |
}
是否有可能从一个页面获取所有内容 ID? 我试过这样的事情:
<v:resource.record
table="tt_content"
uid="1811"
field="pid"
as="item"
>
<f:debug>{item}</f:debug>
</v:resource.record>
但它只给了我父 ID,我无法交换属性以使其工作。 谢谢
获取 UID 为 312 的内容元素的页面 ID:
<v:resource.record
table="tt_content"
uid="312"
field="pid"
as="item"
><f:debug title="query 1: page of CE">{item}</f:debug></v:resource.record>
获取 UID 为 123 的页面中内容元素的 UID:
<f:cObject typoscriptObjectPath="lib.UidList" data="{pid:123}" />
打字错误:
lib.UidList = CONTENT
lib.UidList {
table = tt_content
select {
pidInList.field = pid
}
renderObj = TEXT
renderObj.field = uid
renderObj.wrap = |, |*| |, |*| |
}