Home  >  Article  >  CMS Tutorial  >  How to obtain the sub-column under the current column in Imperial CMS

How to obtain the sub-column under the current column in Imperial CMS

silencement
silencementOriginal
2019-11-26 15:28:232514browse

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=&#39;$bclassid&#39; 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]][&#39;classname&#39;]?>

It is recommended to study "Empire cms tutorial"

The code is as follows:

<?=$class_r[$bqr[classid]][&#39;classpath&#39;]?>

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[&#39;classid&#39;];$fid = $class_r[$cid][&#39;bclassid&#39;];?>

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn