最近搜索


没有最近搜索

Displaying promoted articles from a particular section on the Help Center home page

已回答


已于 2015年10月28日 发布

Hi Everyone,

We're currently building out our help center which is a really exciting time for us.

One thing we're looking to do is something similar to Zendesk have on the home page of their own help center. We want to include a "Troubleshooting" section, visible on the home page, which displays a list of all promoted articles from that very specific section, within a category.

I'm having a real hard time figuring out how to do this, although I'm sure it must be possible. I tried this code: 

{{#is section.id '201697321'}}
{{#each article.promoted}}
<li><a href="{{article.url}}">{{article.title}}</a></li>
{{/each}}
{{/is}}

Only to be given a "invalid reference: {{article.promoted}} at line 14" error message.

I'm very new to working with Handlebars, and the Zendesk help center in general, so I really hope this is something small and me just being a newbie, but does anybody have any suggestions on how I can achieve this?

Thanks,

Paul.


0

31

31 条评论

image avatar

Brett Bowser

Zendesk Community Manager

Hey Bonne,

This could be an issue with the theme your using. You may want to reach out to the developers of that theme on the Github page to see if they can point you in the right direction. I'd be curious to know if the code you're trying to implement would work if you switched back to the default Copenhagen theme. I'll leave this here in case other users are able to provide some additional guidance for you :)

Cheers!

0


帖子评论已关闭。

找不到所需的内容?

新建帖子