Home CMS Tutorial Empire CMS What are the commonly used tags in Empire CMS?

What are the commonly used tags in Empire CMS?

Apr 16, 2024 pm 11:48 PM
Empire cms form submission arrangement

Empire CMS commonly used tags: Basic tags: display field values, global variables and classified content lists. Process tags: remove HTML tags and intercept content. Pagination tags: Split content into multiple pages for display. List tag: Displays a specified number of article lists, article lists sorted by clicks, and product content lists. Form tag: obtain form values, generate form submission methods and input boxes, and drop-down selection boxes. Other tags: display Flash video, voting form, comment list and friendly link list.

What are the commonly used tags in Empire CMS?

Empire CMS Common Tags

Empire CMS is a powerful content management system that provides a wealth of Tags to achieve various dynamic display effects. Here are some of the most commonly used tags in Empire CMS:

Basic Tags

  • ##{dede:field name="title"/}: Display the value of the specified field, such as the article title
  • {dede:global name="config.sitetitle"/}: Display the global variable, such as the website title
  • {dede:type name="types"/}: Loop to output the content list of the specified category
  • {dede:if expr="xxx"/}: Condition Judgment, if the condition is true, the content will be output, otherwise it will not output

Content processing tag

    ##{dede:striphtml}/}
  • : Remove the HTML tags in the specified field
  • {dede:cutstr name="content"/}
  • : Intercept the specified length content in the specified field
  • {dede:sppage name="dede_archives"/}
  • : Pagination tag, used to split the content into multiple pages for display
  • {dede:channel name="dede_archives"/}
  • : Get the content list under the specified column
List tag

##{dede:arclist row="10" titlelen ="8"/}
    : Display the specified number of latest articles, set the article title length to 8 characters
  • {dede:arclist orderby="hits"/}
  • : Sort the list of articles in descending order by the number of clicks
  • {dede:loop type="product"/}
  • : Loop out the product content of the specified category
  • {dede: recentlist row="10"/}
  • : Display the list of recently posted comments
  • Form tag

{dede: global_get id="123"/}
    : Get the value in the specified global form
  • {dede:formmethod}/}
  • : Generate the form submission method, such as GET or POST
  • {dede:form_text name="title"/}
  • : Generate text input box
  • {dede:form_select name="classid"/}
  • : Generate drop-down selection box
  • Other tags

##{dede:flashvideo width="120" height="100"/}

: Display the Flash video of the specified path
  • {dede:vote id="1"/}: Display the voting form of the specified vote
  • {dede :comment id="123"/}: Display the comment list of the specified article
  • {dede:infolink typeid="1"/}: Display the friendly links under the specified category List

The above is the detailed content of What are the commonly used tags in Empire CMS?. For more information, please follow other related articles on the PHP Chinese website!

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

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 Article

Roblox: Bubble Gum Simulator Infinity - How To Get And Use Royal Keys
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Nordhold: Fusion System, Explained
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Mandragora: Whispers Of The Witch Tree - How To Unlock The Grappling Hook
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Hot Topics

Java Tutorial
1670
14
PHP Tutorial
1274
29
C# Tutorial
1256
24
Do I need to use flexbox in the center of the Bootstrap picture? Do I need to use flexbox in the center of the Bootstrap picture? Apr 07, 2025 am 09:06 AM

There are many ways to center Bootstrap pictures, and you don’t have to use Flexbox. If you only need to center horizontally, the text-center class is enough; if you need to center vertically or multiple elements, Flexbox or Grid is more suitable. Flexbox is less compatible and may increase complexity, while Grid is more powerful and has a higher learning cost. When choosing a method, you should weigh the pros and cons and choose the most suitable method according to your needs and preferences.

How to verify bootstrap date How to verify bootstrap date Apr 07, 2025 pm 03:06 PM

To verify dates in Bootstrap, follow these steps: Introduce the required scripts and styles; initialize the date selector component; set the data-bv-date attribute to enable verification; configure verification rules (such as date formats, error messages, etc.); integrate the Bootstrap verification framework and automatically verify date input when form is submitted.

How to calculate c-subscript 3 subscript 5 c-subscript 3 subscript 5 algorithm tutorial How to calculate c-subscript 3 subscript 5 c-subscript 3 subscript 5 algorithm tutorial Apr 03, 2025 pm 10:33 PM

The calculation of C35 is essentially combinatorial mathematics, representing the number of combinations selected from 3 of 5 elements. The calculation formula is C53 = 5! / (3! * 2!), which can be directly calculated by loops to improve efficiency and avoid overflow. In addition, understanding the nature of combinations and mastering efficient calculation methods is crucial to solving many problems in the fields of probability statistics, cryptography, algorithm design, etc.

How to implement adaptive layout of Y-axis position in web annotation? How to implement adaptive layout of Y-axis position in web annotation? Apr 04, 2025 pm 11:30 PM

The Y-axis position adaptive algorithm for web annotation function This article will explore how to implement annotation functions similar to Word documents, especially how to deal with the interval between annotations...

How to ensure the security of H5 page production How to ensure the security of H5 page production Apr 06, 2025 am 06:18 AM

There are many security threats in H5 page production, including XSS, CSRF, SQL injection and data breaches. To ensure the security of H5 pages, basic security measures must be taken, including input verification, output escaping, use of HTTPS and security frameworks. In addition, more advanced security policies need to be considered, such as authentication and authorization, security audits and regular security scans, and continuous learning and updating security knowledge and continuous improvement of security policies.

How to adjust the wordpress article list How to adjust the wordpress article list Apr 20, 2025 am 10:48 AM

There are four ways to adjust the WordPress article list: use theme options, use plugins (such as Post Types Order, WP Post List, Boxy Stuff), use code (add settings in the functions.php file), or modify the WordPress database directly.

The process of H5 page production The process of H5 page production Apr 06, 2025 am 09:03 AM

H5 page production process: design: plan page layout, style and content; HTML structure construction: use HTML tags to build a page framework; CSS style writing: use CSS to control the appearance and layout of the page; JavaScript interaction implementation: write code to achieve page animation and interaction; Performance optimization: compress pictures, code and reduce HTTP requests to improve page loading speed.

How to elegantly solve the problem of too small spacing of Span tags after a line break? How to elegantly solve the problem of too small spacing of Span tags after a line break? Apr 05, 2025 pm 06:00 PM

How to elegantly handle the spacing of Span tags after a new line In web page layout, you often encounter the need to arrange multiple spans horizontally...

See all articles