Change your Help Center design using Dynamic Content (Guide Professional)

Have more questions? Submit a request

22 Comments

  • Andreas Schuster

    Is it possible to use dynamic content in an help center article as well?
    For example localized URLs?

    0
  • DeShawn Witter

    @Andreas

    Dynamic Content placeholders will not work in articles, unfortunately. As a workaround, you can remove the language identifier from the URL (en-us, for example) and it should display in the language chosen by the end-user. I hope this helps answer your question!

    0
  • Eva Wilhelmsson

    Hi, 

    I get an error messade that it's not possible to save because of the unvalid reference on row 3 (my {{dc.welcome}} ). I creates one dc in swedish and one in english, can that be the problem? 

    0
  • Jessie - Community Manager

    Hi Eva!

    Did you create two separate dynamic content items, or one dynamic content item with two variants? I think that if you have two different DC items with no variants the placeholders won't work.

    0
  • Mario Valdes

    Hi @Eva I was having the same problem, in order to fix it you should call your dynamic content as follows:

    {{dc 'welcome'}}

    That is, replace the . for a space and use sigle quotes around your dynamic contente title.

    Hope this helps, cheers.

    0
  • Anil Kumar (Community Member)

    Hello,

    Can we use dynamic content in JS file?

    Thanks

    0
  • EJ Hernandez

    Hi Anil,

    I'm afraid that it is not possible to use dynamic content in a JS file.

    As a workaround, what you can do is to create a hidden input field and within that place the dynamic content as its value. Make sure to create an ID for that so that you may use that as a reference in your JS file. I hope that helps.

    1
  • Jacob J Christensen

    This is awesome! Thanks Arnaud!

    2
  • Vladan Jovic

    The only way to use DC in JS is if we put JS code into HTML script tag on any of pages (or header/footer). 
    The same thing is about using DC into CSS (putting CSS in HTML with style tag). eg:

    <style>
    h1.welcome-note {
    color: {{dc "color_font"}};
    }
    </style>
    0
  • Jake Cahill

    Hi Vladan,

    Does this mean that if you use dynamic content in JavaScript in a <script> tag, you could use JS to replace content in your article with dynamic content when it's published?

     

    For example, you could write something like this in the WYSIWYG editor:

    "Use {{menu}} to delete a comment".

    Then use JS in the template to replace {{menu}} with some dynamic content?

    0
  • Vladan Jovic

    Hey Jake, unfortunately, it will not work on that way, cause you can't use DC as article content (in the WYSIWYG editor). We can put DC in article HTML template but in that case, DC item will be visible to any of articles.

    0
  • Karsten Jensen

    Hi,

    How can I add dynamic content to the Help Center search Helper: {{search submit=true instant=true class='search search-full' placeholder='{{dc 'hc-home_page_heading_search'}}'}}

    I want my dynamic content inside the placeholder tag.

    1
  • Jessie - Community Manager

    Hey Karsten! I see that Trapta was able to help you with this over here. Let us know if you need anything else!

    0
  • Paul

    got some weird thing. Created an dynamic content which is active. I copied the placeholder name + pasted it inside the template code. But when i try to save i get: not possible to access `dc` in `dc.helpdesk_submit_request_button`

    More people have this? or some info why dc can't be accessed?

    0
  • Jacob J Christensen

    Hi Paul,

    There's a notation difference in how the placeholder is used, maybe that's what is causing your error?

    Your placeholder in Zendesk support:

    {{dc.placeholder}}

    Your placeholder should look like this in the html templates:

    {{dc 'placeholder'}}

    Hope that helps you out!

    1
  • Paul

    Thanks. that works :) i copied the placeholder name from the zendesk page. Forgot the ' ' :)

    1
  • Jennifer Robichaux

    This is fascinating. Does this work, even if English is the only language used for creating the dynamic content? And are there specific pages where this can be inserted into the Guide templates?

    I've tried creating a dynamic content in a single language and add it into the article template. However, it's not displaying. Near as I can tell, I'm using the correct format as well (ie {{dc 'help'}}.

    0
  • Jacob J Christensen

    Hi Jennifer,

    This is a pretty great tool for customizing help centers. As far as I know it should work in any of the html templates. We use it to embed contact info, opening hours etc. in the HC Home Page below the navigation.

    Your notation looks good.
    It might be worth testing if the DC content is the problem - try a simple text string "test" (no html), or if that isn't the issue, maybe try inserting the DC placeholder in another place, another template or different positioning.

    0
  • Jennifer Robichaux

    Thanks for the suggestions Jacob! I couldn't make this work with the "preview" function. However, once I published the changes, I could see it. Seems that the only thing blocking it from working before was preview vs publish.

    1
  • Jacob J Christensen

    Ah of course, I've noticed that from time to time also...preview doesn't always preview your changes, very frustrating. Glad you got it worked out!

    0
  • Jennifer Robichaux

    While I've got this figured out, is there any way to extend this idea?

    For instance, I'd love to have variables that I can insert into the article body itself. This would allow us to feature specific tips/ideas that come up in a lot of our content in a way that is much easier to update. So, rather than update 100 articles (out of 2000), we could update the dynamic content, which would be reflected in the specific articles that contained the variable.

    I'd love to know if anyone has been successful with this or any other dynamic content use cases in Guide. Thanks!

    0
  • Jacob J Christensen

    Hi Jennifer,

    You may find this Q & A helpful for that. 

    Btw: I was told by Zendesk Support, that the preview button only previews saved changes to the templates. If like me you fearlessly edit live themes, the preview button won't let you preview unpublished edits - which is confusing.

    0

Please sign in to leave a comment.

Powered by Zendesk