Skip to end of metadata
Go to start of metadata

We're looking at integrating a "Yammer" button into our ThemeBuilder themed Wiki to allow users to Yammer a page/post etc.

The button works by making a call to a Javascript function when pressed. I can put the JavaScript into the custom JS tab, but how would it be called from within the theme?

Currently the menu content looks like this:


I can't see how external JS/HTML can be called from here?

  • No labels


  1. Your best bet is to create a user macro which outputs the link ... calling javascript from wiki-markup is generally avoided as it can open up exploit holes.

  2. Like this idea, going to have a play (smile)

  3. You'd need to find a CSS selector that uniquely finds your menu item, then bind the click event to that using jQuery:

    jQuery(function($) {
      $('your-css-selector-here').bind('click', function(event) {
        ... do your stuff here ...
  4. Unknown User (

    Thanks very much guys, I will try this out.