Forums/Community/Community tips & tricks

Show latest forum posts on your own website (Web portal)

Vincent Brendel
posted this on November 18, 2011 20:51

Here's how to quickly create a HTML snippet for your own website which shows the top entries from one of your Zendesk forums. You can use this for example to show your latest product updates on your homepage.
The widget code uses jQuery (and no server side code). An example page is attached which shows the latest posts on Zendesk Support's announcement forum.
Your site must use jQuery! To include the html on your website, put <div id="announcements"></div> where you want the widget to go, and customize these variables in the JavaScript code to the values you like:

  var zendesk_url = 'https://support.zendesk.com';
  var forum_id = 1;
  var max_number_of_items = 4;

forum_id can be obtained from the URL of the forum.

 

 

Comments

User photo
Skip Moore
Zendesk

I have posted the code in a gist with a little bit better truncation 

May 08, 2012 15:24