【问题标题】:Hyperlink to Document Library by Id?按 ID 超链接到文档库?
【发布时间】:2010-04-30 03:03:27
【问题描述】:

在 Sharepoint 2007 中,当链接到文档库中的文件夹或文件时,URL 很长而且很麻烦。是否可以通过 ID 字段链接?

例如,http://domain/path/doclib/Forms/AllItems.aspx?ID=275

【问题讨论】:

    标签: sharepoint


    【解决方案1】:

    http://domain/sites/whatever/Lists/Announcements/DispForm.aspx?ID=1&Source=http%3A%2F%2Fmoss2007dev%3A20000%2Fsites%2Farcnet%2FLists%2FAnnouncements%2FAllItems.aspx 有什么问题

    如果您删除左边的 Source 参数,http://domain/sites/whatever/Lists/Announcements/DispForm.aspx?ID=1 有什么问题。您将遇到的唯一问题是取消按钮不一定会返回您来自的位置。 (据我所知,取消按钮会将您送回默认视图..)

    另一方面,您可以潜入一些代码,从视图重定向或实际打开文档。

    【讨论】:

    • 谢谢!这就是我要找的:../DispForm.aspx?ID=1
    【解决方案2】:

    我知道您专门询问了 2007 年,但 SharePoint 2010 有一个很酷的新 Document ID 功能,可让您使用以下格式引用网站集中的任何文档:

    http://[sitecollectionurl]/_layouts/DocIdRedir.aspx?ID=[documentID]

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-12-26
      • 2019-12-09
      • 1970-01-01
      • 2013-10-29
      相关资源
      最近更新 更多