TYPO3 7.4 显示类别
TYPO3 7.4 display categories
我正在尝试显示当前页面的类别。
因为我在 TYPO3 中不是那么好,所以在尝试显示 current 之前,我首先尝试显示 all 类别。
以下代码段不知何故不起作用。
lib.categorized_content = RECORDS
lib.categorized_content {
categories.field = selected_categories
categories.relation.field = category_field
tables = tt_content
conf.tt_content = TEXT
conf.tt_content {
stdWrap.field = header
stdWrap.typolink.parameter = {field:pid}
stdWrap.typolink.parameter.insertData = 1
stdWrap.wrap = <li>|</li>
}
wrap = <ul>|</ul>
}
这是我从中获得这段代码的地方:https://docs.typo3.org/typo3cms/TyposcriptReference/ContentObjects/Records/Index.html#categories
我正在使用 <f:cObject typoscriptObjectPath="lib.categorized_content" />
将其实施到我的模板中。
有人可以帮忙吗?
selected_categories
和category_field
是来自Special Menu
内容元素的flexform字段(从配置属性的后缀.field
可以看出) .
您必须用实际值替换它们。
我正在尝试显示当前页面的类别。
因为我在 TYPO3 中不是那么好,所以在尝试显示 current 之前,我首先尝试显示 all 类别。
以下代码段不知何故不起作用。
lib.categorized_content = RECORDS
lib.categorized_content {
categories.field = selected_categories
categories.relation.field = category_field
tables = tt_content
conf.tt_content = TEXT
conf.tt_content {
stdWrap.field = header
stdWrap.typolink.parameter = {field:pid}
stdWrap.typolink.parameter.insertData = 1
stdWrap.wrap = <li>|</li>
}
wrap = <ul>|</ul>
}
这是我从中获得这段代码的地方:https://docs.typo3.org/typo3cms/TyposcriptReference/ContentObjects/Records/Index.html#categories
我正在使用 <f:cObject typoscriptObjectPath="lib.categorized_content" />
将其实施到我的模板中。
有人可以帮忙吗?
selected_categories
和category_field
是来自Special Menu
内容元素的flexform字段(从配置属性的后缀.field
可以看出) .
您必须用实际值替换它们。