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

Thumbnails not rendering in collection table #17541

Closed
3 tasks done
danielbuechele opened this issue Feb 15, 2023 · 5 comments · Fixed by #19389
Closed
3 tasks done

Thumbnails not rendering in collection table #17541

danielbuechele opened this issue Feb 15, 2023 · 5 comments · Fixed by #19389
Assignees
Labels

Comments

@danielbuechele
Copy link

Checklist

Describe the Bug

Moving from discussion: #17494

My collection has a 1:1 relationship to an image, when I add the image thumbnail to the table view of the collection, the image is not shown, and the requests loading the image are missing the asset ID:
image

When switching to card view the image render correctly, which makes me think that this must be a bug in the table view renderer.

Running directus v9.22.3 in a self-hosted node18 environment.

To Reproduce

  1. Create a collection with a 1:1 relationship to an image.
  2. Switch to the Collection view table
  3. Add a column for the thumbnail of the image to the table
  4. Observe the thumbnail not rendering and failing network requests in the browser's network inspector
  5. Switch to card view and observe the images rendering correctly.

Hosting Strategy

Self-Hosted (Docker Image)

@github-actions
Copy link

Linear: ENG-706

@luhovskyi
Copy link

I'm using Files field to upload multiple images and I confirm the issue with thumbnail display too.

@connorwinston
Copy link
Member

@danielbuechele You should set the display as Image, and then for the column choose the root image field, not the child thumbnail field. Looks like Nitwel is working on a PR to hide the thumbnail field because it is an internal field that shouldn't be selectable.
Choose the display for the image field.
image
Choose the Root image Field image not image.thumbnail
image
image

@danielbuechele
Copy link
Author

Oh wow! Turns out, I was just stupid. Thanks for pointing this out, I didn't realize the "Image" section was clickable itself and assumed that I had to select something from its submenu.
From my perspective we can close this issue then.

@luhovskyi
Copy link

luhovskyi commented Mar 22, 2023

You should set the display as Image, and then for the column choose the root image field, not the child thumbnail field. Looks like Nitwel is working on a PR to hide the thumbnail field because it is an internal field that shouldn't be selectable.
Choose the display for the image field.

Thank you.
It works for a single image.
@connorsimply Is it the way to display multiple files as images?

@Nitwel Nitwel self-assigned this Aug 10, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
Archived in project
5 participants