Help - Search - Members - Calendar
Full Version: Looks simple, but...
Movable Type Community Forum > Additional Resources > Tips and Tricks
vlad
i'd like to know how to set up the master archive template to look like this: http://www.deftone.com/blogzilla/archives/

the idea is that the afformentioned site has their archive page as a list of all of the entry titles BUT they are shown under the month that they were posted. this is kinda hard to explain, so i posted a link.

thanks.
kadyellebee
I would guess that its something like this...

CODE
<MTArchiveList archive_type="Monthly">
<$MTArchiveTitle$><br />
<MTEntries>
<a href="<$MTEntryPermalink$>"><$MTEntryTitle$></a><br />
</MTEntries>
<br />
</MTArchiveList>


Kristine
vlad
thanks a lot for your help. using your suggestion, here's what i came up with:

CODE
<MTArchiveList archive_type="Monthly">
<h3><$MTArchiveTitle$></h3>
<ul>
<MTEntries>
<li><a href="<$MTEntryPermalink$>"><$MTEntryTitle$></a></li>
</MTEntries>
</ul>
</MTArchiveList>


and it works nicely. just out of curiousity, is it possible for the months and/or posts to be sorted in chronological order rather than reverse-chronological?
fooljay
Of course! Read the manual. look for global attribute sort_order...
BAM
Hi,

I have a question about that archive format.

That's how I want to do my archives (once I have enough to list).

The question I have is: what is the MT template for that page?

I have MT set to Category as Default Archive style.

So, if I put a link "Go to Archives" on my Main INdex, it would go to ~/blog/archives.html. And there are my categories listed.

So I could add this hint to get them listed, right?

I was confused becuase in a default template there is no link to the "/archives.html" page. And it took me a while (sigh) to figure out where they were.

Too Absent
pinder
this is exactly how i did it on blogzilla:

CODE
<MTArchiveList archive_type="Monthly">
<h2><$MTArchiveTitle></h2>
    <p>
    <MTEntries>
 <b>·</b> <a href="<$MTEntryLink$>" title="posted <$MTEntryDate format="%B %d, %Y">"><$MTEntryTitle$></a><br />
    </MTEntries>
    </p>
</MTArchiveList>
markpasc
BAM: the archive list is an index template like the others. You can put it wherever you like by changing its "Output File" setting, or delete it, or make a new one by making a new index template and putting that code in.

I would think there's no link to it in the default index template because it lists the archives in itself, not a separate page. smile.gif
vlad
@BAM: the template for that is called Master Archive Index, it's an index template, as already mentioned. it doesn't have anything to do with your prefered archive type, the preferred archive type is what is shown when you click on a permalink.

@pinder: wow, thanks for replying in person. didn't know you were a member here. nice site, btw, one of my regular visits ^^
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.