TYPO3 extension “news”: Getting “Detail View” URL

。_饼干妹妹 提交于 2019-12-11 09:04:17

问题


I have started using the TYPO3 extension "news" and I would like to create in the LIST VIEW a "Facebook Like Button" for the Detail View of each enty. For this I need to fetch the URL of the DETAIL VIEW, not the whole <a> tag. How can i do this?

I tried this, but it didnt work:

<n:link configuration="{returnLast: 'url'}" newsItem="{newsItem}" settings="{settings}">
    Link to detail page
</n:link>

It uses Fluid Templates, which I'm completely new with, so I don't know how complicated this actually is.


回答1:


I found the solution. parameter uriOnly:

<n:link uriOnly='1' newsItem='{newsItem}' settings='{settings}'></n:link>"


来源:https://stackoverflow.com/questions/15290087/typo3-extension-news-getting-detail-view-url

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!