Help - Search - Members - Calendar
Full Version: Numbered list of entries
Movable Type Community Forum > Using Movable Type > Templates and Tags
prohtex
I am trying to create a category archive template that will display a numbered list of entries. 1, 2, 3 and so on, until all entries in that category are displayed. I am surprised but there doesn't seem to be a way to do this.

I know it could be accomplished with PHP, but PHP executes after the MT pages are built, and I need these numbers to be generated while rebuilding so they can be used with other MT tags.
maddy
In the context of a Category Archive Template, the following code will give you an ordered list of entries in that category, starting from the oldest to the newest.

CODE
<ol>
<MTEntries sort_order="ascend">
<li><a href="<MTEntryPermalink>"><MTEntryTitle></a></li>
</MTEntries>
</ol>


Is that what you were after? smile.gif
hechtic
Is there a simple way to achieve this in the Search Results? Ordered lists don't work. Everything gets labeled as "1".

thanks,

Andrew
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.