Is it possible to apply custom handlebar scripts to *.hbs files in Guide theme? | Community
Skip to main content

Is it possible to apply custom handlebar scripts to *.hbs files in Guide theme?

  • September 6, 2022
  • 4 replies
  • 0 views

Hi,

I'm wondering that Is it possible to apply custom handlebar scripts to *.hbs files in Guide theme.

I guess Zendesk only allows handlebar scripts made by Zendesk. I have declared “test” as custom handlebar scripts as shown below. After that, we tried to publish list_faq.hbs but Zendesk system seems to block publishing during compiling.

Is there any way to use it?

4 replies

  • Author
  • September 13, 2022

Nobody there~~? help me~~


Hi Taeyong,
 
If you're on a plan that has Guide Enterprise, you can add custom .hbs templates for use as an alternative template on a category, section or article page.  Was there a screenshot demonstrating your test that you meant to include?

  • Author
  • September 14, 2022

Our developer inserted the custom handlebar script onto section pages. hbs. Is that available? Please have a look at the image below :)


  • Author
  • September 14, 2022

In addition to the above message, our development team has asked if is it possible to update values in handlebar(helper) that Zendesk provides. 

For example, {{article}} script gives me article lists when I enter a section page first. After that, I use a button including article search API. Then I hope I want to see new article lists filtered by the article search API.

I thought the article search API could replace values of {{article}}. However, Zendesk seems to not support that scenario. I think Zendesk doesn't allow using a custom handlebar. Am I correct? Please let me know If you need a more detailed explanation.