Closed tomahg closed 3 years ago
@tomahg Can you try SearchContentViewContentData.ViewKey?
btw. you should not have to set that DefaultView yourself. if you want to replace the default UIDescriptor for content folders you should just register this UIDescriptor in the container like this:
[UIDescriptorRegistration]
[ServiceConfiguration(typeof(ContentFolderUIDescriptor))]
public class ContentFolderUIEditorDescriptor : ContentFolderUIDescriptor
{ ... }
@tomahg Can you try SearchContentViewContentData.ViewKey? Thanks, it worked!
Could you update here?
btw. you should not have to set that DefaultView yourself. if you want to replace the default UIDescriptor for content folders you should just register this UIDescriptor in the container like this: I would like to set DefaultView for list pages. Then I need to set DefaultView, right?
Ideally I would like to set DefaultView = GridView for list pages that are converted to container pages only. List pages that are not converted to container pages, should have default behavior for DefaultView. Is that possible?
Thanks :-)
Updated the docs about defaul view & content folders. https://github.com/episerver/episerver-labs-content-manager-docs/commit/9f6fb596fe8d4869194d511ef2f993ee894c3a33
Generic type can't be used without type parameter