Placeholders within Dynamic Content | Community
Skip to main content

Placeholders within Dynamic Content

  • July 10, 2017
  • 3 replies
  • 0 views

Hi there,

I'm using Dynamic Content in order to support multi-language headers and footers within our template. When adding text to the Dynamic Content field, it says that placeholders can be used, but it doesn't look like they are rendering correctly.

For example, the "Help Center" link text renders fine as part of the template, but it does not render in the Dynamic Content; i just spits out the text as is: {{#link 'help_center'}}{{help_center.name}}{{/link}}.

How do I make it so that the placeholder renders correctly in Dynamic Content?

Thx.

This topic has been closed for replies.

3 replies

Trapta
  • July 11, 2017

Hi @Nickie,

You don't have to add any dynamic content for Zendesk Helpers as all the helpers support multi-language. All you have to take care about is adding their localized text in their respective settings.

Let's take your example of {{#link 'help_center'}}{{help_center.name}}{{/link}} : In this case, all you need to do is, add localized text for you help_center name in each language you support for your HC under the general settings area. See the steps below -


Let me know if you face any issue.

Cheers,

Team Diziana


  • Author
  • July 11, 2017

@Trapta thx for the explanation, but I used a bad example. I don't actually want to use the "help center" link, it was just an example... And I understand certain helpers will automatically translate. However, putting aside *which* helper I'm wanting to use, I want to know how to implement ANY placeholder at all in the dynamic content. For example, I cannot put the "Submit a request" link into the header or footer where I want it -- {{link 'new_request' class='submit-a-request'}}.

Additionally, I understand that I can leave it in the template files, but I have reasons to include them in the dynamic content areas, in order to keep continuity. It also states, under the Dynamic Content text field: "You can also use placeholders in your text." But that doesn't seem to be the case. Unless I'm missing something, like if the formatting has to be different.


Trapta
  • July 12, 2017

@Nickie,

In that case, you need to add HTML of helpers and then replace the HC helper with dynamic_content. Find the steps below -


In your template, replace

with 

and you are done.

Let me know this if this resolves your query.

 

Team

Diziana