Suite | Growth, Professional, Enterprise, or Enterprise Plus |
Support with | Guide, any plan |
注意:非 Suite 服务模式的客户必须拥有带 Guide 服务模式的 Support Professional 或 Enterprise 才能使用该功能。
如果您支持多种语言,则可以使用动态内容创建您自己的翻译,并使用占位符在宏、触发器和其他自行程序中引用它们。此外,动态内容支持 HTML 代码。例如,您可以创建一个动态内容项目,以根据客户的语言动态更改帮助中心的设计。假设您的公司以法语和英语市场为目标。因此,您希望帮助中心上有不同的页脚,以便根据客户的语言提供相应的联系信息。或者,为了提供更好的客户体验,您可能希望仅向法语客户显示法语支持号码。在本文中,您将了解如何设置此项。
本文章涵盖以下主题:
注意:虽然帮助中心的动态内容支持 HTML,但宏、触发器、自行程序、专员签名或工单字段和表格的动态内容不支持 HTML。动态内容只能在帮助中心模板中使用,在 Javascript 中使用不会呈现。
创建新的动态内容项目
您必须是 Zendesk Support 管理员才能创建动态内容。本例中,您将创建一个带有法语变体的动态内容项目,并添加要向法语客户显示的页脚的 HTML 代码。动态内容允许您选择默认语言。如果您没有页脚翻译针对的语言,最好将客户选择的语言翻译为英语。
- 在管理中心,单击侧栏中的工作区 (
),然后选择专员工具 > 动态内容。
- 单击添加项目。
- 选择一个名称,例如页脚或 HC_footer,以便以后轻松找到帮助中心相关的动态内容。
- 选择默认语言,例如英语。
- 将您要向英语客户显示的 HTML 代码粘贴在内容框中。
- 单击创建以保存您的动态内容项目。
- 请注意花括号中的项目名称。稍后您会用到它。
- 现在添加一个或多个其他翻译。为此,单击添加变体,然后再次执行步骤 3-6。
您的动态内容准备就绪。现在,您可以将其添加到帮助中心。
修改帮助中心主题
- 在知识管理中,单击侧栏中的自定义设计 (
)。
- 单击您要编辑的主题以将其打开。
- 单击选项菜单,然后选择编辑代码。
- 此示例修改了页脚,因此请打开页脚模板。
- 使用以下语法插入上面创建的动态内容项目:{{dc ' item_name '}}。
- 单击保存后,您将可以看到新添加的页脚。
- 单击发布更改。
现在,帮助中心的自定义页脚和文本将以客户在主页上选择的语言显示。
本文章仅介绍了页脚,但您还可以做得更多。根据客户的语言,您可以拥有完全不同的外观和风格。或者您要销售的产品的法语名称和英语名称不同;在这种情况下,您可以使用动态内容,根据客户的语言显示不同的徽标。
34 条评论
Casey Keefe
Hey Everyone! Does anyone know how I would wrap the helper in order to display different information in the footer depending on selected language?
For example, if a user selects English (GB), I would like the address for our UK office to display in the footer, rather than the default US. At this time I am able to get the UK address to appear, but the US address is there as well.
Any help is appreciated. Thank you!
0
John Smith
Hello, guys!






I have a problem.
I created the test DC but it doesn't work for German. Could you please help me? Thank you.
2
Niclas gmail
Hello. It seems using assets is not supported in Dynamic content?
Firefox says "Can't load image" and Chrome says:
instead of something like this:
The same code works if used directly in the .hbs:
One more thing, could you please add "HTML" to the Placeholder on the setup of DC, much like in the HC - Asset properties?
0
Christine
It is not currently possible to customize the system error text on ticket forms/fields.
I have found a similar community post here. If you have some time, I recommend that you upvote this post and leave a comment on the thread with your use case. Our Product Managers actively monitor our feedback threads, and conversations with high user engagement ultimately get flagged by the team for roadmap planning.
Thank you!
0
Luca Baldini
Ehy Vlad! Do you know how I can change the text of the mandatory field error notification?
0
Marvin Toussaint
Is dynamic content only used to display based on the language chosen? What if I wanted to use it to render things with an event listener could I do that?
0
Vlad
Hey Hava, You should use the Dynamic content option.
Then your JS code will look like this:
Also, check this article too.
0
Hava
Hi,
I want to change the "Your email address" text description on "Submit a request" and found this code:
<script>
$('.form-field.string.required.request_anonymous_requester_email label').text('Your email-address here');
</script>
But if I want it to be dynamic, and change based on the language chosen on the page - what do I add and where?
0
Jeff C
Hi Kristin,
The locale is based on the browser language the end user has. If that locale is not a language that you have for Guide, then the fallback language will be the default language in your Guide settings.
0
Kristin Bouveng
When a user is in the Knowledge Center, does it automatically serve the language based on their user's default language? Or will it only change if they choose a different language from the dropdown?
0
登录再写评论。