Question

Quelqu'un a des conseils sur la meilleure façon de suivre les sites de récents un utilisateur a visité?

Dans le cadre de mon redéfinie mondial de navigation contrôle des délégués, je voudrais créer quelque chose de semblable à un fil d'Ariane, mais affiche au lieu des 4 derniers sites (objets SPWeb) l'utilisateur a visité indépendamment de la relation hiérarchique.

Merci.

Était-ce utile?

La solution 2

Enabling session state would have worked (I successfully implemented it this way first). But since I am working with a Standard license I was able to add a custom multivalued string property to the user profile property bag.

Then inside my delegate control I access the property with the following:

   SPServiceContext serviceContext = SPServiceContext.GetContext(SPContext.Current.Site);
   UserProfileManager profileManager = new UserProfileManager(serviceContext);
   UserProfile user = profileManager.GetUserProfile(false);
   ProfileValueCollectionBase siteValues = user.GetProfileValueCollection("LastFourSitesProperty");

Autres conseils

You need to build something to get this to work. In you custom global nav you could either store the navigation history in a cookie, in a db, in-memory or whatever you prefer.

Licencié sous: CC-BY-SA avec attribution
Non affilié à sharepoint.stackexchange
scroll top