将新接受的协议添加到 SharePoint 2010 中的 URL/链接验证
我正在尝试在 sharepoint 2010 的内容编辑器中添加超链接。问题是验证仅允许某些接受的协议(http、https、ftp、mailto、新闻等)。我需要添加 Lotus Notes 链接,如下所示:“notes://mydomain”。
我找到了一些页面,其中有一些针对 SharePoint 2007 的解决方案,但它们对我不起作用。
我希望 SP2010 能找到解决此问题的方法。任何帮助将不胜感激。
I am trying to add a hyperlink in the content editor in sharepoint 2010. The problem is that the validation only allows certain accepted protocols (http, https, ftp, mailto, news, etc..). I need to add Lotus Notes link such as this: "notes://mydomain".
I found a few pages that had some solutions for SharePoint 2007, but they did not work for me.
My hope is that SP2010 addresses a way of getting around this issue. Any help would be greatly appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可以插入脚本编辑器 Web 部件并手动键入
link
You can insert a script editor web part and type the
<a href=''>link</a>
manually不幸的是,我认为我没有找到好的解决方案。我真的希望能够修改 SharePoint 中的某些设置并允许其他协议。我尝试覆盖 core.js 中的 IsSafeHref() ,但没有成功。我的最终解决方案是创建一个读取查询字符串并调用重定向的 WebPart。就像这样:
希望它能帮助其他人。
Unfortunately I did not find a good solution, in my opinion. I really wanted to be able to modify some setting in SharePoint and allow other protocols. I went as far as trying to override the IsSafeHref() in core.js, but no luck. My final solution was to create a WebPart that reads the querystring and calls a redirect. Like so:
Hope it helps others out there.
我在没有 SP Designer 的情况下使用 OOB 使其变得简单如下:
要使其看起来为 1 行,您可以在“外观”中为 Web 部件 Chrome 类型选择值“无”。
I made it as simple as the following using OOB without SP Designer:
To make it looks as 1 line you can select the value "none" for web part Chrome Type in the Appearance.