gentics / mesh-ui

Gentics Mesh UI
https://getmesh.io
Apache License 2.0
23 stars 27 forks source link

Preview image for nodes with binary_fields #13

Open bernhardriegler opened 6 years ago

bernhardriegler commented 6 years ago

Gentics Mesh Version

Problem

for web projects the usecase of having a node only containing an image is very common. When maintaining a long list of these nodes it is hard to differenciate only by the displayname.

Reproducer

Expected behaviour and actual behaviour

A thumbnail image (in listview and in "Select node..." dialog (grid and list)) would help allot.

michaelbromley commented 6 years ago

To do this, we'll probably have to encode the preview type in the schema.

Another approach would be to try to infer the preview type by e.g. looking to see if there is a binary field and then inspecting its mime type. This would however be unreliable, e.g. if there is a blog post with a binary field for a preview image, then we don't want to list blog posts as image thumbnails.

philippguertler commented 5 years ago

There should be small thumbnails in the list view with tooltips of a larger image. Same for the choose node dialog list.

Control properties should be used to determine which image should be displayed. See https://github.com/gentics/mesh-incubator/issues/170