Home  >  Article  >  CMS Tutorial  >  What does the Empire CMS profile label look like?

What does the Empire CMS profile label look like?

下次还敢
下次还敢Original
2024-04-16 22:37:33862browse

Empire CMS introduction tag is used to display the summary of the specified column content, syntax: !--empirecms_..., attributes include column ID (typeid), number of abstracts (limit), title length (titlelength), content length (infolength), list type (listtype), maximum title length (maxtitlelength), maximum content length (maxinfolength), arrangement (order), cache time (cachetime).

What does the Empire CMS profile label look like?

Empire CMS Introduction Tag

Empire CMS Introduction Tag is used to insert content specified in the Empire CMS system into the page Summary information for the module.

Syntax:

<code class="php">[!--empirecms_...]
[/--]</code>

Attributes:

  • typeid: Specify the content to be displayed Column ID.
  • limit: Specify the number of summaries to display.
  • titlelength: Specify the character length of the summary title.
  • infolength: Specifies the character length of the summary content.
  • listtype: Specify the type of summary list (0 is the title plus content summary, 1 is the title list).
  • maxtitlelength: Specify the maximum character length of the summary title.
  • maxinfolength: Specifies the maximum character length of the summary content.
  • order: Specify the sorting method (0 is sorted by release time, 1 is sorted by click rate).
  • cachetime: Specify the summary cache time (unit: seconds).

Example:

To display the titles and content summaries of the latest 5 news items in the news column, you can use the following tags:

<code class="php">[!--empirecms_typeid=1,limit=5,listtype=0--]
[/--]</code>

To display a list of the top 10 most clicked headlines in the Entertainment section, use the following tag:

<code class="php">[!--empirecms_typeid=2,limit=10,order=1,listtype=1--]
[/--]</code>

The above is the detailed content of What does the Empire CMS profile label look like?. 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