Hi,
I am iterating through the category monthly archives and I am checking whether that particular month contains article of particular type by looping through MTEntries for that particular month and then I am displaying that month in the category monthly archives.
The problem is that the script dies after displaying few months. The page is not loading fully. I am using dynamic publishing for this template.
<mt:IfArchiveTypeEnabled archive_type="Category-Monthly">
<mt:ArchiveList archive_type="Category-Monthly">
<?php
$archiveTitle = $this->tag('MTArchiveTitle');
if(eregi("$name","$archiveTitle"))
{
?>
<MT:Entries field:article_type="Blog" lastn="1">
<li><a href="<$mt:ArchiveLink$>"><$mt:ArchiveTitle$></a></li>
</MT:Entries>
<?php
}
?>
</mt:ArchiveList>
</mt:IfArchiveTypeEnabled>
Also, I want to check for the passed category parameter through query string other than the method I am using above.
Any help is truly appreciated.
Thanks,
Sunil
Reported on Movable Type 4.2
Hi,
Sorry for missing the $name.
$name is the category name we are passing in the query string.
Thanks,
Sunil
$name is the category name we are passing in the query string