通过 ID 超链接到文档库? [英] Hyperlink to Document Library by Id?

查看:52
本文介绍了通过 ID 超链接到文档库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 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

推荐答案

http://domain/sites/whatever/Lists/Announcements/DispForm.aspx?ID=1&x;来源=http%3A%2F%2Fmoss2007dev%3A20000%2Fsites%2Farcnet%2FLists%2FAnnouncements%2FAllItems.aspx

如果您删除左边的 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 超链接到文档库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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