Home > CMS Tutorial > Empire CMS > 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
Release: 2019-11-26 15:28:23
Original
2554 people have browsed it

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}]
Copy after login

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;]?>
Copy after login

It is recommended to study "Empire cms tutorial"

The code is as follows:

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

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]
Copy after login

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;];?>
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template