Help - Search - Members - Calendar
Full Version: Category Archive Not Working After Upgrading To 4.2 Pro Fro 4.01
Movable Type Community Forum > Using Movable Type > Entries and Archives
neomatrix
Hi, can you tell me if anything is wrong with this code:

<mt:ArchiveList archive_type="Yearly">
<ul>
<MTEntries>
<li><a href="<$MTEntryPermalink$>"><$MTEntryTitle$></a> (<$MTEntryDate ltrim="1" format="%e %B, %Y"$>)</li>
</MTEntries>
</ul>
</mt:ArchiveList>


It is published statically in an archive template with "<$MTCategoryBasename$>/index.html" mapping.
OtherNiceMan
The archive type is Yearly not category, this could be a problem.
neomatrix
I guess this is not the problem, because it was working with all MT versions untill I upgraded to 4.2 Pro.
OtherNiceMan
Alternatively it could have been a bug now fixed smile.gif

What output is being produced?

I can't see from the supplied code how it can work out what Category to use as you might have many in a year, Can you post the entire template?
neomatrix
The rest of template produces output. You can see it at http://www.samocska.com/sporna-topka

Here is the whole template:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="bg" xml:lang="bg">

<head>
<title>Спорна Топка: Рубрика на Георги Атанасов</title>
<$mt:Include module="Head"$>
</head>

<body>

<p id="navbar"><a href="/" title="Начална страница на samocska.com: ЦСКА Фен Сайт"><strong>samocska.com</strong></a> <img src="/_source/images/arrow.png" width="11" height="5" alt="->" /> Спорна Топка</p>

<h1>Спорна Топка:<br />Обзор на Спортните Събития</h1>

<p>Седмична рубрика на Георги Атанасов</p>

<mt:ArchiveList archive_type="Yearly"><ul>
<MTEntries><li><a href="<$MTEntryPermalink$>"><$MTEntryTitle$></a> (<$MTEntryDate ltrim="1" format="%e %B, %Y"$>)</li>
</MTEntries></ul></mt:ArchiveList>

<$mt:Include module="Google Analytics"$>

</body>
</html>



You are right that no Category is specified in the code, but as long as I have only one category, it's ok.

I would appreciate any help.
Louaye
Hello,

I am facing the same problem and I am wondering if you were able to solve this issue.
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.