问题描述
在 Sharepoint 2007 中,当链接到文档库中的文件夹或文件时,url 又长又麻烦.是否可以通过 ID 字段链接?
In Sharepoint 2007, when linking to a folder or file in a Document Library, the url is long and cumbersome. Is it possible to link by the ID field?
例如,http://domain/path/doclib/Forms/AllItems.aspx?ID=275
推荐答案
如果您删除左边的 Source 参数,有什么问题http://domain/sites/whatever/Lists/Announcements/DispForm.aspx?ID=1.那么你唯一会遇到的问题是取消按钮不一定会返回你来自哪里.(据我所知,取消按钮会将您送回默认视图..)
If you remove the Source parameter your left with Whats the problem with http://domain/sites/whatever/Lists/Announcements/DispForm.aspx?ID=1. The only problem you'll have then is that the cancel button will not necessarly return you where you came from. (The cancel button would send you back to the default view as far as I know..)
另一方面,您可以潜入一些代码,从视图执行重定向或实际打开文档.
On the other hand you could sneak in some code which does the redirect from a view or actually opens the document.
这篇关于通过 ID 超链接到文档库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!