« Bonfire Of The Vanities - Week 26 | Main | Crystal Balls »

Prevent Blank Blog

Today's Movable Type lesson (this includes TypePad) is inspired by this post at InstaPundit wondering why Tom Maguires blog is blank. The Movable Type help file explains this behavior.

By default, an index template displays the last N days worth of entries, where N is defined in your weblog configuration. For example, if you set the number of days displayed on the index to 7, Movable Type will, by default, display all entries from the last 7 days on all of your index templates. Note that 7 days means the last 7 consecutive days, not necessarily the last 7 days on which you posted an entry. So if you have posted on just 3 of the last 7 days, only the posts from those 3 days will be listed on your main indexes.
If you don't post for a while you end up with "blank blog." Fortunately this is easily preventable.

In your Main Index template, replace this:
<MTEntries>

With this
<MTEntries lastn="25">

Change the numeric value to however many posts you want on the main page. Save your changes and rebuild your Index templates. Blank blog will be vanquished forever.


TrackBack

Listed below are links to weblogs that reference Prevent Blank Blog:

» PoliBlog linked with Is the Bear Hibernating?

» The Alliance linked with When Being Naked Is A Bad Thing

Comments (3)

Is there any way to set it ... (Below threshold)
Jim:

Is there any way to set it so the last N days that had posts are represented?

No.It may be possi... (Below threshold)

No.

It may be possible with custom code or a MT plugin.

I've been using 'lastn' for... (Below threshold)

I've been using 'lastn' for ages. It lets me do 3 'main pages' for those who want to read more articles without going to the archives. I put 20 articles on each page.




Advertisements









rightads.gif

beltwaybloggers.gif

insiderslogo.jpg

mba_blue.gif

Follow Wizbang

Follow Wizbang on FacebookFollow Wizbang on TwitterSubscribe to Wizbang feedWizbang Mobile

Contact

Send e-mail tips to us:

tips@wizbangblog.com

Fresh Links

Credits

Section Editor: Maggie Whitton

Editors: Jay Tea, Lorie Byrd, Kim Priestap, DJ Drummond, Michael Laprarie, Baron Von Ottomatic, Shawn Mallow, Rick, Dan Karipides, Michael Avitablile, Charlie Quidnunc, Steve Schippert

Emeritus: Paul, Mary Katherine Ham, Jim Addison, Alexander K. McClure, Cassy Fiano, Bill Jempty, John Stansbury, Rob Port

In Memorium: HughS

All original content copyright © 2003-2010 by Wizbang®, LLC. All rights reserved. Wizbang® is a registered service mark.

Powered by Movable Type Pro 4.361

Hosting by ServInt

Ratings on this site are powered by the Ajax Ratings Pro plugin for Movable Type.

Search on this site is powered by the FastSearch plugin for Movable Type.

Blogrolls on this site are powered by the MT-Blogroll.

Temporary site design is based on Cutline and Cutline for MT. Graphics by Apothegm Designs.

Author Login



Terms Of Service

DCMA Compliance Notice

Privacy Policy