更新时间:2023-11-26 15:40:10
尝试在 ON
,因此:
join = sys_category_record_mm ON (sys_category_record_mm.uid_local=sys_category.uid)
此外,和位置
自TYPO3 7.1起已弃用,并已在8中删除。您需要将其添加到 where
并使用 markers
添加
Also, andWhere
has been deprecated since TYPO3 7.1 and has been removed in 8. You need to add that to where
and use markers
to add the page uid. From the top of my head, that would make it:
lib.catclass = CONTENT
lib.catclass {
wrap = <div class="categories">|</div>
table = sys_category
select {
pidInList = 35 // UiD of your category_page
join = sys_category_record_mm ON (sys_category_record_mm.uid_local=sys_category.uid)
where = sys_category_record_mm.tablenames='pages' AND sys_category_record_mm.uid_foreign = ###pageuid###
markers {
pageuid.data = TSFE:id
}
}
renderObj = TEXT
renderObj.field = title
renderObj.wrap = <li class="category {field:title}">|</li>
renderObj.insertData = 1
}
请参见 https://docs.typo3.org/typo3cms/TyposcriptReference/8.7/Functions/Select/#标记以获取有关标记