The Movable Type User Manual

NOTE: This documentation is for Movable Type 3.2. If you are using a newer version, please see the documentation for Movable type 3.3x or Movable Type Enterprise.

« Editing a Template | Up | Creating an Archive Template »

Chapter 3: Templates and Layout

Creating a Main Index

Problem

You want to create an index of your weblog's latest entries.

Solution

Create an index template using MTEntries and other tags.

Discussion

Weblogs are generally organized so that their entries are in reverse chronological order with the latest post on top. Movable Type ships with a template called Main Index with just such a listing. The Main Index is essentially the homepage for the weblog.

As an index template it has an implied context of the weblog. Entries (represented by the MTEntries tag) are selected based on Default Weblog Display Settings unless modified with attributes.

Here is a simplified example of a main index template.

 <MTEntries>
   <h3><$MTEntryTitle$></h3>
   <p><$MTEntryExcerpt$></p>
   <p>
   <a href="<$MTEntryPermalink$>">Continue reading 
     "<$MTEntryTitle$>"</a>
   </p>
   <p>Posted by <$MTEntryAuthor$> at <$MTEntryDate format="%X"$></p>
 </MTEntries>

For more on what these tags do see Appendix A.

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 question. 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.

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