我想做一个应用程序,它将基本上为新用户提供给我的SharePoint 2013 Portal一个小的“引导”游览系统和一些主要功能。

如何检测对页面的初始访问权限?我目前正在考虑设置一个饼干,但想看看人们的想法。

谢谢!

有帮助吗?

解决方案

For me, I would have the values stored on a list or in a SQL table that would have a column to check against! It can contain a simple bool yes for been here before and no for new user!

When the use logs in it checks up against the list or SQL table, depending on the value will determin wether they see an intro or not!

For me I would go with SQL and a custom stored procedure returning true or false from the column, its faster and not that taxing on resources!

Simple and easy ;).... im sure there are other ways like through AD (active directory) check the flag if "change password at next logon" is checked. If checked then show the intro if its not checked than dont ;)

there you go three ways! i would still go with SQL but AD is a good contender (no need to add an extra value/table/column) and no calls to DB but its easier to develop!

其他提示

I would recommend two options:

  1. Leverage the User Profile of the user to track first visits as long as you don't want to present the user with the guided tour everytime they hit the site on a new device (desktop vs tablet)

  2. You can use also use cookies in combination with the user profile tracking. If the user has already gone through the tour on one device and the user profile Boolean is set, but a cookie has not also been written on the new device, you can offer the guided tour with a more subtle option to the user (e.g. "Would you like to take the tour again on your new device?"

I second the idea of leveraging the User Profile service. Just add a custom property that sets a flag indicating whether or not they've visited the site before.

许可以下: CC-BY-SA归因
scroll top