getgrav / grav-plugin-admin

Grav Admin Plugin
http://getgrav.org
MIT License
354 stars 227 forks source link

Field 'file' not use thumbnails images #1496

Open igk1972 opened 6 years ago

igk1972 commented 6 years ago

Thumbnails images src use link to original image path. This is a problem, because the file can be large. However, the pagemedia field uses thumbnails

Problem in: https://github.com/getgrav/grav-plugin-admin/blob/develop/themes/grav/templates/forms/fields/file/file.html.twig#L43 https://github.com/getgrav/grav-plugin-admin/blob/develop/themes/grav/templates/forms/fields/file/file.html.twig#L56

rhukster commented 6 years ago

I think your links are no longer pointing to the correct places? Could you please update?

igk1972 commented 6 years ago

Links update: https://github.com/getgrav/grav-plugin-admin/blob/develop/themes/grav/templates/forms/fields/file/file.html.twig#L38 https://github.com/getgrav/grav-plugin-admin/blob/develop/themes/grav/templates/forms/fields/file/file.html.twig#L50

Problem with real_path (and path) and then data-file (as source for DropzoneJS thumbnails)