Home >CMS Tutorial >Empire CMS >How to obtain the sub-column under the current column in Imperial CMS
The example in this article describes the method of Imperial CMS to obtain the sub-column under the current column. Share it with everyone for your reference. The specific implementation method is as follows:
Empire CMS obtains the sub-column under the current column
The code is as follows:
<?php $bclassid=$GLOBALS[navclassid]; //取得本栏目id //取得本栏目下的子栏目 ?> [e:loop={"select classid, classname, classpath from `[!db.pre!]enewsclass` where bclassid='$bclassid' order by `classid` desc ",5,24,0,0,0}]
Add the sub-column information you want to cycle here
Sub-column name:
The code is as follows:
<?=$class_r[$bqr[classid]]['classname']?>
It is recommended to study "Empire cms tutorial"
The code is as follows:
<?=$class_r[$bqr[classid]]['classpath']?>
Sub-column id:$bqr[classid]
Tag call information:
The code is as follows:
[ecmsinfo] $bqr[classid] ,8,12,0,0,15,0,0,0[/ecmsinfo]
The Empire CMS content page obtains the current column ID and parent column ID
The code is as follows:
<?php$cid = $navinfor['classid'];$fid = $class_r[$cid]['bclassid'];?>
I hope this article will be helpful to everyone’s Imperial CMS website building.
The above is the detailed content of How to obtain the sub-column under the current column in Imperial CMS. For more information, please follow other related articles on the PHP Chinese website!