Home > Article > CMS Tutorial > 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!