Help - Search - Members - Calendar
Full Version: keep older posts on frontpage?
Movable Type Community Forum > Additional Resources > Tips and Tricks
zerotree
Hello -

I'm just wondering how we could tell MT to keep the excerpts of older posts (last month) on the front page?

I did not produce new posts this month, so the front page became empty (the links are still there) when i made a few changes and recompiled sad.gif

Guess there is a knob to tweak somewhere, but i don't seem to find it in the documentaion.
Thanks in advance!
LisaJill
Find

CODE
<MTEntries>


and replace it with

CODE
<MTEntries lastn="7">


replacing 7 with whatever the last number of posts you want to show is. That will show them regardless of date.
nammer
But if you wanted entry excerpts, you'd need something different, like
CODE
<MTEntryExcerpt lastn="30">
You can also use MTArchiveList to display the last month.

Does that help?

Donna
zerotree
working like a charm, many thanks!
William F. House
So, when you say replace (MTEntries) with (MTEntries lastn="7"), do you mean each iteration of ? Or is there a specific one?

I've got my sidebar set to display the last 20 (MTEntries lastn="20"), but I'd like to have my main column display the last n entries. Currently, it seems to drop my previous month's entries after a certain amount of time. And with a pretty bare month of posts (like this one), I end up with a sparse page.

Thanks in advance.
kadyellebee
You'll look for the main instance of MTEntries; probably inside of
CODE
<div id="content">

That's what controls the central posts on the page.

smile.gif
Kristine
William F. House
I found MTEntries several times in the Content ID section:

CODE
<div id="Content">
     <div class="blog">
       <h2><img src="Nothing.gif" width="530" height="35" /></h2>
       <p><img src="Ocean.jpg" width="526" height="184" /><MTEntries> </MTEntries></p>
       <p><MTEntries><$MTEntryTrackbackData$> </MTEntries></p>
       <MTEntries>


Do I replace each of those?
William F. House
I think I've got it now.
Bytes U
Thank you LisaJill! Your MTEntries #posts tip was timely for me and much appreciated.
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.