Insert image in each item of the articles list

Respondida

5 Comentários

  • Rian Dutra

    I just uploaded my custom files, but I couldn't show them on page.

    I tried like this:

    <img src="{{assetURL 'icon-article-01.svg'}}" />

    But I got invalid reference for assetURL.

    0
  • Rian Dutra

    I also tried with CSS, like this:

    background-image: app-asset-url("logo_footer.png");

    As said in the docs, but it did not work.

    0
  • Trapta
    Community Moderator

    Hi @Rian,

    You are looking at wrong documentation. The one you have listed in your comments is for ZD Apps framework.

    Please have look at the documentation for Help Center Templates.

    For asset helper, please have a look at asset helper.

     

    Cheers,

    Team Diziana

    0
  • Rian Dutra

    I tried this but it with CSS didn't work:

    background: url("{{asset 'myimage.png' }}");

    0
  • Trapta
    Community Moderator

    @Rian,

    If you are using it in CSS you have to write full path for the image.

    There is an easy way of doing it, you can add this image in document head template under the style tag using {{asset}} helper.

    Team Diziana

    0

Publicação fechada para comentários.

Powered by Zendesk