Not a developer? Go to


Updating Your Site Javascript

All community features rely on the same set of core javascript functions, placed in an aptly named “JavaScript” template. Typically most users want to include the javascript produced by this template on their web site as it is essential to allowing users to comment and participate in community activities. If you do not have this template installed, you will want to install it manually. Here is how you install it:

  1. Navigate to Templates from the Design menu.
  2. Click “Create Index Template.”
  3. Enter in “JavaScript” as the template name.
  4. Paste the JavaScript template’s source code into the template body.
  5. Set the output file name to mt.js.
  6. Save and publish.

Once the template has been published you will want to insert the following template code somewhere in the HTML <head> of your site:

<script type="text/javascript" src="<$mt:Link template="JavaScript"$>"></script>

1 Comment

Sean Williford

Sean Williford on August 15, 2008, 4:59 p.m. 返信

Note that the linked source code for the JavaScript template wraps strings in translation tags, which are normally processed out when the template is localized at blog creation time.