Detect File Extension / Preview Images in Lightbox #971
Unanswered
jmp100
asked this question in
Help & Support
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've updated the app/views/components/file.twig adding another column to prompt downloading files. In earlier version I've set code to preview images in a lightbox.
How and where could I set code to detect file extension and pass the file extension to file.twig to post lightbox code with a twig if statement within the a href?
Image preview is very important to the application at hand. Currently I have files previewed by opening another tab. Docs prompt download in that instance.
Thanks for any help,
James
file.txt
Beta Was this translation helpful? Give feedback.
All reactions