帝国cms调用自定义分类
帝国cms调用自定义分类,可以做单页,并且把所有单页都调用出来,先分类,再按照顺序调用
[e:loop={‘select id,path,title from [!db.pre!]enewspage where classid=1 order by id’,20,24,0}]
<?php
$pageurl=$public_r[‘newsurl’].str_replace(‘../../’,”,$bqr[‘path’]);
$css=’pagecss’;
if($classid==’page’.$bqr[id])
{
$css=’selfpagecss’;
}
?>
<li class=”<?=$css?>”><a href=”<?=$pageurl?>”><?=$bqr[title]?></a></li>
[/e:loop]