Home > CMS Tutorial > Empire CMS > body text

What does the Empire CMS profile label look like?

下次还敢
Release: 2024-04-16 22:37:33
Original
793 people have browsed it

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>
Copy after login

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>
Copy after login

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>
Copy after login

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!

Related labels:
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!