#Need help with replacing collection view. ๐Ÿ†˜

2 messages ยท Page 1 of 1 (latest)

past phoenix
#

Hello can anyone help me and tell me how is it possible to replace the whole collection view with the custom one? I've already tried few things but it's not working properly.

Here is the code that got me the closest to the desired result:

  export const Analytics: CollectionConfig = {
  slug: 'analytics',
  admin: {
    useAsTitle: 'title', 
    group: 'Workspace',
    components: {
      views: {
        list: {
          Component: {
            path: 'src/components/CustomAnalytics.tsx',
          },
        },
      },
    },
  },
  fields: [
    {
      name: 'title',
      type: 'text',
      required: true,
      admin: {
        hidden: true, 
      },
    },
  ],
}