tips and tricks for movable type

link to previous entry on main index
December 29, 2002

This code snippet will give you one entry on your main page, with a link to the previous entry at the bottom.

<MTEntries lastn="1">
<MTDateHeader>
<$MTEntryDate format="%B %d, %Y"$>
</MTDateHeader>
<a name="<$MTEntryID pad="1"$>"></a>
<$MTEntryTitle$>
<$MTEntryBody$>
<MTEntryPrevious>
<a href="<$MTEntryLink$>">previously</a>
</MTEntryPrevious>
</MTEntries>

If you want to display more than one entry on your main page, use this instead:

<MTEntries lastn="15">
<MTDateHeader>
<$MTEntryDate format="%B %d, %Y"$>
</MTDateHeader>
<a name="<$MTEntryID pad="1"$>"></a>
<$MTEntryTitle$>
<$MTEntryBody$>
<MTEntriesFooter>
<MTEntryPrevious>
<a href="<$MTEntryLink$>">previously</a>
</MTEntryPrevious>
</MTEntriesFooter>
</MTEntries>

where 15 is the number of entries you want to display.

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

TrackBack: 1
(URL: http://www.thegirliematters.com/sf/mt-track.cgi/126)

» No I wasn't on vacation!
Excerpt: Its been almost ten days since my databases corrupted and that left me unable to blog and update all my other web sites, including BowlingFans.com. I had pretty recent backups of every thing but I didn't have backups of my
Weblog: #!/usr/bin/geek
Tracked: 02.21.03 02:18 AM