0
votes

I have a LIST VIEW in tt_news. 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.

How could I do it? Im using genericmarkers for tt_news to add custom objects

1

1 Answers

1
votes

Use the extraItemMarkerProcessor we were talking about before and insert new marker ie. ###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