Skip to content

Instantly share code, notes, and snippets.

View AlphaMoonbaseBerlin's full-sized avatar

Wieland Hilker AlphaMoonbaseBerlin

  • PlusPlusOne-GmbH
  • Berlin, Germany
View GitHub Profile
@DrMint
DrMint / ExampleCollection.ts
Last active January 4, 2026 01:43
Grid View for Payload Uploads Collections
import { CollectionConfig } from "payload/types";
import { UploadsGridView } from "../../components/UploadsGridView/UploadsGridView";
export const Media: CollectionConfig = {
slug: "media",
admin: {
components: { views: { List: UploadsGridView } } // Set the List view to use the Grid view,
},
upload: {
staticURL: "/media",