帝国cms列表页调用“栏目别名”:

<?=$class_r[$GLOBALS[navclassid]][bname]?> 应用于子栏目列表页

<?=$class_r[$navclassid][bname]?>应用于子栏目列表页

或:

<?php

$bclassid=$class_r[$GLOBALS[navclassid]][‘bclassid’];

echo $class_r[$bclassid][‘bname’];

?>

列表页调用指定栏目ID的栏目别名:<?=$class_r[栏目ID][‘bname’]?>

调用父栏目别名:应用于子栏目列表页

[e:loop={“select classid,classname,bname from phome_enewsclass where classid=”.$class_r[$GLOBALS[navclassid]][bclassid].””,1,24,0}]

<?=$bqr[bname]?>

[/e:loop]

任意页面模板调用本栏目别名:

[e:loop={“select classid,classname,bname from phome_enewsclass where classid=’$GLOBALS[navclassid]'”,1,24,0}]

栏目别名:<?=$bqr[bname]?>

[/e:loop]

任意页面模板调用指定栏目ID栏目别名:

[e:loop={“select classid,classname,bname from phome_enewsclass where classid=21”,1,24,0}]<?=$bqr[bname]?>[/e:loop]

也可以用SQL调用,在封面页调用栏目别名:

[e:loop={“select bname from phome_enewsclass where classid=’$GLOBALS[navclassid]'”,1,24,0}]

<?=$bqr[bname]?>

[/e:loop]