widget language condition Body HTML

Jeff W NZAO B
Mega Guru

Hi!

Can someone please help me

 

I wanted to set a langage condition adapted to the langage session user the fr or en document that I want to display

 

Here you have a model of the code

 

<div>
  <font color="#808080">{{data.message}}</font><br>
  <ul>
    <li><a target="blank" href="{{data.url}}">{{data.label}}</a></li>
    <li><a target="blank" href="{{data.url1}}">{{data.label1}}</a></li> 
  </ul>
  <font color="#808080">{{data.message1}}</font>
  {{if languageCode === 'fr'}}
    <a target="blank" href="{{data.url2}}">{{data.label2}}</a>
  {{/if}}
  {{if languageCode === 'en'}}
    <a target="blank" href="/sys_attachment.do?sys_id=eea47d928741f110b00920aabbbb356f">{{data.label2}}</a>
  {{/if}}
</div>

here is the return i got : 

JeffWNZAOB_0-1694002062878.png

 

Thanks for your feedbacks

 

0 REPLIES 0