Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

I have to display custom widget setting image mediatype in storefront using knockout binding ?

Summary:

I have created custom widget in that i have taken one title text and info text and one image of mediatype to display on storefront but text and title are displayed using their id but image is not displaying i dont know how to display it through mediatype id or not

Content (required):


Version (include the version you are using, if applicable):

22c

Code Snippet (add any code snippets that support your topic, if applicable):

//code display.template

<div>

  <h1>test image section</h1>

  <img data-bind="attr: { src: 'firstslideimage', alt: firstslideTitle }">

  <img data-bind="attr: { src: 'Thirdslideimage', alt: firstslideTitle }">

</div>

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!