0

I can't read tag title in scriban in sitecore while I can reach out the path and the display name correctly

the code I use to read title:

indTags = i_item.ProductIndustryTags.targets
 {{- for ind in  indTags -}}
    <li>
      <a class="esds-cards__source">{{ind.title}}</a>
    </li>
    {{- end -}}

1 Answer 1

0

Try this,

{{ind.Title}}

or

{{ind['Title']}}
3
  • didn't work , but there's a small hint i noticed when make the field of Title on tag template is shared , the title display correctly , i have no idea why Jul 21, 2023 at 0:30
  • Oh, can you check your language version is published? Jul 21, 2023 at 6:27
  • Yes it's published , but the issue also occurs on CM not CD only Jul 21, 2023 at 21:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.