0
votes

I'm using TYPO3 7.6.2with the extension news(4.1.0) ... I'm showing the news tags at my detail page (own template : Resources/Private/Extensions/News/Templates/News/Detail.html).

At list view it's no problem to show & hyperlink a list of tags. But not at detail view.I can show them but how can I link the seperate tags as well?

<f:for each="{newsItem.tags}" as="tag">
  <f:link.page title="{tag.title}" pageUid="{tag.uid}" additionalParams="{tx_news_pi1:{overwriteDemand:{tags: tag}}}">
    {tag.title}
   </f:link.page>
 </f:for>

The uidis wrong, see screenshot. How can I make a link from detail- to tag-list-view with the corresponding tag?

debug

2

2 Answers

1
votes

It just works with a page ID, which contains a news list:

<f:link.page title="{tag.title}" pageUid="{22}" additionalParams="{tx_news_pi1:{overwriteDemand:{tags: tag}}}">
0
votes

You use the uid as a page uid, thus gives you the wrong link. You need to link to a page where you have a list of the news items with a certain tag :

 <f:link.page title="{tag.title}" pageUid="{settings.mynewssettings.pageidoftaglist}" additionalParams="{tx_news_pi1:{overwriteDemand:{tags: tag}}}">