Default View in Episerver

Vote:
 

Hi,

Is there a way to set the default view as All Property view instead of On page edit view?

Thanks,

Hari

#147955
Apr 28, 2016 16:55
Vote:
 
[UIDescriptorRegistration]
    public class PageUIDescriptor : UIDescriptor<TestPage>
    {
        public PageUIDescriptor() : base("epi-iconObjectPage")
        {
            DefaultView = CmsViewNames.AllPropertiesView;
        }
    }
#147959
Apr 28, 2016 17:15
Vote:
 

Hi,

The code is working, but EPi CMS still render "OnPageEditView" before switching to "AllPropertiesView". Switching hangs sometime. Is this a bug? 

Thanks,

Dzung

#148618
May 18, 2016 15:00
Vote:
 

Sounds like a bug...

That code should be working...

#148622
May 18, 2016 16:49
Vote:
 

It works the opposite in my case. It always shows AllPropertiesView even when i changes to OnPageEditView. Can't say its a bug, because it works in alloy site.

 [UIDescriptorRegistration]
    public class SitePageUiDescriptor : UIDescriptor<SitePageData>
    {
        public SitePageUiDescriptor() : base(ContentTypeCssClassNames.Page)
        {
            DefaultView = CmsViewNames.OnPageEditView;
        }
    }
#192660
May 22, 2018 12:22
Vote:
 

By going through https://world.episerver.com/blogs/grzegorz-wiechec/dates/2017/9/sticky-view-mode/ i found that, its new feature in Episerver 10.11.0 onwards which shows previously selected view, i solved it by adding 

EnableStickyView = false;

#192661
Edited, May 22, 2018 12:40
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.