Hi, I’m doing a bilingual site where Japanese is the default language and the other language is English.
This is a sample of code I’m using. Works well but if the English fields are empty no content shows - I would like the default language to show.
<h3>{if lg_lang == "ja"}{artist_name}{if:else}{artist_name_{lg_lang}}{/if}</h3>
{if lg_lang == "ja"}{artist_bio} {if:else} {artist_bio_{lg_lang}} {/if}Wondering if someone could help me this?
Thanks
Thanks for replying Brendon. Yes, I have the default set to “ja” but that doesn’t seem to work…
This seems to work but not sure if it’s the best way of doing it?
{if lg_lang == "ja"}{my_custom_field}{if:else}{if my_custom_field_{lg_lang} != ''} {my_custom_field_{lg_lang}} {/if} {if my_custom_field_{lg_lang} == ''}Sorry, no content{/if}{/if}Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.