The Additional Entry Text of this entry contains the complete contents of my MovableType Main Index Template for this blog. It might be interesting to you if you’re trying to learn how to do something I’ve done here. (Note that it is my ugliest template; I tend to do lots of testing and futzing with this blog, so it gets the most code bloat. The templates for the other six or ten blogs I’m running are much cleaner.) Click “read more” to see.
<html>
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″ />
<meta http-equiv=”Content-type” content=”text/html; charset=iso-8859-1″ />
<link rel=”SHORTCUT ICON” href=”http://www.davidgagne.net/favicon.ico” />
<title><$MTBlogName$></title>
<style type=”text/css” media=”screen”>@import “http://www.davidgagne.net/style/bling_front.css”;</style>
<script type=”text/javascript” src=”http://www.davidgagne.net/script.js”></script>
</head>
<body>
<!–#include virtual=”/head.shtml”–>
<div class=”banner”>
<$MTBlogName$>
<br />
<span class=”description” style=”font-size:12px”><$MTBlogDescription$>
<br />
<script type=”text/javascript”>
<!–
getRandomText();
//–>
</script>
</span>
</div><!–end banner div–>
<div class=”content”>
<MTEntries lastn=”10″>
<MTDateHeader><div class=”date”><$MTEntryDate format=”%A, %B %e, %Y”></div></MTDateHeader>
<div class=”blog”><a name=”<$MTEntryID pad=”1″$>”></a><a title=”Category: <$MTEntryCategory$>” onmouseover=”window.status=’posted <$MTEntryDate format=”%A, %B %d, %Y %H:%M”$> h’; return true;” onmouseout=”window.status=’ ‘; return true;” href=”<$MTEntryLink$>”><img class=”icon” alt=”<$MTEntryCategory$>” src=”http://www.davidgagne.net/images/main_site/x<$MTEntryCategory$>.gif” />
</a><$MTEntryBody$>
<br />
<$MTInclude module=”BlogData”$>
</div><!–end blog div–>
</MTEntries>
</div><!–end content div–>
<div class=”side”>
<!–legend–>
<div align=”center”><blockquote><img src=”http://www.davidgagne.net/images/main_site/ico_cat.gif”
alt=”Serendipity” /> – similar entries<br /><img src=”http://www.davidgagne.net/images/main_site/ico_link.gif”
alt=”PermaLink” /> – link to entry<br /><img src=”http://www.davidgagne.net/images/main_site/ico_comment.gif” alt=”Comment” />
– post a comment<br /><img src=”http://www.davidgagne.net/images/main_site/ico_mail.gif” alt=”eMail this entry” /> – send the entry
<br /><img src=”http://www.davidgagne.net/images/main_site/ico_search.gif” alt=”Google” /> – search Google</blockquote></div>
<!–end legend–>
<br />
<br />
<!–#include virtual=”/good/index.shtml”–><br />
<div class=”quotation”>
<script language=”JavaScript” type=”text/javascript”>
<!–
writeText();
//–>
</script>
</div><!–end quotation div–>
<br />
<!–begin calendar–>
<div align=”center” id=”goodstuff”>
<table border=”0″ cellspacing=”4″ cellpadding=”0″ class=”goodstuff”><tr class=”goodstuff”><td colspan=”7″
align=”center”><$MTDate format=”%B %Y”$></td></tr><tr class=”goodstuff”>
<td align=”center”>S</td>
<td align=”center”>M</td>
<td align=”center”>T</td>
<td align=”center”>W</td>
<td align=”center”>T</td>
<td align=”center”>F</td>
<td align=”center”>S</td>
</tr>
<MTCalendar>
<MTCalendarWeekHeader><tr class=”goodstuff”></MTCalendarWeekHeader>
<td align=”center”><MTCalendarIfEntries><MTEntries lastn=”1″><a href=”<$MTEntryLink$>”>
<$MTCalendarDay$></a>
</MTEntries></MTCalendarIfEntries>
<MTCalendarIfNoEntries><$MTCalendarDay$></MTCalendarIfNoEntries>
<MTCalendarIfBlank></MTCalendarIfBlank></td>
<MTCalendarWeekFooter></tr></MTCalendarWeekFooter></MTCalendar>
</table>
</div><!–end calendar–>
<!–#include virtual=”/changes.shtml”–>
<form method=”post” action=”<$MTCGIPath$>mt-add-notify.cgi”>
<b>Get updates via email:</b><br /><input type=”hidden” name=”blog_id” value=”<$MTBlogID$>” /><input type=”hidden” name=”_redirect” value=”http://www.davidgagne.net/code/” /><input name=”email” size=”18″ /><input type=”submit” value=”Sign Up!” /></form>
<p><a href=”<$MTBlogURL$>/index.xml” target=”_blank” title=”the XML feed for this site” onmouseover=”window.status=’Go XML!’; return true;” onmouseout=”window.status=’ ‘; return true;”>XML Version</a></p>
<div class=”sideheader”>Categories</div><ol class=”sideitems”><MTArchiveList archive_type=”Category”><li><a href=”<$MTArchiveLink$>”><$MTArchiveTitle$></a> (<$MTArchiveCount$>)</li></MTArchiveList></ol>
<div class=”sideheader”>Recent Conversation:</div><ol class=”sideitems”><MTEntries recently_commented_on=”5″><li><a title=”Category: <$MTEntryCategory$>” onmouseover=”window.status='<$MTEntryDate format=”%B %e, %Y”$>’; return true;” onmouseout=”window.status=’ ‘; return true;” href=”<$MTEntryLink$>”><MTEntryTitle></a> – (<$MTEntryCommentCount$>)</li></MTEntries></ol>
<p>
There have been <$MTBlogCommentCount$> reader comments to the <$MTBlogEntryCount$> entries in this blog.<br /><$MTBlogName$> contains valid <a title=”because I am *that* cool” target=”_blank” onmouseover=”window.status=’cascading style sheets are hep’; return true;” onmouseout=”window.status=’ ‘; return true;” href=”http://jigsaw.w3.org/css-validator/”>CSS</a> and validates as <a title=”I am all about being compliant.” target=”_blank” onmouseover=”window.status=’because I am *way* that cool’; return true;” onmouseout=”window.status=’ ‘; return true;” href=”http://validator.w3.org/check/referer”>XHTML1.0 Transitional</a>.<br />Last modified:<br /><!–#flastmod file=”index.shtml” –>
</p>
</div><!–end sidebar div–>
<!–#include virtual=”/foot.shtml” –>
</body>
</html>
Thanks for posting the sample. Couple of questions:
1. The “good stuff” admin link — I assume that points to the entry where you talked about thje site?
2. Mozilla & Opera seemed to have some problems doing the right float (at least at my screen resolution) If you resized smaller, the right would eventually drop below the left float (if it didn’t alread start there). Just wonder if anyone else had reported similar problems.
btw, thanks also for the blogdata template tutorial as well. I had to fudge and make a the icon layout using a table to get presentable results in NS4 .7
ps – on 2, I had to define a width of <30% on the right float to get both floats side by side under Mozilla.