<?php echo $this->getDescription(); ?>案例演示: <?php $this->widget('Widget_Metas_Category_List') ->parse('<li><a href="{permalink}" title="{description}">{name}</a> (...
像CMS那样,输出全部分类,并按分类输出文章: <?php $this->widget('Widget_Metas_Category_List')->to($categories); ?> <?php while ($categories->next()): ?> <?php $this-...
输出全部分类,并对当前分类current标记: <ul id="nav_menu"> <?php $this->widget('Widget_Metas_Category_List')->to($category); ?> <?php while ($category->next()): ?> <li<?php if ($this-...
<?php while($this->next()): ?> <?php if($this->category != "cateslug"): ?> //正常输出循环 <?php endif; ?> <?php endwhile; ?>
<?php if($this->category == "help"): ?> //当前分类为help缩略图,则输出内容。 <?php endif; ?>可应用于自定义分类,或者,判断某些分类输出不同CSS。