Hey,
we have a lot of multilingual websites running.
When translations needs to be happen 1 on 1, we place the different language fields in the same channel. eg activity_channel
We use in the publish tab Title as the default language and add other fields.
So in the template we have the following tags
{title} (= default language)
{activity_title_fr}
{activity_title_de}
{activity_title_en}
In the template we need to check for the default language and output {title} otherwise it’s {activity_title_{segment_1}}
But I’d like to have just {title} and based on the segment in the uri, the correct value will be set.
And also do the same for category_title.
I tried already with a plugin, but there I can only output the tags and not the values, due parsing order, or am I missing something?
Do I need to look into hooks? Anyone other insights? More than welcome!
kind regards,
Vic