fetch($ecms_bq_sql)){$bqsr.. .}" and save."/> fetch($ecms_bq_sql)){$bqsr.. .}" and save.">
search
HomeCMS TutorialEmpire CMSHow to achieve infinite nesting of labels in Imperial CMS smart labels

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
}
?>

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!

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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool