When adding custom fields in the content model, what optional field types does Anqi CMS provide?

Calendar 👁️ 68

As an expert in website operation for many years, I deeply understand the significance of a flexible and efficient content management system for corporate content marketing and daily operations.AnQiCMS, with its powerful customization capabilities, is undoubtedly one of the best among them.Today, let's delve into the various field types provided by Anqi CMS when adding custom fields to content models, which help us better manage content.

In AnQi CMS, the content model is the core for constructing the website's skeleton.It allows us to break away from the traditional 'title + body' pattern, creating various types of content structures such as articles, products, events, cases, etc. based on specific business needs.And custom fields are the key to infusing life into these personalized content models.It allows us to precisely define the required data type based on the characteristics of the content, ensuring the structurization and standardization of the content, thereby providing great convenience for subsequent content management, retrieval, and display.

So, what types of selected field types does Anqi CMS provide in terms of custom fields? Let's list them one by one:

First, we have the most basic and most commonly used text input type:

  1. Single-line text:As the name implies, this is a field type used to collect brief text information.It is very suitable for scenarios where users need to enter a line of text, for example, when you need to add a SKU code for a product, or set a short subtitle for an article, or collect data such as author names, external links, and the like, a single-line text field is very applicable.The company usually limits the length to ensure that the data is not too long and maintains the conciseness of the content.

  2. Multi-line text:Compared to single-line text, multi-line text fields provide more space for richer descriptions.If you need to write a detailed feature description for a product, or provide an abstract or introduction for an article, or even need a rich text editor to write detailed HTML content (depending on the configuration), multi-line text fields can accommodate it well.It allows content creators to freely input multiple paragraphs of text, providing more comprehensive information.

  3. Number:When we need to handle pure numeric data, such as product prices, inventory quantities, article reading counts (if not automatically counted by the system but manually entered), or any data that requires numerical calculation or sorting, numeric fields are the ideal choice.It ensures that the input data format is correct and avoids potential problems caused by the confusion of text and numbers.

In addition to the basic text and numeric types, Anqi CMS also provides more interactive and standardized selection fields, greatly enhancing the efficiency and accuracy of content input:

  1. Single choice:This field type is suitable for selecting from a set of predefined optionsThe only oneThe scenario of value. Imagine that your product may only have colors such as 'red', 'blue', 'green', or the recommendation level of articles may only be 'not recommended', 'normal', 'top' and so on. In this case, a single selection (usually presented in the form of a radio button) can play a role.Its advantages lie in forcing users to make clear choices, avoiding unclear data entry, and options can be configured one per line in the "default value" column when custom fields are set.

  2. Multiple selection:Different from single selection, multiple selection allows users to choose from multiple predefined optionsOne or moreValue. For example, a piece of clothing may have multiple characteristics such as "waterproof", "windproof", and "breathable", or an article may belong to multiple tags such as "technology", "operations", and "market" (if not using an independent tag management system).Multiple choice (usually presented as checkboxes) can flexibly reflect the multiple attributes of the content.Similarly, the options are configured one by one through the "default value" column.

  3. Dropdown selection:When there are many preset options, but you do not want to occupy too much page space, and still need the user to selectThe only oneWhen a value is selected, the dropdown field (presented in a dropdown menu form) is **Plan. For example, select the origin of the product (country list), or select the sub-category of the article (category with many levels), the dropdown can provide a simple user experience.The option configuration method is consistent with single and multiple selections, all entered one per line in the "default value".

In addition to these core field types, Anqi CMS also provides other auxiliary options during the field customization process, further enhancing the practicality of the fields:

  • Parameter name and calling field:The parameter name is the Chinese description we see on the back-end interface, which is more readable; while the 'call field' is the English name used for storing and calling in the database, which ensures the stability of the system and the convenience of development.
  • Mandatory?:This option allows us to force users to fill in certain key information when publishing content, thereby ensuring the completeness and correctness of the data and business logic.
  • Default:In addition to providing an option list for selection fields, the default value can also provide preset content for text or numeric fields, simplifying the content creation process.

By these rich and practical field types, AnQi CMS greatly expands the boundaries of the website content model.Whether it is to build a complex e-commerce product library, or a flexible and variable information blog, or a structurally rigorous corporate case display, we can find the most suitable field combination to transform technical information into easily understandable and practical content, accurately meeting all kinds of content operation needs.


