Help - Search - Members - Calendar
Full Version: Multiple MTEntries tags on a page no longer work
Movable Type Community Forum > Other Product Discussion > Bugs and Odd Behavior
kadyellebee
How weird!  I haven't tried it out with multipe category definitions on a page, but my The Red Kitchen's Author page has the following code:

CODE
Kristine<br>
<MTEntries author="kristine"><a href="<MTEntryLink>"><$MTEntryTitle$></a><br></MTEntries><br>
Cheryl<br>
<MTEntries author="cheryl"><a href="<MTEntryLink>"><$MTEntryTitle$></a><br></MTEntries>
and so on....
edited slightly for brievity

You would think that your page would be generating similarly with mine.

Maybe post your coding and if there's something odd one of us might recognize it? smile.gif  Or maybe mine's just magic wink.gif

Kristine
btrott
teradome: when you say that the contents of the tags are the same... do you mean that the same entries are listed for each of the tags, or that separate entries are listed, but they all display the same category in the <$MTEntryCategory$> tag?
btrott
Interesting. Could you post the code you are using?
teradome
I had a page that showed the day's posts from all my various categories, but using more than one <MTEntries days="1" category="[category]"> tag so I could seperate them in the layout with different treatments (since we don't have logic tags yet, like <MTEntryIf category="foo">, nudge nudge)...

However, with 2.0 this doesn't work. All 7 of them returned the same category, and it seemed to be the category of whatever had the most recent post. Their individual custom index pages (which use category and lastn) are fine.

using the upgrade distro
girlie
I wonder if this is somehow similar to what is happening with MTArchiveCategory, as in this thread.

Both issues seem to involve display of category of most recent post...
teradome
hmm... i didn't say it quite like that...
but yes, the same n results are repeated for every MTEntries tag used, regardless of category asked for.

if my latest post is in category "foo", and i'm using three sets of MTEntries tags to show category "foo," "bar," and "more" in different parts of the layout on that one page, then i will see the same results in all three, and they will all be "foo" category entries.

foo in foo
foo in bar, and NO bar posts
foo in more, and NO more posts

three times

repeats
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.