Help - Search - Members - Calendar
Full Version: Front Page as Category Archive
Movable Type Community Forum > Additional Resources > Tips and Tricks
justinlinks
I'm building an MT weblog based on a mailing list. Each of the mailing list participants posts in a single topic. I'm using categories for the topics: displaying each of the threads as a category archive page.

I want the front page of the site to display all entries (or, the last 50, for example), for whichever category has been most recently filled in.

Hopefully I can rig up something with basic MT tags. I suspect that some kind soul will suggest that I try PHP - sadly, that's not an option here. I'm on a server with heavy security, and I don't have FTP access to install plug-ins.

Maybe I'll just have to manually change the front page to sort by a specific category each time I update the site.

Thanks!
Violet
I don't know that what I have to offer will be a suitable solution, but maybe it'll give you a starting point to get to what you want? ^_^

I have my bookmarks page set up listing all categories, and displaying the last 5 links posted in each one. Next to the archive title is a link to the archive page, with a list of all the links in that category.

CODE
<MTArchiveList archive_type="Category">

    <MTArchiveTitle>(<a href="<MTArchiveLink>">See All</a>)
    
    <ul><MTEntries lastn="5">    
<li><MTEntryBody> <MTEntryIfAllowComments>|(<a href="<$MTCGIPath$><$MTCommentScript$>?entry_id=<$MTEntryID$>" onclick="OpenComments(this.href); return false"><$MTEntryCommentCount$></a>)
    </MTEntryIfAllowComments>
<br /><MTEntryMore></li>
</MTEntries></ul>
    
    </MTArchiveList>


That's the code used, stripped of all CSS formatting.

If at some point in the future you can use PHP or plugins, this thread has a way of sorting categories by most recently updated.

I hope this helps!
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.