Frequently Asked Questions (FAQ)

  1. Ask: Have I created a custom field, but found that I selected the wrong field type? Can I change it?Answer: The field type is usually after a custom field is created and saved in AnQi CMS.It is not recommended to modify it directly.The, especially when the field has already entered data. Different field types may have different storage methods in the database, and forced modification may result in data loss or damage.If you really need to change the field type, it is recommended to create a new field with the correct type, then manually or through data export/import tools to migrate the data, and finally delete the old field.

  2. Ask: How do I display the custom field content on the front-end page?Answer: Anqi CMS provides powerful template tag functions, allowing you to easily call custom fields on the front-end page. Usually, you can call them by{% archiveDetail with name="您的调用字段名" %}or{% archiveParams %}Label to retrieve and display content. For example, if you create a namedauthorcustom field, you can use it in the template.{% archiveDetail with name="author" %}To display the article author. For more complex scenarios, such as looping to display a group of images, etc., it can also be combinedforLoop tags and flexibly implement.

  3. Ask: What should I do if the field types provided by Anqi CMS cannot meet my special requirements?Although Anqi CMS provides a relatively comprehensive set of basic field types, it may indeed not be able to fully cover certain extreme customization requirements. In this case, you can consider:

    • Combine existing field types:Try to simulate or indirectly meet your needs through the flexible combination of existing fields.For example, use the 'Multiline Text' field to store JSON formatted data, and then parse it on the front end using JavaScript.
    • Seek secondary development support:As an open-source and extensible CMS, AnQi CMS allows developers to perform secondary development.You can contact a professional technician to customize the development of new field types or functional modules according to your specific needs.

Related articles

I want to set the document title prompt for the "Product Model" to "Product Name", where should I configure the setting item in the content model?

As an experienced website operations expert, I am well aware of the importance of a flexible and user-friendly content management system for improving operational efficiency.AnQiCMS (AnQiCMS) meets the personalized needs of enterprises in content management with its powerful content model customization capabilities.Today, let's delve deeply into a common issue in actual operation that can significantly improve the content entry experience: how to set the document title prompt of the 'product model' to be more intuitive and closely aligned with the business scenario, namely the 'product name'.### Optimize content entry experience

2025-11-07

What impact will modifying the `URL alias` of the content model have on the existing page URL structure?

Good, as an experienced website operation expert, I am willing to delve into the impact and coping strategies of modifying the content model 'URL alias' in AnQi CMS.In AnQi CMS, such an efficient and flexible content management system, the setting of `URL alias` seems trivial, but in fact, it affects the whole body, especially in content operation and SEO, its impact should not be overlooked.

2025-11-07

How should the `URL alias` of the content model be set to better support the `{module}` variable in the SEO static rules?

## Unlock AnQiCMS SEO Potential: The Clever Combination of Content Model URL Aliases and Permalinks In today's highly competitive online environment, whether a website can stand out in search engines largely depends on the implementation of its SEO optimization strategy.As an experienced website operations expert, I am well aware of the importance of URL structure for SEO.A clean, meaningful, and SEO-friendly URL is the foundation for improving website ranking.

2025-11-07

When creating a new content model, what are the naming restrictions and practices for the `model table name`?

## Build an Efficient Content Model: The Art and Practice of Naming `Model Table Name` in Anqi CMS As an experienced website operations expert, I fully understand that every detail in a content management system can affect the performance, stability, and future scalability of a website.AnQiCMS (AnQiCMS) provides strong support for building a diverse content structure with its flexible content model features.However, when customizing content models, a seemingly trivial aspect - the naming of the `model table name`, entails many limitations and**practical considerations, worthy of in-depth exploration

2025-11-07

How to set the default options for single choice, multiple choice, and dropdown selection in custom fields?

## Fine-grained content operation: In-depth analysis of default field setting in Anqi CMS In today's rapidly changing network environment, efficient and flexible content management is the foundation for enterprises and self-media to maintain their competitiveness.AnQiCMS (AnQiCMS) leverages its high-performance architecture based on the Go language and highly customizable features to provide strong support for content operators.Among them, the flexible content model and custom field function are the key to improving the efficiency of content management and ensuring data consistency for AnQi CMS.

2025-11-07

Can the custom field of the content model be set as required? How can it be verified during the frontend document release?

Certainly, as an experienced website operation expert, I am more than happy to elaborate on the exquisite design of Anqi CMS in setting up mandatory fields for content model custom fields and front-end validation. --- ## Custom fields of AnQi CMS: Flexible definition and intelligent validation In today's increasingly diverse digital content, a flexible content management system (CMS) is crucial for enterprises and content operation teams.

2025-11-07

Will deleting a content model also delete all documents and categories under it? What are the data protection measures?

AnQi CMS is an efficient and flexible enterprise-level content management system, and its 'Content Model' feature is undoubtedly one of its core highlights.It allows us to customize the content structure according to business needs, whether it's articles, products, or events, it can easily handle them.However, while using this powerful function, we will also face an important issue: how will the system handle the data under the content model when it needs to be deleted?Will it only delete the model itself, or will it 'pull the strings' and delete all associated documents and categories as well?

2025-11-07

Does the AnQi CMS built-in 'article model' and 'product model' allow deletion? If not, why?

## The Core Pillars of AnQi CMS: The Mystery of 'Un deletable' Articles and Product Models As an experienced website operations expert, I fully understand the importance of an efficient and stable content management system (CMS) for a corporate website.Among many excellent CMS systems, AnQiCMS (AnQiCMS) has won a good reputation among small and medium-sized enterprises, self-media operators, and multi-site management users with its high-performance architecture based on the Go language, flexible content model, and SEO-friendly features.

2025-11-07