kaseytraeger Posted April 23, 2004 Posted April 23, 2004 Good morning and happy Friday, all! I had a strange thing happen to my blog this morning, and I can't fix it. You can see my blog at htt*://www.blog.pudgypuppy.com. The main page should have one post from me dated April 14, 2004 that says "Hello world, this is the first post to my new blog." But if you look at the blog now, you can see that it's not there! I only made two minor changes to the index.php page, and now the blog entries are invisible or non-existant! Here are the two changes I made. Change #1 -- I changed the formatting of the calendar located on the upper left side of the page. The calendar is embedded in a table, and I changed the cellspacing value from cellspacing="4" (the original, default value set by MT) to cellspacing="3". Change #2 -- I added a comment immediately above the <table> tag as an indicator to myself that I had changed the cellspacing value from the default MT value. The code change looked like this... BEFORE CHANGES: ><div align="center" class="calendar"> <table border="0" cellspacing="4" cellpadding="0" summary="Monthly calendar with links to each day's posts"> <caption class="calendarhead"><$MTDate format="%B %Y"$></caption> AFTER CHANGES: ><div align="center" class="calendar"> <!-- Original MT value was cellspacing=4. On 04/23/04, I changed the value to cellspacing=3. --> <table border="0" cellspacing="3" cellpadding="0" summary="Monthly calendar with links to each day's posts"> <caption class="calendarhead"><$MTDate format="%B %Y"$></caption> I then "saved" this page and did a "rebuild" of all pages. When I then viewed my blog, the text entry from April 14 was non-existant. I'm thinking, "OK, fine...it didn't like something I did." So I reverted back to the original index.php, did a "save" and another "rebuild" of all pages. I cleared my browser cache, cookies, and history. When I then tried to view my blog, the April 14 text entry was still missing. I've reviewed the code, and I don't see anything odd. Does someone out there know what's going on? If this were the CSS stylesheet, I'd just download a clean copy from the movabletype.org website. However, this is an index page, and I don't think they have templates for this sort of thing. I could be wrong, so if I am, and you know of how I can at least get back to where I was before this problem appeared, I'd appreciate hearing from you. Thanks everyone P.S. -- I'm attaching a copy of the raw MT code so all you code-gurus can see it in it's MovableType format rather than the server-parsed html that's presented to your browser. Quote
MikeJ Posted April 23, 2004 Posted April 23, 2004 (edited) In your weblog perferences, check your setting of "Number of days displayed". Your entry probably falls beyond that (and the rebuild is what caused it to refresh the front page display of entries, removing any outside of that range). Just increase the number of days displayed, rebuild, and you should be set. What to set it to depends on how frequently or infrequently you intend to update your blog. Edited April 23, 2004 by TCH-MikeJ Quote
kaseytraeger Posted April 23, 2004 Author Posted April 23, 2004 Well lookie there ... it worked! Thanks, Mike! I'm so stoked! (Do people even use that word anymore, or am I dating myself?) That's just one more feature of MT that I need to become familiar with. I'm glad it was a simple change and not something major that needed to be done to the code! Quote
LisaJill Posted April 23, 2004 Posted April 23, 2004 If you'd rather not have it date based, but always the last n number of entries, go to templates, main index. Find the line that says ><MTEntries> and change it to look like ><MTEntries lastn="7"> replacing the 7 with the last number of entries to always show. I should have done this when I walked you through the install, sorry about that. It's one of the biggest causes of confusion for people new to MT =) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.