Home > CMS Tutorial > Empire CMS > body text

How to achieve infinite nesting of labels in Imperial CMS smart labels

藏色散人
Release: 2020-01-15 10:23:44
Original
3392 people have browsed it

How to achieve infinite nesting of labels in Imperial CMS smart labels

How to achieve infinite nesting of labels in Empire CMS smart tags?

This article mainly introduces the Empire CMS smart tag PHP code to achieve the effect of infinite nesting of tags. Friends in need can refer to the following

Recommended study "Empire cms tutorial

Most friends who are familiar with the Empire CMS know how to use smart tags to call specific information, but the powerful functions of smart tags are far from that.

The PHP function of the smart label is:

sys_ReturnEcmsLoopBq (column ID/topic ID, number of items displayed, operation type, only pictures with titles, additional SQL conditions, display sorting)

PHP code using smart tags can call information in pages that do not support smart tags, and can also achieve the effect of infinite nesting of tags.

So how can we achieve the effect of infinite nesting of tags? The following is an example:

The code is as follows:

<?php
$ecms_bq_sql=sys_ReturnEcmsLoopBq(栏目ID/专题ID,显示条数,操作类型,只显示有标题图片,附加SQL条件,显示排序);
$bqno=0;
while($bqr=$empire->fetch($ecms_bq_sql))
{
$bqsr=sys_ReturnEcmsLoopStext($bqr);
$bqno++;
?>
<?php
$ecms_bq_sql2=sys_ReturnEcmsLoopBq(栏目ID/专题ID,显示条数,操作类型,只显示有标题图片,附加SQL条件,显示排序);
$bqno2=0;
while($bqr2=$empire->fetch($ecms_bq_sql2))
{
$bqsr2=sys_ReturnEcmsLoopStext($bqr2);
$bqno2++;
?>
模板代码内容2 <?=$bqr2[title]?>
<?php
}
?>
模板代码内容 <?=$bqr[title]?>
<?php
}
?>
Copy after login

When using, the infinite nesting effect can be achieved by modifying the variable names of $ecms_bq_sql, $bqno, $bqr, and $bqsr in a targeted manner.

The above is the detailed content of How to achieve infinite nesting of labels in Imperial CMS smart labels. 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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!