November Happy Hour will be moved to Thursday December 5th.
November Happy Hour will be moved to Thursday December 5th.
Hello Douglas
The view settings are saved in cookies, so you would have to delete these cookies on mass from each user's machine. The following article may be useful:
http://world.episerver.com/Blogs/Linus-Ekstrom/Dates/2013/1/Resetting-your-EPiServer-views/
David
Hi David
Thank you for the reply. My browser empties its cookies each time I close it and the user accounts I'm logging into I've never logged into before as I can still see they have a certain gadget added to their interface layout so this sounds like its stored in the DB somewhere?
Would be good to be able to wipe all the user settings in one fell swoop as we currently have 72 accounts.
Doug
Good point Doug, I can see from Linus' code that some settings are actually ultimately saved in the database via the IPersonalizedViewSettingsRepository implementation. You could excute some code that interated each user and called the repository.Delete(User, setting.ViewName); method that would essentially mimic each user logging in and hitting the delete button. The psuedo code to do this would look something like this:
foreach (string username in AListOfAllUserNames)
{
IPersonalizedViewSettingsRepository instance = ServiceLocator.Current.GetInstance();
IPrincipal principal = PrincipalInfo.CreatePrincipal(username);
foreach (PersonalizedViewSettings settings in instance.Load(principal))
{
instance.Delete(principal, settings.ViewName);
}
}
Hi,
The nuke option is something like this, run in context of your cms database:
delete from [dbo].[tblBigTable]
where StoreName = 'EPiServer.Shell.Storage.ComponentData'
Remember to backup your database first ;).
Disclaimer: This is not recommended by EPiServer, this is my personal hack.
/Q
Thank you both for the replies. We shall investigate these two options.
Doug
Hi
Is there an easy way to mass reset all the user account views rather than asking all the users to login > my account > display options > reset views
Thanks