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 ?

Accepted answer


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):


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

//code display.template


  <h1>test image section</h1>

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

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


Howdy, Stranger!

Log In

To view full details, sign in.


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