Hey guys. I see I can set the src of an image with 'https://' or 'image://' where the later would be an image from the media manager. So in my media manger, within the folder 'trails' I have an image '002.jpeg'. It is visible in 'site media', where this wasn't the case if it was 'jpg'. Now I want to set the image source through the api.
If I set it with '$w("#img").src = "https://....."' the image displays. Now this is nice, but means I have extra actions to take to get that url. I would like to use the method '$w("#img").src = "image://trails/002.jpeg" but for some reason that results in the error:
Wix code SDK error: The "src" property cannot be set to "image://trails/002.jpeg". It must be a valid URL starting with "http://", "https://", or "image://".
What is the correct syntax to set it?
In addtion, when you add an 'image' to the database, are you storing then link in the database or the image itself, for then my answer is solved for I'm going to link it to database data