search
HomeCommon ProblemHow does empire cms make the article call display two columns?

We want to call the article list to display two or more columns to achieve the effect as shown below. What should we do?

How does empire cms make the article call display two columns?

At this time, we need to use the ecmsinfo tag of the empire. The ecmsinfo tag is also called a universal tag, which can realize various content display styles. The method steps are as follows:

ecmsinfo tag syntax introduction

Tag name: Information call tag with template [universal tag]

[ecmsinfo]Column ID/topic ID, number of displayed items, number of title interceptions, whether to display the column name, operation type, label template ID, only display pictures with titles[/ecmsinfo]

Note: The only difference between the ecmsinfo tag and other information calling tags is that the display style is determined by the tag template, and the red parameter specifies the tag template used.

Label template production format

List head!--empirenews.listtemp--]List content!--empirenews.listtemp--]List tail

Description: The first !--empirenews.listtemp--] indicates the beginning of the cycle, and the second !--empirenews.listtemp--] indicates the end of the cycle.

Add label template

1. Log in to the backend - click on the large menu template management to manage label templates and enter the following interface:

Figure 1: Menu Navigation

How does empire cms make the article call display two columns?

Figure 2: Management label template interface

How does empire cms make the article call display two columns?

2. After clicking the Add Label Template button, you will enter the Add Label Template page, as shown in the figure:

How does empire cms make the article call display two columns?

ecmsinfo tag usage examples: 1. Example 1, to achieve the following effect: (one row, one column)

How does empire cms make the article call display two columns?

1. Make label template

Figure 1: Use Dreamweaver to create a good interface:

How does empire cms make the article call display two columns?

Figure 2: Insert the list.var tag at the corresponding position. After inserting the tag, the Dreamweaver code display effect of the page template content

How does empire cms make the article call display two columns?

Design View

How does empire cms make the article call display two columns?

2. Copy the prepared label template code to the system background to add a label template:

Log in to the backend - click on the large menu Template Management to manage label templates: then click the Add Label Template button to enter the Add Label Template page, as shown in Figure

How does empire cms make the article call display two columns?

3. After clicking submit, we return to the management label template and see the label template we just added, as shown in the figure:

How does empire cms make the article call display two columns?

4. After the label template is completed, we can use the ecmsinfo label to call information, such as:

[ecmsinfo]2,8,38,0,0,9,0[/ecmsinfo]

Description: The above label is to call the column information with column ID=2; the display number is 8; the title intercepts 38 characters; the operation type is to call the latest column (0); use the label template with template ID=9.

5. Now we modify the home page template and check the display effect:

Log in to the backend-Template Management-Public Template-Modify the homepage template and add the call tag to the template, as shown in the figure:

How does empire cms make the article call display two columns?

After modifying the home page template, we click Preview to view the modified home page effect, as shown below:

How does empire cms make the article call display two columns?

5. Attached is the above example template code:

Code 1: Label template-page template content code

!--the.classname--]

More

!--empirenews.listtemp--] !--empirenews.listtemp--]

Code 2: Label template-list content template (list.var) code:

!--title--] [!--newstime--]]

2. Example 2, achieve the following effect: (one row and multiple columns)

How does empire cms make the article call display two columns?

1. Make label template

Figure 1: Use Dreamweaver to create a good interface:

How does empire cms make the article call display two columns?

Figure 2: Insert the list.var tag at the corresponding position. After inserting the tag, the Dreamweaver code display effect of the page template content

How does empire cms make the article call display two columns?

Design View

How does empire cms make the article call display two columns?

Figure 3: List content template: that is, content variables and displayed content. Represents the display style of each piece of information.

How does empire cms make the article call display two columns?

Code:

How does empire cms make the article call display two columns?

2. Copy the prepared label template code to the system background to add a label template:

Log in to the backend - click on the large menu Template Management to manage label templates: then click the Add Label Template button to enter the Add Label Template page, as shown in the figure:

How does empire cms make the article call display two columns?

3. After clicking submit, we return to the management label template and see the label template we just added, as shown in the figure:

How does empire cms make the article call display two columns?

4. After the label template is completed, we can use the ecmsinfo label to call information, such as:

[ecmsinfo]0,4,38,0,3,10,1[/ecmsinfo]

Description: The above label shows that the number of records is 4; the title intercepts 38 characters; the operation type is to call all news latest (3); use the label template with template ID=10; only display information with title pictures.

5. Now we modify the home page template and check the display effect:

Log in to the backend-Template Management-Public Template-Modify the homepage template and add the call tag to the template, as shown in the figure:

How does empire cms make the article call display two columns?

After modifying the home page template, we click Preview to view the modified home page effect, as shown below:

How does empire cms make the article call display two columns?

5. Attached is the above example template code:

Code 1: Label template-page template content code

!--empirenews.listtemp--] !--empirenews.listtemp--]

Code 2: Label template-list content template (list.var) code

!--title--]

The above is the detailed content of How does empire cms make the article call display two columns?. For more information, please follow other related articles on the PHP Chinese website!

Statement
This article is reproduced at:None. If there is any infringement, please contact admin@php.cn delete
deepseek web version official entrancedeepseek web version official entranceMar 12, 2025 pm 01:42 PM

The domestic AI dark horse DeepSeek has risen strongly, shocking the global AI industry! This Chinese artificial intelligence company, which has only been established for a year and a half, has won wide praise from global users for its free and open source mockups, DeepSeek-V3 and DeepSeek-R1. DeepSeek-R1 is now fully launched, with performance comparable to the official version of OpenAIo1! You can experience its powerful functions on the web page, APP and API interface. Download method: Supports iOS and Android systems, users can download it through the app store; the web version has also been officially opened! DeepSeek web version official entrance: ht

In-depth search deepseek official website entranceIn-depth search deepseek official website entranceMar 12, 2025 pm 01:33 PM

At the beginning of 2025, domestic AI "deepseek" made a stunning debut! This free and open source AI model has a performance comparable to the official version of OpenAI's o1, and has been fully launched on the web side, APP and API, supporting multi-terminal use of iOS, Android and web versions. In-depth search of deepseek official website and usage guide: official website address: https://www.deepseek.com/Using steps for web version: Click the link above to enter deepseek official website. Click the "Start Conversation" button on the homepage. For the first use, you need to log in with your mobile phone verification code. After logging in, you can enter the dialogue interface. deepseek is powerful, can write code, read file, and create code

How to solve the problem of busy servers for deepseekHow to solve the problem of busy servers for deepseekMar 12, 2025 pm 01:39 PM

DeepSeek: How to deal with the popular AI that is congested with servers? As a hot AI in 2025, DeepSeek is free and open source and has a performance comparable to the official version of OpenAIo1, which shows its popularity. However, high concurrency also brings the problem of server busyness. This article will analyze the reasons and provide coping strategies. DeepSeek web version entrance: https://www.deepseek.com/DeepSeek server busy reason: High concurrent access: DeepSeek's free and powerful features attract a large number of users to use at the same time, resulting in excessive server load. Cyber ​​Attack: It is reported that DeepSeek has an impact on the US financial industry.

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

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
1 months agoBy尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.