TYPO3 扩展“新闻":获取“详细信息"网址 [英] TYPO3 extension "news": Getting "Detail View" URL

查看:24
本文介绍了TYPO3 扩展“新闻":获取“详细信息"网址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经开始使用 TYPO3 扩展新闻",我想在列表视图中为每个实体的详细信息视图创建一个Facebook Like Button".为此,我需要获取 DETAIL VIEW 的 URL,而不是整个 <a> 标签.我该怎么做?

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?

我试过了,但没有用:

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

它使用 Fluid Templates,我是全新的,所以我不知道这实际上有多复杂.

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

推荐答案

我找到了解决方案.参数 uriOnly:

I found the solution. parameter uriOnly:

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

这篇关于TYPO3 扩展“新闻":获取“详细信息"网址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