如何让 SharePoint 链接列表默认在新窗口中打开?
在 SharePoint 中,可以轻松设置由指向其他文档、文件夹、网站等的链接组成的列表 Web 部件。不幸的是,单击这些链接时,默认行为是在当前浏览器窗口中打开页面。 也就是说,它不会在浏览器的新实例中打开页面。 事实证明,这对我网站上的许多用户来说很烦人。
有谁知道有一种方法可以让默认行为在新的浏览器窗口中打开?
我希望这是可以在 SharePoint 中设置的内容,而不是让用户需要在浏览器中调整某种设置。
In SharePoint, it is easy to set up a List webpart consisting of Links to other documents, folders, sites, etc. Unfortunately, when clicking these links, the default behavior is for the page to open in the current browser window. That is, it does NOT open the page in a new instance of the browser. This has proven annoying for a number of the users on my site.
Does anyone know of a way to have the default behavior be to open in a NEW browser window?
I'm hoping this is something that can be set in SharePoint rather than having users need to adjust some sort of setting in their browser.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
默认链接列表 Web 部件无法实现此功能,但有一些资源描述了如何扩展 Sharepoint 服务器端以添加此功能。
共享点链接在新窗口中打开
更改 Sharepoint 2007 中的链接列表
It is not possible with the default Link List web part, but there are resources describing how to extend Sharepoint server-side to add this functionality.
Share Point Links Open in New Window
Changing Link Lists in Sharepoint 2007
您可以在 SharePoint 设计器中编辑页面,将列表视图 Web 部件转换为 XSLT 数据视图。 (右键单击 +“转换为 XSLT 数据视图”)。
然后您可以编辑 XSLT - 找到
A
标记并添加属性target="_blank"
You can edit the page in SharePoint designer, convert the List View web part to an XSLT Data View. (by right click + "Convert to XSLT Data View").
Then you can edit the XSLT - find the
A
tag and add an attributetarget="_blank"
SP2010的相同实例; 链接列表 Web 部件不会自动在新窗口中打开,而用户必须手动单击链接对象并选择在新窗口中打开。
SP2010 中的添加/插入链接选项将允许用户手动配置链接以在新窗口中打开。
也许 SP2012 版本将解决这个问题......
The same instance for SP2010; the Links List webpart will not automatically open in a new window, rather user must manually rt click Link object and select Open in New Window.
The add/ insert Link option withkin SP2010 will allow a user to manually configure the link to open in a new window.
Maybe SP2012 release will adrress this...
在链接选项卡下==> 编辑URL项目==> 在 URL 下(键入 Web 地址)- 按如下格式设置值:
示例:
如果 URL = http://www.abc.com ==> 然后在值后加上 ==>;
所以,最终值应为 ==>
http://www.abc.com#openinnewwindow/,'" target="http:// www.abc.com'
完成 ==> 这将在新窗口中打开 URL
Under the Links Tab ==> Edit the URL Item ==> Under the URL (Type the Web address)- format the value as follows:
Example:
if the URL = http://www.abc.com ==> then suffix the value with ==>
SO, the final value should read as ==>
http://www.abc.com#openinnewwindow/,'" target="http://www.abc.com'
DONE ==> this will open the URL in New Window