Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upload collections don't use gallery view #6889

Open
TSFoster opened this issue Jun 21, 2024 · 0 comments
Open

Upload collections don't use gallery view #6889

TSFoster opened this issue Jun 21, 2024 · 0 comments
Assignees
Labels

Comments

@TSFoster
Copy link

Link to reproduction

No response

Payload Version

v3.0.0-beta.56

Node Version

v22.3.0

Next.js Version

v15.0.0-rc.0

Describe the Bug

From the docs (for v2), when allowing uploads on a collection:

The Admin panel will modify its built-in List component to show a thumbnail gallery of your Uploads instead of the default Table view

I don't believe there's any way to get this thumbnail gallery in v3. Is that correct? Are there plans for it?

Thanks

Reproduction Steps

const upload: UploadConfig = {
  staticDir: 'public/uploads',
  mimeTypes: ['image/*'],
  adminThumbnail: ({doc}) => `/uploads/${doc.filename}`,
}

export const MediaCollection: CollectionConfig = {
  slug: 'media',
  admin: {
    useAsTitle: 'title',
    defaultColumns: ['title', 'filename'],
  },
  upload,
  fields: [
    {
      name: 'title',
      type: 'text',
      index: true,
    },
  ],
}

Adapters and Plugins

No response

@TSFoster TSFoster added status: needs-triage Possible bug which hasn't been reproduced yet v3 labels Jun 21, 2024
@github-actions github-actions bot removed the status: needs-triage Possible bug which hasn't been reproduced yet label Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants