Hi,
I have done this in the past with a bit of jQuery. This basically grabs each h2 element with a moduletitle class and then lists those elements in an unordered list above your content.
<style type="text/css">
#toc .ModuleEditLink{visibility: hidden; display: none;}</style>
<script type="text/javascript">
$(document).ready(function() {
var items = "<ul>";
$("h2.moduletitle").each(function(i) {
var current = $(this);
current.attr("id", "title" + i);
items += "<li><a id='link" + i + "' href='#title" + i + "' title='" + current.attr("tagName") + "'>" + current.html() + "</a></li>";
});
items += "</ul>";
$("#toc").append(items);
});
</script><p id="toc">
On this page:</p>
Hope this helps,
Joe D.