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:
- Navigate to Templates from the Design menu.
- Click “Create Index Template.”
- Enter in “JavaScript” as the template name.
- Paste the JavaScript template’s source code into the template body.
- Set the output file name to
mt.js
. - 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>
Sean Williford on August 15, 2008, 4:59 p.m. Reply
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.