0
Answered
Block Custom Property Type Image - How to get the image/URL?
When making a custom block and creating custom properties via Customizations, there is an "image" type, where you can upload an image (pretty cool!). Though, there seems to be no way to pull the image URL, and I've seen no examples in the docs or Core block code, etc.
I've already tried:
this.block.custom.test_image_type;
and
this.block.custom.test_image_type.url;
and they don't appear to work. Any ideas?
I've already tried:
this.block.custom.test_image_type;
and
this.block.custom.test_image_type.url;
and they don't appear to work. Any ideas?
Answer
+1
Answer
Answered
Hi there!
You will see a lot more of this in our new templates which are due out next year.
But, the way to access this image is:
[% this.block.custom.image.resource_url %]
(Where "image" is the name of the property.)
You will see a lot more of this in our new templates which are due out next year.
But, the way to access this image is:
[% this.block.custom.image.resource_url %]
(Where "image" is the name of the property.)
Customer support service by UserEcho
You will see a lot more of this in our new templates which are due out next year.
But, the way to access this image is:
[% this.block.custom.image.resource_url %]
(Where "image" is the name of the property.)