将 SharePoint 超链接列输出为 URL [英] Outputting SharePoint Hyperlink Column as URL

查看:57
本文介绍了将 SharePoint 超链接列输出为 URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Sharepoint 发布列中存储了一些文档 URL.当我使用以下方法将信息输出到 HTML 页面时:

I have some document URLs stored in a Sharepoint publishing column. When I output the info into a HTML page using:

<xsl:value-of select="@[ColumnName]" />

ItemStyle.xml中,我在页面中得到[url],[document name].我想将其显示为 URL 任何人都可以帮助使用 XSL?

in ItemStyle.xml, I get [url], [document name] in the page. I would like to display this as a URL can anyone help with the XSL?

推荐答案

您可以使用:

<xsl:value-of select="substring-before(@[ColumnName],',')"/>

或任何分隔符.

这篇关于将 SharePoint 超链接列输出为 URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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