- Issue created by @Kristen Pol
- First commit to issue fork.
- πΊπΈUnited States Kristen Pol Santa Cruz, CA, USA
Jacob and I got this working yesterday by:
Add to yaml:
image: $ref: json-schema-definitions://experience_builder.module/image type: object title: Image examples: - src: https://placehold.co/600x400.png alt: 'placeholder' width: 600 height: 400
Update twig to use
image.src
instead ofimage.url
to match XB schema:{% block image %} {% if image is not empty %} <div class="ct-campaign__image"> {% include '@atoms/image/image.twig' with { theme: theme, url: image.src, alt: image.alt, } only %} </div> {% endif %} {% endblock %}
but found this bug:
π Redux support for ImageWidget: `[image] String value found, but an object is required` Postponed
which the XB team are trying to fix now.
So... in the meantime, we can put the image code in how we want it. Then, when we test the props, we have to comment it out to test.
- Issue was unassigned.
- Status changed to Fixed
4 months ago 7:25pm 8 September 2024 - πΊπΈUnited States Kristen Pol Santa Cruz, CA, USA
Done and merged. Thanks!
Automatically closed - issue fixed for 2 weeks with no activity.