如何将node:link标记放入html标签中?
我已经安装了视图和令牌模块。我添加一个视图字段“节点:链接”并检查“节点:链接”字段的“从显示中排除”选项,并按字段顺序首先设置该字段,现在我想覆盖视图字段。
我把这个 更多>>
。但行不通? 重写此字段的输出
文本框中的[view_node]
是Node:Link
token,如何让more>>
链接正常?谢谢
i have installed the views and token module. i add a views field 'Node:Link' and check the 'exclude from display' option for the 'node:link' field and set the field first in the field order,now i want to overrite a views field.
i put this <a href="[view_node]"> more >> </a>
in the rewrite the output of this field
text box. but it can't work? [view_node]
is the Node:Link
token, how to make the more>>
link ok? thank you
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在
Node:Link
字段中,在要显示的文本:
文本框中输入more
。无需放置锚标记,只需在重写此字段文本框中的输出中键入
[view_node]
即可。In the
Node:Link
field, entermore
inText to display:
text box.No need to put anchor tag just type
[view_node]
in the rewrite the output of this field text box.视图有一种内置方法可以使用标记将文本链接到其他页面。我会使用它而不是将锚标记放在重写部分中。它的标题是“将此字段输出为链接”
如果您使用的是 Drupal 6 并且您只想将该字段链接到它的节点,那么只需选中“将此字段链接到它的节点”框即可
Views has a built in way to make text link to other pages with tokens. I would use that instead of putting the anchor tag in the rewrite section. It's titled, "Output this field as a link"
If you're on Drupal 6 and you just want to link the field to it's node then just check the box "Link this field to it's node"