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

What are the commonly used tags in Empire CMS?

下次还敢
Release: 2024-04-16 23:48:18
Original
467 people have browsed it

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!

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
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template