November Happy Hour will be moved to Thursday December 5th.
I registered container page
[UIDescriptorRegistration] public class ContainerPageUiDescriptor : UIDescriptor<ContainerPage>, IEditorDropBehavior { public bool AllowSelectItSelf { get; private set; } public EditorDropBehavior EditorDropBehaviour { get; set; } public ContainerPageUiDescriptor() : base(ContentTypeCssClassNames.Container) { DefaultView = CmsViewNames.AllPropertiesView; this.AddDisabledView(CmsViewNames.PreviewView); this.AddDisabledView(CmsViewNames.OnPageEditView); IsPrimaryType = true; CommandIconClass = "epi-iconPage"; ContainerTypes = (IEnumerable<Type>)new Type[] { typeof (PageData) }; AllowSelectItSelf = true; EditorDropBehaviour = EditorDropBehavior.CreateLink; } }
The AddDisabledView allows to hide "All properties" button and it's fine.
The issue is with the razor view, it doesn't exist and error is shown about that, when the content editor selects the container page.
Is there any way to make setup via UIDescriptor not to load view (I don't want to set null to SelectedTemplate)?
Thank you.
P.S. And I don't want use the page controller with EmptyResult.
I registered container page
[UIDescriptorRegistration]
public class ContainerPageUiDescriptor : UIDescriptor<ContainerPage>, IEditorDropBehavior
{
public bool AllowSelectItSelf { get; private set; }
public EditorDropBehavior EditorDropBehaviour { get; set; }
public ContainerPageUiDescriptor()
: base(ContentTypeCssClassNames.Container)
{
DefaultView = CmsViewNames.AllPropertiesView;
this.AddDisabledView(CmsViewNames.PreviewView);
this.AddDisabledView(CmsViewNames.OnPageEditView);
IsPrimaryType = true;
CommandIconClass = "epi-iconPage";
ContainerTypes = (IEnumerable<Type>)new Type[] { typeof (PageData) };
AllowSelectItSelf = true;
EditorDropBehaviour = EditorDropBehavior.CreateLink;
}
}
The AddDisabledView allows to hide "All properties" button and it's fine.
The issue is with the razor view, it doesn't exist and error is shown about that, when the content editor selects the container page.
Is there any way to make setup via UIDescriptor not to load view (I don't want to set null to SelectedTemplate)?
Thank you.