最近の検索
最近の検索はありません

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
コメント