Changing your Help Center design based on your end-user's language (Guide Professional and Enterprise)

Return to top
Have more questions? Submit a request

42 Comments

  • Michele Italo D'Amato

    @Trapta Thanks it worked.

    -1
  • Anton Van der meyden

    Hello @Jacob J Christensen 

    On this comment that you left I cannot get it to work. Can you please help me out?

    Your placeholder in Zendesk support:

    {{dc.placeholder}}

    Your placeholder should look like this in the html templates:

    {{dc 'placeholder'}}

    Hope that helps you out!

     

    Here is the code I'm using:

    if(ticketForm == 360001513253) {
    $('.form-field.request_subject').hide(); 
    $('.form-field.request_description').hide(); 
    $('#request_subject').val('Your Deactivation Request Has Been Recieved'); 
    $('#request_description').val('{{dc'autosolve_pending_ticket-15_day_reminder-project_boost'}}');

    I have hidden the description field and subject field. I would like the dynamic content to pick up the requester language and display the content in the dynamic content to them.

    I'm doing this in the template called script.js

    Do you know what I'm missing?

     

     

     

    0
  • Trapta
    Community Moderator

    Hi @Anton Van der meyden,

    This will not work in script.js file. You need to put the code at the bottom of new_request_page.hbs template under <script></script> element.

    Let me know if this solves your issue.

    Thanks

    1
  • Anton Van der meyden

    Hello@Trapta,

    Thank you for your help.

    I tried my code on the template new_request_page.hbs

    Here is the code I added to the bottom of the template.

    <script>
    $(document).ready(function(){

    var ticketForm = location.search.split('ticket_form_id=')[1];

    if(ticketForm == 360001513253) {
    $('.form-field.request_subject').hide(); 
    $('.form-field.request_description').hide(); 
    $('#request_subject').val('Hello'); 
    $('#request_description').val('{{dc'autosolve_pending_ticket-15_day_reminder-project_boost'}}');

    }

    });

    </script>

    It gives the error the subject field and description field cannot be blank.

    Can you assist further with this please?

    Thank you.

     

     

     

    0
  • Anton Van der meyden

    Hello @Trapta,

    I got it to work. There was an issue with the DC.

    Thank you for your help.

     

    0
  • David A

    This is helpful. It would be great to be able to use dynamic content within a help center article. 

    Use Case: Mainly for screenshots that we embed in our help Centers. Recently we redesigned our User Interface so we had to go through our entire help center replacing and screenshots of our old interface, with the equivalent screenshot from our new interface. Many screenshots show up in more that one article, so dynamic content would reduce the amount of content we have to update and give us visibility into all the screenshots that are being used in our help center

    0
  • Adrien LE ROY

    Hi,

    Is it possible to use the same logic for images and if so, how ?

    I have some images in the templates of my different pages (see screenshot) and I would like to be able to change this image depending on the language of the Guide. If possible I would also like to be able not to display an image for a specific language.

    Thanks !

    0
  • Brett Bowser
    Zendesk Community Team

    Hey Adrien,

    I wasn't able to find any tips specific to your use-case, however, it does look like one of our Community Moderators submitted a tip onHow to change the banner image of your Zendesk Help Center for each language. Perhaps this will point you in the right direction?

    Hopefully others can jump in and offer up some advice as well.

    Cheers!

    0
  • Peter Coleman

    Hey there,

    I also have a use case for loading Dynamic Content into Guide Articles.

    We have many articles which refer to a particular product version, so every time we release a new version of the product, we have to update each of these articles. This was fine when we only had tens of articles, however we are now in the hundreds, so updating all of these articles every release is proving ever more time consuming. Having a Dynamic Content variable called productVersion in our articles would be very useful, so we just change the Dynamic Content in one place, then all of our articles would be automatically updated.

     

    As noted in other threads, using {{dc 'productVersion'}} or {{dc.productVersion}} in the content of an article don't seem to work. Is there any other simple way to do this?

    Cheers

    2
  • Andrea Rodriguez

    I second what Peter said. Due to COVID, we've had to update our process timeline and that specific timeline is scattered across multiple articles. I just figured out I can add the placeholder in our macros which is great, but I was hoping we could do that with our articles too but it doesn't seem to work. 

    0
  • Carsten Falborg
    Community Moderator

    Hi Andrea

    It is not possible to use DC in articles, unfortunately. The only current solution I see is to create your own javascript that changes/replace text on page load. That of course has it's weaknesses (malfunction, browser incompatibility etc).

    0
  • Carsten Falborg
    Community Moderator

    Hi Peter and Andrea

    I just stumbled on this one: https://www.zendesk.com/whats-new/ Look under guide for the EAP for content blocks which is exactly what you are looking for :-)

    0

Please sign in to leave a comment.

Powered by Zendesk