The Movable Type Knowledge Base

Show Titles Only, Not Full Entries

Question

My archive pages are getting too long, so I'd like to change them to just a listing of entries with titles and permalinks, rather than showing the full body for every entry. How do I do this?

Answer

Go to the Edit Template screen for the Archive Template you want to change. Look for the section of code that starts with <MTEntries> and ends with </MTEntries>; then replace it with code similar to this:

<ul>
<MTEntries>
<li><MTEntryDate format="%x"> - »
  <a href="<MTEntryPermalink archive_type="Individual">" »
  title="<MTEntryExcerpt>"> »
  <MTEntryTitle></a></li>
</MTEntries>
</ul>

This creates a list, showing the date for each entry in that archive, with the title linked to the Individual Archive page for the entry. The title tag for the link is the excerpt for the entry. You can, of course, edit the tags used to display whichever information you wish, but this should get you pointed in the right direction.

1 The » indicates line breaks added for display purposes; you should remove these breaks when using this code.

Submit Feedback on This Article

Your comments on how we can improve this article are appreciated; but please do not use the feedback form to submit support requests or questions. We will not respond to or publish such queries submitted through this form. If you have a technical question or problem, visit Movable Type Support.

Yahoo! Small Business web hosting services

Six Apart
Makers of weblog software and services for individuals, organizations and businesses.
This website is powered by Movable Type.