Skip to main content
replaced http://sitecore.stackexchange.com/ with https://sitecore.stackexchange.com/
Source Link

I found similar question here: Set Default Value of Ribbon CheckboxSet Default Value of Ribbon Checkbox and make some adjustment since it have different settings and sitecore version as follow

I found similar question here: Set Default Value of Ribbon Checkbox and make some adjustment since it have different settings and sitecore version as follow

I found similar question here: Set Default Value of Ribbon Checkbox and make some adjustment since it have different settings and sitecore version as follow

added 808 characters in body
Source Link

UPDATE #2: After Andrey Bobrov said, i try to clear cache by using this way:

namespace CustomLogin
{
    public class EnforceEntireTree
    {
        public void Process(LoggedInArgs args)
        {
            User user = User.FromName(args.Username, true);
            Assert.IsNotNull(user, "user");

            string key = "/" + user.Name + "/UserOptions.View.ShowEntireTree";
            user.Profile.Initialize(user.Name, true);
            user.Profile[key] = "true";
            user.Profile.Save();

            RegistryCache registryCache = CacheManager.GetRegistryCache(Context.Site);
            registryCache.Clear();
        }
    }
}

Still not working, Do I doing it wrong? If I clear all the cache from sitecore/admin/cache.aspx then the checkbox is checked just by using refresh (F5)

Thank You

Thank You

UPDATE #2: After Andrey Bobrov said, i try to clear cache by using this way:

namespace CustomLogin
{
    public class EnforceEntireTree
    {
        public void Process(LoggedInArgs args)
        {
            User user = User.FromName(args.Username, true);
            Assert.IsNotNull(user, "user");

            string key = "/" + user.Name + "/UserOptions.View.ShowEntireTree";
            user.Profile.Initialize(user.Name, true);
            user.Profile[key] = "true";
            user.Profile.Save();

            RegistryCache registryCache = CacheManager.GetRegistryCache(Context.Site);
            registryCache.Clear();
        }
    }
}

Still not working, Do I doing it wrong? If I clear all the cache from sitecore/admin/cache.aspx then the checkbox is checked just by using refresh (F5)

Thank You

edited tags
Link
Andrey Bobrov
  • 2.7k
  • 11
  • 27
added 534 characters in body
Source Link
Loading
Source Link
Loading