Movable Type: MTIf not working under MTSubCategories?
Posted
by kohei
on Stack Overflow
See other posts from Stack Overflow
or by kohei
Published on 2010-05-18T22:56:50Z
Indexed on
2010/05/18
23:00 UTC
Read the original article
Hit count: 325
movabletype
Hi
I'm trying to insert UL on every 20th sub category label. This code below doesn't seem to work. It only exports list of sub categories without the UL in it's right place.
Any one know what would be wrong?
<MTTopLevelCategories>
<ul>
<MTSubCategories>
<mt:If name="__counter__" op="%" value="20" eq="1">
<mt:If name="__counter__" ne="1">
</ul>
<ul></mt:If></mt:If>
<li><$MTCategoryLabel$></li>
</MTSubCategories>
</ul>
</MTTopLevelCategories>
My testing environment: Movable Type 5.01 PHP 5.2.11 MySQL 5 Perl 5.8.9
© Stack Overflow or respective owner