Recherches récentes
Pas de recherche récente

Scott Allison
Adhésion le 28 mai 2021
·
Dernière activité le 27 oct. 2021
Suivis
0
Abonnés
0
Activité totale
2
Votes
0
Abonnement
1
APERÇU DES ACTIVITÉS
BADGES
ARTICLES
PUBLICATIONS
COMMENTAIRES DE LA COMMUNAUTÉ
COMMENTAIRES SUR L’ARTICLE
APERÇU DES ACTIVITÉS
Dernière activité effectuée par Scott Allison
Scott Allison a ajouté un commentaire,
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);
}
});
Afficher le commentaire · Publication le 21 sept. 2018 · Scott Allison
0
Abonnés
0
Votes
0
Commentaire