最近搜索
没有最近搜索

Scott Allison
已加入2021年5月28日
·
最后活动2021年10月27日
关注
0
关注者
0
活动总数
2
投票
0
订阅
1
活动概览
标记
文章
帖子
社区评论
文章评论
活动概览
的最新活动 Scott Allison
Scott Allison 进行了评论,
Here's some JavaScript that I placed in my script.js file. I added an empty <ul id="support_categories"></ul> element into header.hbs where I wanted my categories menu to be located. Just replace "mysupportwebsite.com" with the domain name of your Zendesk help center.
var menu = '';
$.get('https://mysupportwebsite.com/api/v2/help_center/' + window.I18n.locale + '/categories.json', function(data) {
if (data.categories.length) {
$.each(data.categories, function(id, category) {
menu = menu + '<li><a href="' + category.html_url + '">' + category.name + '</a></li>';
});
$('#support_categories').html(menu);
}
});
查看评论 · 已于 2018年9月21日 发布 · Scott Allison
0
关注者
0
投票
0
评论