If you need to support a multi-lingual Portal, you can't use the simple welcome message box in the portal editor.
3. Edit the code appropriately and click 'Save'.
Here is an example of the code you could use within this template:
<div class="wrapper">
<div class="column-full">
<div class="welcome-block-wrapper">
<div class="welcome-block-second-border">
<div class="welcome-block">
{% if app.user.language.sys_name == 'default' %} <h1>My Default Title</h1>
<p>My Default Content</p> {% elseif app.user.language.sys_name == 'swedish' %} swedish content {% elseif app.user.language.sys_name == 'german' %} <h1>My German Title</h1>
<p>My German Content</p> {%endif%}
</div>
</div>
</div>
</div>
</div>
The section highlighted in bold is what controls the content based on the different languages you define.
This is how that would look in the template editor:
Remember that any languages you want to define here should also be installed as a helpdesk language in Admin > Setup > Languages, so it is selectable for your users on the portal.
4. Click 'Preview Changes' to test how that will appear on your portal within the editor, then 'Save Changes' when you are ready to make that change live on your portal.
Default language view:
German Language View:
添加一条评论
请登录或注册以提交评论。