简体   繁体   English

tt_news:带有链接的类别列表

[英]tt_news: List of categors with link

I have a LIST VIEW in tt_news. 我在tt_news中有一个LIST VIEW。 I want to display a list of all the categories each entry belongs to, like this: 我想显示每个条目所属的所有类别的列表,如下所示:

"TITLE OF NEWS “新闻标题
Sports , Travel , Photos " 体育旅行照片

so that each category name links to the view of all news from that category, like the CATMENU. 因此,每个类别名称都链接到该类别中所有新闻的视图,例如CATMENU。

How could I do it? 我该怎么办? Im using genericmarkers for tt_news to add custom objects 我使用tt_news的通用标记添加自定义对象

Use the extraItemMarkerProcessor we were talking about before and insert new marker ie. 使用我们之前讨论的extraItemMarkerProcessor并插入新标记即。 ###ITEM_CATEGORIES### . ###ITEM_CATEGORIES### Then you can use some kind of loop for every category to build link with and pass it to the marker as a list of coma-separated links: 然后,您可以对每个类别使用某种循环来建立链接,并将其作为逗号分隔的链接列表传递给标记:

$pObj->cObj->typolink($catName, $catLinkConfArray);

Building links with typolink is documented in TSref TSref中记录了使用typolink建立链接

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

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