Hongmu Notes
Home Program Notes EmpireCMS retrieves the column name and link for a specified ID.
Program Notes Empire cms

EmpireCMS retrieves the column name and link for a specified ID.

EmpireCMS retrieves the column name and link for a specified ID.

1. Call Column Name: <?=$class_r[栏目ID]['classname']?>

Example:<?=$class_r[1]['classname']?>

Note: In this case, the name of the column with ID 1 will be displayed as expected.

2. Invoke section link: <?=$class_r[栏目ID]['classpath']?>

Description:

Since the backend does not contain the "</>" character when the method is called, you can write it as follows:[!--news.url--]<?=$class_r[1]['classpath']?>/ "

As a result, the backend will now correctly display a slash.

3. Invoke the column alias with a specified ID: <?=$class_r[栏目ID]['bname']?>

Note:

1. This code does not need to be placed within the `e:loop` tag; simply insert it into the corresponding position in the template.

2. The Devin test revealed that placing the above code inside the `e:loop` block also works correctly.

微信赞赏

WeChat

支付宝赞赏

Alipay

✍️ Author: Hong Mu

webmaster · Thanks for reading, stay tuned for more exciting content

Author homepage View home page →

Related articles

Empire CMS database statement & SQL statement format

Empire CMS database statement & SQL statement format Program Notes Empire cms

Introduction to Imperial CMS extended SQL program writing, basic examples of Imperial CMS database statements & SQL statement formats: Note: The following examples are based on placing PHP files in the system root directory. Example 1: Connect to MYSQL program. (a.php)<?php require('e/class/connect.php'); //Introduce database configuration files and public function files requ…
👁 351
Empire CMS obtains the system COOKIE variable function getcvar()

Empire CMS obtains the system COOKIE variable function getcvar() Program Notes Empire cms

Get the system COOKIE variable function syntax: getcvar($var,$ecms) Description: $var: is the variable name $ecms: 0 is to set the foreground COOKIE variable, 1 is to set the background COOKIE variable. This parameter can be omitted and defaults to 0. Usage example: getcvar('mlusername'), get the user name of the front-end login member getcvar('loginu...
👁 295
Empire CMS smart label call field collection

Empire CMS smart label call field collection Program Notes Empire cms

Collect and classify all fields that support smart tag calls into Empire CMS smart tags: [e:loop={column ID/topic ID, number of items displayed, operation type, only display pictures with titles, additional SQL conditions, display sorting}] Template code content [/e:loop] Calling time: <?=date('m-d',$bqr[newstime])?> <?=dat…
👁 3749

Recommended reading

(PC+WAP) Mining Equipment Website Template Stone Crusher Website Source Code Download 1166

(PC+WAP) Mining Equipment Website Template Stone Crusher Website Source Code Download 1166 Practical Collection pbootcms Template

A mining equipment and gravel crusher PbootCMS website template, supporting PC and WAP. The design style is professional and industrial, suitable for displaying mining crushing equipment, screening machinery and engineering cases. It helps mining machinery companies display their products online and attract mining and construction customers. Template display Installation instructions Website backend:/admin.php Account: admin Password: admin Unzip password: www.4s5.cn phase...
👁 57
QQ Personal Space Blog & News Website Template 0765

QQ Personal Space Blog & News Website Template 0765 Practical Collection Yiyou template

An eYouCMS template designed for QQ Personal Space, blog/chronicle websites, and news/information platforms. Its fresh and artistic design makes it ideal for hosting emotional journals, personalized signatures, engaging blog posts, and real-time updates. This template helps individual webmasters or bloggers build personalized content-sharing platforms. Template Preview | Installation Instructions | Website Backend: /login.php | Username: admin | Password: admin | Related Articles: Summary of Common Installation Issues for eYouCMS | eYou...
👁 48
(Adaptive Mobile) Hardware Machinery Website pbootcms Template Blue Marketing Hardware Accessories Website Source Download 0427

(Adaptive Mobile) Hardware Machinery Website pbootcms Template Blue Marketing Hardware Accessories Website Source Download 0427 Practical Collection pbootcms Template

This set of self-adaptive mobile hardware machinery and blue marketing hardware accessories PbootCMS website template. Professional marketing design style, suitable for hardware accessories enterprises to display products, technical parameters and brands. It is helpful for hardware manufacturing enterprises to show their strength online and attract industrial customers. Template display installation instructions website background: /admin.php account number: admin password: admin decompression password: www.4s5.cn Xiang …
👁 43
(Adaptive mobile phone version) CNC machine tool website template Laser cutting equipment website source code download 1167

(Adaptive mobile phone version) CNC machine tool website template Laser cutting equipment website source code download 1167 Practical Collection pbootcms Template

A PbootCMS website template for CNC machine tools and laser cutting equipment, supporting PC and WAP. The design style is professional and technological, suitable for displaying high-end equipment such as CNC machine tools and laser cutting machines. It helps machine tool manufacturing companies display products online and attract manufacturing customers. Template display Installation instructions Website backend:/admin.php Account: admin Password: admin Unzip password: www.4s5.cn phase...
👁 46
Self-Media Operations Website Template 0766

Self-Media Operations Website Template 0766 Practical Collection Yiyou template

This EyouCMS template is ideal for self-media management websites, featuring a clean and modern design perfect for content creators to share articles, videos, and operational insights. It helps self-media creators build their personal online brand and attract followers. Template Preview | Installation Instructions | Website Backend: /login.php | Username: admin | Password: admin | Related Articles: Summary of Common Installation Issues for EyouCMS | EyouCMS (EyouCMS)...
👁 48
(Adaptive Mobile Version) PBootCMS Template for Agricultural Machinery and Equipment Websites – Download Source Code for Large-Screen Agricultural Equipment Websites – 0428

(Adaptive Mobile Version) PBootCMS Template for Agricultural Machinery and Equipment Websites – Download Source Code for Large-Screen Agricultural Equipment Websites – 0428 Practical Collection pbootcms Template

An adaptive mobile-friendly website template for agricultural machinery and farming equipment – PbootCMS. Featuring a sophisticated, wide-screen design with a natural and professional look, ideal for showcasing agricultural machinery products and field operation case studies. This template helps agricultural machinery companies showcase their products online and attract agricultural cooperatives and farm owners. Template Overview | Installation Instructions | Website Backend: /admin.php | Username: admin | Password: admin | Extraction Password: www.4s5.c...
👁 60