We are building an Article page using HTL components. The content for these pages are being authored in a Content Fragment.
We have a ‘Hero’ component that has a mixture of text and an image.
We want the image to be adaptive using the ‘srcset’ attribute and so after reading the docs for the core Image component we overlayed it.
Sure enough we now have the ability to define the rendition sizes for device widths using Template policies. Good stuff.
Now, unless I’m reading it wrong the logic inside both core Image model v3 and AdaptiveImageServlet specify that if the component is part of a Template's structure (which it is) then it expects to use property “fileReference” from that component in order to reference the image asset.
However, we are building that page using components that are reading from a Content Fragment including which image to display.
Can anyone think of a solution?
Much appreciated.
Rick