How many types of empire cms fragments are there?
There are three types of empire cms fragments: static information fragments, dynamic information fragments, and code fragments. Fragments are the calling and management of a certain piece of information in a web page; each piece of information called on a page in the portal is a fragment, allowing different administrators to update different area block information. "Dynamic information fragments" are used to call information in all information tables. "Code fragmentation" allows editors to manually edit call content and code, and supports historical backup. Once errors are corrected, the backup record can be restored immediately. "Static information fragments" can mix external information and information from the Empire CMS itself.
The operating environment of this tutorial: Windows 7 system, Empire cms 8, Dell G3 computer.
What are fragments?
Fragmentation is the calling and management of a certain piece of information in a web page. For example, each piece of information called on the page in the portal is a fragment, allowing different administrators to update different area block information, as shown in the figure:
Empire CMS Introduction to the fragmentation function
With the fragmentation of the Empire CMS, you can call any information to the website regardless of columns, tables, templates, or only within the site, making the website information more comprehensive. Flexible and efficient.
Fragments are one of the essential functions of the portal website. Let's explain why the portal website needs the fragmentation function and the application of fragmentation in the Empire CMS:
First, considerations in the case of large data volume:
If When your information reaches millions or tens of millions of data, if you use tag calling to find matching information from such a large amount of data tables, the efficiency is very low, and fragment calling information is indeed a solution. This problem exists because the total information of the fragment collection will not exceed thousands or tens of thousands of data. Is it faster to find information from millions of data tables or from thousands of data tables? Obviously, fragmentation calls have more advantages under large data volumes.
Secondly, fragments also exist for the call of Empire CMS multi-table information collection, and are innovations combined with the practical application of the Empire system:
Compared with those in the portal website system, the fragments of the empire are more flexible, and are developed in conjunction with the actual application of the empire system itself, making it more practical. In versions before 6.0, we used sub-tables to separate the information, while the fragmentation function in versions 6.5 and above reassembled the sub-table information. All table information can be pushed to one or more shards, and the shards can call all table information. In Imperial CMS 6.5 or above, this fragment type is called "dynamic information fragment" and is used to call information in all information tables. In general, the fragments in portal systems are manually modified by editors, and there is no feature of automatically calling the original information table, so the workload of editors is huge. This is the innovation of Empire CMS in the fragmentation function.
Third, fragments also provide a convenient solution for displaying some irregular content:
Because irregular things cannot be output in a program loop, so There is a second fragmentation type in Imperial CMS 6.5 and above: "code fragmentation". The editor can manually edit the call content and code, and supports historical backup. Once the error is corrected, the backup record can be restored immediately.
Fourth, fragments also exist for calling external data:
You can mix and call external information with the information of Empire CMS itself, so there is Empire CMS6 The third fragmentation type above .5: "static information fragmentation". For example: Empire CMS Forum SNS Mall..., if you want to put all the recommended information together, then this function is very useful.
Fifth, fragments also enable single information to be published to multiple columns/pages for calls:
Supports pushing one information to multiple fragments for calls.
Sixth, in the case of large data volume, the efficiency of Empire CMS using fragmented calls and calling without tags in the template is equivalent:
Let’s review the 6.0 version The test of "Super generation speed of Empire CMS under 20 million data and 17.3GB database" is the speed when the content page does not add call tags. In version 6.5 and above, if your content page uses fragmented calls, it can be achieved. Increased efficiency of approach testing for more complex calling situations.
The fragment function of Empire CMS has the following characteristics:
(1) Fragment classification management: You can search for fragments by category, which is particularly suitable for It is very useful when there are a large number of fragments;
(2), fragment management: fragments can set the label template used, whether to open it, etc.
(3). Fragment information update and management: only users with fragment allocation update permissions can update;
(4). Support three fragment types: static information fragments, dynamic information Fragments, code fragments;
(5), fragment update permissions can be assigned according to user groups, departments, and accounts, and support cross-privilege push settings;
(6), built-in fragment call tag "[spinfo] fragment variable name, number of displays, number of title interceptions[/spinfo]", information can be called by fragment;
(7), can be pushed Information from any table or any column can be converted into dynamic information fragments;
(8), supports setting the maximum amount of information stored in a single fragment, reducing redundant data and making calls more efficient.
Related recommendations: "Empire cms tutorial"
The above is the detailed content of How many types of empire cms fragments are there?. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

The Empire CMS sitemap can be found by accessing the config.inc.php file and checking the dositemap settings. If set to "on", sitemap is enabled. The sitemap path is located in the sitemapurl setting and can be accessed via a browser or downloaded via FTP.

The mobile settings of Empire CMS are located in the "Mobile Template" of the "Template Management" module. The specific steps include: enabling the template, selecting the application channel, editing the template content, and saving the settings.

Empire CMS template download location: Official template download: https://www.phome.net/template/ Third-party template website: https://www.dedecms.com/diy/https://www.0978.com.cn /https://www.jiaocheng.com/Installation method: Download template Unzip template Upload template Select template

The Imperial CMS database configuration file is located in the website root directory e/config/db.inc.php. It contains the following configuration information: $dbhost: database server address $dbuser: database user name $dbpass: database password $dbname: database name $dbport :Database port $dbcharset: Database character set

The ideal location for the Empire CMS template file is /e/template/default/skin/default/. Secondly, it can also be placed in /e/data/skins/ and /e/skin/. You need to pay attention to maintaining the folder structure and setting file permissions. and regular backups.

Yes, Empire CMS is a free and open source content management system (CMS). It is a lightweight CMS that is feature-rich and easy to use. Empire CMS is licensed under the GNU General Public License (GPL), which means it is free to download, install and use. For commercial use, it offers a paid version that offers additional features and support such as ad management, online payments, and premium technical support.

The automatic publishing interface of Empire CMS is located at /e/api/web/postinfo.php. The usage steps are as follows: visit /e/api/web/postinfo.php address and use HTTP POST to submit the article title, column ID, category ID, author and article The content and other data interfaces will return a response in JSON format, which contains the publishing results and article ID.

The Imperial CMS Member Center is located in the "Member Management" menu in the background or at the following URL: Browser side: https://your domain name/e/member/user.php Server side: /e/member/user.php Functions included in the Member Center Including member management, member group management, personal center, points management, level management, etc., to facilitate administrators and members to manage website account information.
