<strong>分类一</strong>
<ul>
<li><a>文章标题1</a></li>
<li><a>文章标题2</a></li>
</ul>
<strong>分类二</strong>
<ul>
<li><a>文章标题3</a></li>
<li><a>文章标题4</a></li>
</ul>
$obj = $this->widget('Widget_Metas_Category_List');
if($obj->have()){
while($obj->next()){
echo '<strong>'.$obj->name.'</strong>';
echo '<ul>';
$this->widget('Widget_Archive@'.$obj->name, 'type=category', 'mid='.$obj->mid)->to($categoryPosts);
while ($categoryPosts->next()) {
echo '<li>'.$categoryPosts->title.'</li>';
}
echo '</ul>';
}
}else{
echo '无分类';
}