向内容元素添加限制
Add limit to Content Element
我用 TYPO3 9x 建立了一个网站,并插入了一个这种类型的内容元素:
Categorized content [menu_categorized_content]
objective是显示给定类别中的内容。
但是我需要限制内容记录的数量,只显示3条记录。
如何添加此功能以限制内容数量?
TYPO3 正在使用 DatabaseQueryProcessor
从数据库中获取记录。
您可以在以下位置找到设置:
typo3/sysext/fluid_styled_content/Configuration/TypoScript/ContentElement/MenuCategorizedContent.typoscript
DatabaseQueryProcessor
使用 TypoScript 的默认 .select
语法,您可以在此处找到文档:https://docs.typo3.org/m/typo3/reference-typoscript/master/en-us/Functions/Select.html#comprehensive-example
您可以将其添加到您的 TypoScript 中:
tt_content.menu_categorized_content.dataProcessing.10.max = 3
我用 TYPO3 9x 建立了一个网站,并插入了一个这种类型的内容元素:
Categorized content [menu_categorized_content]
objective是显示给定类别中的内容。
但是我需要限制内容记录的数量,只显示3条记录。
如何添加此功能以限制内容数量?
TYPO3 正在使用 DatabaseQueryProcessor
从数据库中获取记录。
您可以在以下位置找到设置:
typo3/sysext/fluid_styled_content/Configuration/TypoScript/ContentElement/MenuCategorizedContent.typoscript
DatabaseQueryProcessor
使用 TypoScript 的默认 .select
语法,您可以在此处找到文档:https://docs.typo3.org/m/typo3/reference-typoscript/master/en-us/Functions/Select.html#comprehensive-example
您可以将其添加到您的 TypoScript 中:
tt_content.menu_categorized_content.dataProcessing.10.max = 3