帝国CMS的动态页面是不支持导航模板标签的,只能通过SQL语句来解决。
将导航标签替换成以下代码即可
<ul> <?php if($class_r[$GLOBALS[navclassid]][featherclass] != '' && $class_r[$GLOBALS[navclassid]][featherclass] != '|') { $bclstr=explode("|",$class_r[$GLOBALS[navclassid]][featherclass]); $clsid = $bclstr[1]; } else{ $clsid=$class_r[$GLOBALS[navclassid]][classid]; } $sqlstr="select * from ".$dbtbpre."enewsclass where bclassid=".$clsid." and showclass=0 order by myorder,classid desc"; ?> [e:loop={"{$sqlstr}",0,24,0}] <?php $classurl=sys_ReturnBqClassname($bqr,9); ?> <li><a href="<?=$classurl?>" target="_self"><?=$bqr[classname]?></a> <?php if($bqr[sonclass] != ''){ ?> <?php $fnewsclass=$empire->query("select classid,classname from ".$dbtbpre."enewsclass where bclassid=".$bqr[classid]." order by myorder,classid desc limit 10"); $tmpstr=''; while($classr=$empire->fetch($fnewsclass)) { $classrurl=sys_ReturnBqClassname($classr,9); $tmpstr=$tmpstr.'<li><a href="'.$classrurl.'" target="_self">'.$classr[classname].'</a></li>'; } if($tmpstr != '') { ?> <ul style="list-style:none; margin:0; padding:10px 0 10px 0px; "> <?=$tmpstr?> </ul> <?php }}?> </li> [/e:loop] </ul>
还没有评论,来说两句吧...