Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create link with article Id in news(tx_news) in typo3?

I have article with uid xyz and pid foobar . How to create a link for the detail page using f:uri.action or f:link.page (or any other uri) outside news extension?

like image 447
Prakash Thapa Avatar asked Dec 05 '25 00:12

Prakash Thapa


1 Answers

To answer the question to 100%, the links can be built by using

<f:link.page />

<f:link.page 
  pageUid="13" 
  additionalParams="{tx_news_pi1: {controller: 'News',action: 'detail', news:newsItem.uid}}">
    {newsItem.title}
</f:link.page>

<f:uri.page />

<a 
    href="{f:uri.page(
        pageUid:13,
        additionalParams:'{tx_news_pi1:{controller:\'News\',action:\'detail\',news:newsItem.uid}}')}">
    {newsItem.title}
</a>
like image 100
Georg Ringer Avatar answered Dec 07 '25 22:12

Georg Ringer



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!