You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I read in the description that it is only possible to present an uploaded file in flex as it is stored as folder storage.
I made a flex object solution with json storage. It includes an uploaded a file in de json file. The file represents a bookcover of a stored book.
What I noticed is that the uploaded file data is stored in the json file. The actual file is stored in de same folder as the json file. I also noticed that the uploaded file in this solution is presented in the admin of this flex object.
With this solution, I tried to present the collection via twig. All the text fields are presented but not the image.
My question is, even if description says that it not possible, is there a way to present the image via twig? Because in admin the image is presented correcly and all the ingredients are in the json file. If there is a way, what is the twig code solution? Or should I use folder storage anyway.
The text was updated successfully, but these errors were encountered:
Use object.media[...] or even object.getMediaField('fieldname')[...], both should work. With the second approach, you can even loop through the images.
That said, I'm currently working on making it even easier to work with the relationships, but that code hasn't been committed yet.
I read in the description that it is only possible to present an uploaded file in flex as it is stored as folder storage.
I made a flex object solution with json storage. It includes an uploaded a file in de json file. The file represents a bookcover of a stored book.
What I noticed is that the uploaded file data is stored in the json file. The actual file is stored in de same folder as the json file. I also noticed that the uploaded file in this solution is presented in the admin of this flex object.
With this solution, I tried to present the collection via twig. All the text fields are presented but not the image.
My question is, even if description says that it not possible, is there a way to present the image via twig? Because in admin the image is presented correcly and all the ingredients are in the json file. If there is a way, what is the twig code solution? Or should I use folder storage anyway.
The text was updated successfully, but these errors were encountered: