登录时向用户服务器显示我的文档 [英] Show user server my documents when they login

查看:62
本文介绍了登录时向用户服务器显示我的文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一名网络开发人员,但我们运行的是一个sharepoint 2013网站。我还不太了解sharepoint,但我想为我们的用户添加一些内容。


我想为用户添加个人页面,以便他们可以访问我的文档在我们的文件服务器上可能我想在登录时显示。


我搜索过,但没有找到太多有用的信息。任何人都有关于设置此类内容的文章的链接?


谢谢

解决方案

Hi Knurb 。当你说文件服务器时,我认为你的意思是共享驱动器,例如Z:\?如果是这种情况,那么您实际上是链接到驱动器和特定用户文件夹。如果驱动器由每个用户为1的文件夹组成,则只需要创建
"动态"按钮。链接基于登录用户映射到Z:\中的文件夹。



要获取登录用户,可以使用SPServices :  https://sympmarc.github.io/SPServices/



从那里你只需要登录的映射方案文件夹的详细信息。希望您已将文件夹命名为与用户登录相同。如果是这种情况,您可以从登录用户中提取电子邮件地址并切断@ company.com。 



所以一旦你拥有了它,只需将链接放在页面的某个地方即可。您有一个代码文件,因此您可以将其包装在母版页中,以便在任何地方显示,或者将其添加到内容编辑器Web部件源链接,以便它显示在一个
特定页面上。


I'm a web developer, but we have a sharepoint 2013 site I run. I don't know that much about sharepoint yet, but I have something I want to add for our users.

I want to add personal pages for our users where they can access their my documents on our file server. Possibly I would like that to display when they login.

I've searched, but haven't found much useful information. Anyone have links to articles on setting up something like this?

Thanks

解决方案

Hi Knurb. When you say file server, I assume you mean a shared drive e.g. Z:\? If that's the case, then you're really linking to the drive and the specific user folder. If the drive is made up of folders with 1 for each user, you'd just need to create a "dynamic" link based on the logged in user mapped to the folders in Z:\.

To get the logged in user, you could use SPServices: https://sympmarc.github.io/SPServices/

From there you'd just need a mapping scheme from the login details to the folder. Hopefully you've named your folders the same as user logins. If that's the case, you can likely pull the email address from the logged in user and chop off @company.com. 

So once you have that, it's just a matter of placing the link on the page somewhere. You'd have a code file, so you can either wrap that in the masterpage so it displays everywhere, or add it to a content editor web part source link so it displays on one specific page.


这篇关于登录时向用户服务器显示我的文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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