image for site

Technical Notes on Using Curlybars in Zendesk

Learn about the technical aspects of using Curlybars in Zendesk Help Center, including the use of the `{{#each}}` helper for content control.

What are some technical notes about using Curlybars in Zendesk Help Center?

When using Curlybars in Zendesk Help Center, it's important to understand the role of the{{#each}}helper. This helper iterates through arrays of specific items, such as categories or articles, and is native to handlebars.js. By using this helper, you can control which items are rendered based on their IDs.

For example, if you want to skip rendering an article with a specific ID, you can use the{{#each section.articles}}loop and include a conditional statement to skip the article with the ID you want to hide. This approach allows for precise control over what content is displayed on your Help Center pages. For more information, refer to theoriginal Zendesk article.


More related questions

How can I hide specific components in Zendesk Help Center using Curlybars?

You can hide specific components in Zendesk Help Center by using Curlybars, a templating language that allows for conditional statements. This enables you to dynamically control the rendering of your Help Center pages. By targeting the unique ID of…

How do I hide multiple items in Zendesk Help Center using Curlybars?

To hide multiple items in Zendesk Help Center, you need to nest conditional statements in your Curlybars code. This is because you cannot pass multiple ID numbers into a single conditional statement. By nesting these statements, you can effectively…

Can I hide articles in Zendesk Help Center but keep them accessible via search?

Yes, you can hide articles in Zendesk Help Center while keeping them accessible via search or direct links. This is done by using Curlybars to conditionally hide the article from the main navigation or section listings. However, the article will…

How can I hide a specific paragraph in an article for certain users in Zendesk?

While Zendesk does not natively support hiding specific paragraphs within an article based on user roles, you can achieve this using JavaScript. By targeting the paragraph with a specific class or ID, you can use JavaScript to check the user's role…

Interested indeflectingover 70% of your Zendesk support tickets?

Our AI customer support agent is here to help. Trained on all your help docs, installed directly into your Zendesk account, it can be used to automate customer replies for tickets or live chat. Learn more below.
Zendesk logo

Zendesk Support Tickets

Receive new tickets by email or a support form? This integration is for you.
My AskAI integrated within Zendesk to deflect support tickets
Learn about our Zendesk ticket integration
Zendesk logo

Zendesk Messaging (live chat)

Using Zendesk's Messaging widget on your site for live chat? This integration is for you.
My AskAI integrated within Zendesk to deflect customer support live chat conversations
Learn about our Zendesk Messaging integration

Join1,000+ companies reducing their support costs and freeing up support agents for more important work

Vestd company logo — Customer of My AskAI's AI customer support agents
Genesis company logo — Customer of My AskAI's AI customer support agents
Zinc company logo — Customer of My AskAI's AI customer support agents
Customer.io company logo — Customer of My AskAI's AI customer support agents
Zeffy company logo — Customer of My AskAI's AI customer support agents
NHS company logo — Customer of My AskAI's AI customer support agents
Kontakt.io company logo — Customer of My AskAI's AI customer support agents

Reduce support costs.Spend more time on customer success.

Our AI customer support agents are already used by 👇
Companies using AI assistants on their websites