I had to find a way to include the recent entries on all pages without the use of SSI nor PHP.. simply because I refuse to give up my extension of .htm .
Well, I found a solution that seems to work great, but it is so easy of a solution that I'm sure there is a draw back I havent thought of yet.
I created a new index page for each category that is actually a javascript. I named the new index page with a .js extension. The javascript looks like this:
CODE
// Processes the recently posted entires. This method is used to dynamically display
// Movabletype recent entries on all pages without the need of server side includes or PHP.
// Category: IN THE NEWS
document.write('<ul>');
<MTEntries category="In the news" lastn="5">
document.write('<li><a href="<$MTEntryPermalink$>"><$MTEntryTitle$></a></li>');
</MTEntries>
document.write('</ul>');
//
// Movabletype recent entries on all pages without the need of server side includes or PHP.
// Category: IN THE NEWS
document.write('<ul>');
<MTEntries category="In the news" lastn="5">
document.write('<li><a href="<$MTEntryPermalink$>"><$MTEntryTitle$></a></li>');
</MTEntries>
document.write('</ul>');
//
Then in my sidebar I included the javascript using simply:
CODE
<script language="JavaScript1.2" src="http://www.generation77.com/inthenews.js" type="text/javascript"></script>
It works fantastic, as long as I keep single quotes and other expressions out of the Entry titles. It seems to work great on all browsers I've tested with.
Is there any drawbacks to this method that I havent thought of?