Help - Search - Members - Calendar
Full Version: New Posts Overwrite Old Posts
Movable Type Community Forum > Other Product Discussion > Bugs and Odd Behavior
Big-Un
I have a simple photo blog with only one entry on the index page and a link to the previous and next entries.
Every time I post a new entry and view the site, the previous entries have their contents replaced with the new entry's contents.
For example, let's say I post a photo entry and call it "Beach".
Then the next day I post one called "Forest". The new Forest post appears but when I click the link to the Beach post, it appears but with its contents replaced with the Forest contents.
See My Webpage
serialpurrs
I might not be able to help you, but it would be really helpful to see your template.
Big-Un
Thanks!
Here is the code for my ind. arch. pages which seems to be the only pages where the problem occurs.
The spans and classes simply set the position of the photo and text.

Individual Entry Archive:
CODE
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<$MTPublishCharset$>" />
<meta name="generator" content="http://www.movabletype.org/" />
<title><$MTBlogName encode_html="1"$></title>
<link rel="stylesheet" href="<$MTBlogURL$>tristman.css" type="text/css" />
<link rel="alternate" type="application/atom+xml" title="Atom" href="<$MTBlogURL$>atom.xml" />
<link rel="alternate" type="application/rss+xml" title="RSS 1.0" href="<$MTBlogURL$>index.rdf" />
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<$MTBlogURL$>index.xml" />
<link rel="EditURI" type="application/rsd+xml" title="RSD" href="<$MTBlogURL$>rsd.xml" />

</head>

<body>
<!--INDIVIDUAL-->
<table width="768" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td colspan="2" height="18"><img src="<$MTBlogURL$>images/dt_header.gif" width="383" height="18"></td>
</tr>
<tr>
<td width="166" valign="top">
<!--BEGIN NEWS BOX-->
<H1>NEWS</H1>
<iframe src="<$MTBlogURL$>news.html" width="165" height="220" scrolling="auto" frameborder="0" marginwidth="0" marginheight="0"></iframe>
<!--END NEWS BOX-->
<div>
<$MTInclude module="Nav"$>
</div>
</td>
<td width="600" valign="top">

<!-- BEGIN PHOTO BLOG -->
<div id="photos">
<MTEntries category="Photos" lastn="1">
<$MTEntryBody$>
<span class="photoDate"><$MTEntryDate format="%m/%d/%y"$> <strong><$MTEntryTitle$></strong> <$MTEntryExcerpt$></span>


<span class="photoTextRight">
<MTEntryPreviousInCategory>
<a href="<$MTEntryPermalink$>">« <$MTEntryTitle$></a> |
</MTEntryPreviousInCategory>
<a href="<$MTEntryPermalink archive_type="Category"$>"><$MTEntryCategory$></a>
<MTEntryNextInCategory>
| <a href="<$MTEntryPermalink$>"><$MTEntryTitle$> »</a>
</MTEntryNextInCategory>
</span>


</MTEntries>
</div>
</td>
<!-- END PHOTO BLOG -->


</tr>
<tr>
<td colspan="2" align="right"><img src="<$MTBlogURL$>images/dots_long.gif" width="766" height="20"></td>
</tr>
<tr>
<td> </td>
<td align="right" class="pinkText">Site contents © 2005 David Tristman</td>
</tr>
</table>


serialpurrs
In the MTEntries tag try and remove the lastn="1" and see what that does

Actually comparing your individual entry archive to my own, you don't really need the MTEntries tag at all since it's the container to make a list of entries like you have in the index page on a more text based weblog.
Big-Un
-- EDIT -->
You were totally right!
I don't know what I was thinking. I kept putting my code for my index page in with my code for my individual entries.
DUH.
Sometimes it takes someone else's perspective to open your eyes.
Thanks so much for your help!!!!

~ Big 'Un
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-2008 Invision Power Services, Inc.