帝国CMS怎么调用自定义分类,怎么实现
帝国CMS调用自定义分类的方法: 具体标签如下:[e:loop={&#39;selectid,path,titlefrom[!db.pre!]enewspagewhereclassid=1orderbyid&#39;,20,24,0}]<?php$pageurl=$public_r[&#39;newsurl&#39;].str_replace(&#39;../……
帝国CMS调用自定义分类的方法:
具体标签如下:
[e:loop={'selectid,path,titlefrom[!db.pre!]enewspagewhereclassid=1orderbyid',20,24,0}]<?php$pageurl=$public_r['newsurl'].str_replace('../../','',$bqr['path']);$css='pagecss';if($classid=='page'.$bqr[id]){$css='selfpagecss';}?><liclass="<?=$css?>"><ahref="<?=$pageurl?>"><?=$bqr[title]?></a></li>[/e:loop]