Home >CMS Tutorial >Empire CMS >How to obtain sub-columns in Empire CMS

How to obtain sub-columns in Empire CMS

藏色散人
藏色散人Original
2019-12-06 09:26:012662browse

How to obtain sub-columns in Empire CMS

How does Empire CMS obtain sub-columns?

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:

It is recommended to study "Empire cms tutorial"

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;]?>

Sub-column link:

Code 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]

Empire CMS content page gets the current The column ID and parent column ID

code is as follows:

<?php 
$cid = $navinfor[&#39;classid&#39;]; 
$fid = $class_r[$cid][&#39;bclassid&#39;]; 
?>

The above is the detailed content of How to obtain sub-columns in Empire 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