solved Changing links for different languages

mountaintop
@mountaintop
8 years ago
76 posts
I'm trying to include a if statement in the footer to change the the link from the english version to the Terms to the German or any other language version.

what field is used to set the current language of a Template (nova)

my idea was to use if lang == German

link to german Terms

else

link to english terms
/if
does not work any suggestions?

thanks


--
jesan
FRC All Music

updated by @mountaintop: 01/09/17 07:35:27PM
douglas
@douglas
8 years ago
2,790 posts
If your wanting to change the link according to the users language setting who is viewing the page... you could try something like this...

{if isset($_user.user_language) && $_user.user_language == 'de-DE'}
<a href="#">German Link Here</a>
{else}
<a href="#">Default Language Link Here</a>
{/if}

Hope this helps!


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
mountaintop
@mountaintop
8 years ago
76 posts
Thank you all works


--
jesan
FRC All Music