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?
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>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With