Feature preview

Feature Introduction

How to design content models and custom fields to avoid rework

The content model and custom fields determine the differentiated information that can be displayed, AnQiCMS supports custom content models, batch import of ZIP or Excel, document recycle bin, and pending publication status management, helping enterprises to plan the column structure well in the early stage of website construction to avoid rework later.

Custom field Content model

Feature Introduction

The content model and custom fields determine the differentiated information that CMS can display. Reasonable column structure design can avoid large-scale overhaul later. AnQiCMS provides a custom content model feature, supporting flexible content structure definition; built-in ZIP compression package and Excel table batch import capabilities, convenient for historical data migration; document status is divided into formal documents, drafts, pending release, and recycling bin, deleting formal documents is moved to the recycling bin rather than physical deletion, ensuring content can be restored.

The content model solves the issue of structure.

Information displayed in different business scenarios is completely different. Product pages need specifications, price, inventory; case pages need customer name, project cycle, achievement indicators; blog articles need author, publication time, classification tags. If the same set of fields is used to carry all content types, either the fields are too many and redundant, or the fields are insufficient to express differentiated information.

The content model allows for the definition of dedicated field sets for each content type. When creating a model, specify the fields required for that type, and when publishing content, the system will render the corresponding form based on the model. This way, the interface seen by the editor is highly matched with the actual business, reducing the probability of filling in the wrong fields.

How to design custom fields

The design of custom fields follows three principles: necessity, searchability, and scalability.

Necessity means only adding fields that are truly needed. Each additional field increases editing costs and database burden. Ask yourself before adding a field: Is this information necessary to display? Does it affect user decisions? If the answer is no, consider removing it.

Searchability means that field values should be searchable and filterable. For example, if a product's 'color' field is used for front-end filtering, it needs to be set as an indexed type; if it's just for remarks, a plain text field can be used.

Scalability refers to reserving fields that may be needed in the future. For example, in a product model, reserve a "extension attribute" field. When adding new special specifications, it is not necessary to modify the model structure. However, reserving too many fields can cause unused fields.

Three common modeling errors

Error one: All types share the same model. Place articles, products, and cases under the same model, using a large number of optional fields to cover all scenarios. The result is a cluttered editing interface, with most fields irrelevant to each piece of content.

Error two: Field granularity is too fine. Splitting the address into five fields such as province, city, district, street, and house number increases the editing burden. Unless these fields need to be searched independently, it is more practical to merge them into a "detailed address" field.

Error three: Neglecting the batch import requirements. After designing the model, it was found that historical data needs to be imported from Excel, but the field names are inconsistent with the column names in Excel, causing difficulties in mapping. It is recommended to consider the batch import scenario when defining fields and use clear English field names.

AnQiCMS supports ZIP compressed packages and Excel spreadsheet batch import, which can import the organized content data into the system in one go. Planning the field names and data format in advance can greatly reduce the migration cost.

How to use batch import and status management

Batch import is an important means of content initialization. AnQiCMS supports two import methods: ZIP is suitable for content packages containing images and other media files, and Excel is suitable for batch input of plain text data.

Before importing, confirm the field mapping relationship. Excel column names should correspond to the field names of the content model, and the system will automatically match them during import. For mismatched columns, you can manually specify the mapping in the import interface.

Content type Core fields Optional fields Applicable scenarios
Article Title, content, author, publish time Summary, cover image, tags Blogs, information
product Name, description, price, specifications Inventory, SKU, promotional price E-commerce, display
Case Customer name, project description, achievements Project timeline, technology stack, screenshots Case display
Page Title, content, URL alias SEO title, keywords, description Single page, about page

Document status management runs through the content lifecycle. AnQiCMS document status is divided into formal documents, drafts, pending release, and recycling bin. Draft links with preview=true can be previewed and are suitable for internal review; deleting formal documents is moved to the recycling bin instead of physical deletion and can be restored as needed; the pending release status is配合 with the scheduled release function, can realize the planned launch of content.

How to reserve for future expansion

Once the content model is put into use, modifications will affect existing data. Therefore, future expansion directions should be considered in the initial design:

Do you need multilingual support? If so, the fields should be designed as multilingual versions. Do you need version control? If so, the model should support historical version rollback. Do you need workflow approval? If so, an audit status field should be reserved.

AnQiCMS's custom content model supports flexible content structure and can add new fields without damaging existing data. However, deleting or modifying existing fields requires caution, and it is recommended to export and back up the data first.

Common questions

Ask: Can the content model be nested?

Answer: The content model of AnQiCMS is a flat structure and does not support direct nesting. To express the hierarchical relationship, you can refer to the content of other models through the association field.

Ask: How to handle batch import failure?

Answer: Check if the Excel file format is correct and if the field names match the model. The system will return specific error line numbers and reasons. Correct them according to the prompts and re-import.

Ask: How long will the content in the recycle bin be completely deleted?

Answer: The content in the recycle bin will not be cleared automatically. It requires the administrator to manually clear it. It is recommended to review the recycle bin regularly, confirm that there is no need to recover before performing **delete.