简体   繁体   English

tt_news最新视图-如果类别中没有新闻,则显示其他类别的新闻

[英]tt_news LATEST view - if no news in category, show news from another category

I am trying to meet the following requirement for a tt_news LATEST element and could use some help: 我正在尝试满足tt_news LATEST元素的以下要求,并且可以使用一些帮助:

Example: 例:

There are three categories: A,B and C 分为三类:A,B和C

Normally, display one item for each cat: A, B, C 通常,为每只猫显示一个项目:A,B,C

If there are no News in A, display an item from the following categories: B (top item), B (second item), C 如果A中没有新闻,请显示以下类别的项目:B(顶部项目),B(第二项目),C

So: Always display 3 items in LATEST. 因此:始终以最新显示3个项目。 Normally, one of each category. 通常,每个类别之一。 BUT when a category has no displayable news, fill it with the next news item from another category 但是,当某个类别没有可显示的新闻时,请用另一个类别的下一个新闻项填充它

Is that something that can be done with Typoscript? Typoscript可以做些什么吗? Or do I have to build my own userfunc? 还是我必须建立自己的userfunc?

This is not possible with standard typoscript news properties. 使用标准的排印新闻属性是不可能的。 You will have to roll your own solution here. 您将不得不在这里推出自己的解决方案。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM