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?
Asked
Active
Viewed 2,919 times
2

Prakash Thapa
- 1,285
- 14
- 27
3 Answers
8
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>

Georg Ringer
- 7,779
- 1
- 16
- 34
3
You could also take the f:link.action
ViewHelper
<f:link.action pageUid="{settings.detailPid}" extensionName="News" pluginName="pi1" controller="News" action="detail" arguments="{news:newsItem.uid}" >
{newsItem.title}
</f:link.action>

kimomat
- 2,211
- 23
- 37
1
<f:link.page pageUid="{settings.detailPid}" additionalParams="{
tx_news_pi1:{news:newsItem.uid,controller:'News',action:'detail'}
}"> Detail Link </f:link.page>
Just change standard vars on your.

Oleg V Karun
- 726
- 1
- 6
- 29