Skip to main content
edited tags
Link
Mark Cassidy
  • 25.4k
  • 7
  • 59
  • 117
Bumped by Community user
Source Link
Christophe
  • 177
  • 1
  • 7

Image in rendering parameters to display background picture

Here is what I'm trying to achieve :

  • I have a component that has a parameter backgroundImage. This parameter was previously a field and I achieved what I wanted without any problem but in order to avoid saving an Item for my structure component I'd like to use a rendering parameter instead.
  • I can get the params and see what I get for everything except my image. When I display what is in my backgroundImage parameter a string is returned containing this : <image mediaid="{1551EAFF-E652-5213-BB93-5CB00B4EBC26}" />
  • Now what may I do with this string ? I use jss and sitecore 9.1.1