<?php
$this->widget('Widget_Archive@index', 'pageSize=6&type=category', 'mid=3')
->parse('<li><a href="{permalink}">{title}</a></li>');
?>
但是如何以特色图这种方式显示呢 [attachment=11085,819]
版主: seita
<?php
$this->widget('Widget_Archive@index', 'pageSize=6&type=category', 'mid=3')
->parse('<li><a href="{permalink}">{title}</a></li>');
?>
代码: 全选
<?php $this->widget('Widget_Archive@indexall', 'pageSize=100&type=category', 'mid=1')->to($indexpub); ?>
<?php while($indexpub->next()): ?>
<img src="<?php Fimg_Plugin::showfimg($indexpub->cid,1);?>">
<a href="<?php $indexpub->permalink(); ?>" title="<?php $indexpub->excerpt(80, '……'); ?>"><?php $indexpub->title() ?></a></li>
<?php endwhile; ?>