These are chat archives for locomotivecms/v3

14th
Nov 2016
Matthieu Barthel
@MatthieuBarthel
Nov 14 2016 08:41

Hello,

I have an issue with editable_file when there isn't a file, here is my code :

{% capture url %}{% editable_file 'Photo 1', resize: '1200x>' %}{% endeditable_file %}{% endcapture %}

In development url is an empty string, on the engine it contains a broken url like https://d32a2a5ruz34pw.cloudfront.net/steam/dynamic/W1siZnUiLCJodHRwczovL2QzMmEyYTVydXozNHB3LmNsb3VkZnJvbnQubmV0PzE0NzkxMTI2NTIiXSxbInAiLCJ0aHVtYiIsIjEyMDB4XHUwMDNlIl1d/8b28b10bca507507?editable-path=main--Photo 1

I am using wagon 2.1.1 and engine 3.1.1.

Is there a better way to check if the file exists or is it a bug ? Thank you for your help :-)

Matthieu Barthel
@MatthieuBarthel
Nov 14 2016 11:45
I finally resolve my issue by testing my field this way:
page.editable_elements.main.photo_1