What types of custom fields does Anqi CMS support? For example, 'Single line'

Calendar 👁️ 53

As an experienced website operator for AnQiCMS, I fully understand the importance of the flexibility of a content management system, especially the custom field function, which can greatly meet the personalized needs of content structure and display in different business scenarios.AnQiCMS provides quite comprehensive support in this aspect, allowing us to build rich content types according to our actual needs.

One of AnQiCMS's core advantages is its flexible content model.This means that the system not only provides preset content types such as articles and products, but also gives us the power to create or modify content models according to our business characteristics.In each custom content model, we can define multiple types of custom fields to accurately capture and manage the specific properties of content.

First, AnQiCMS supports the most basic text input fields, includingSingle-line textType, suitable for titles, short descriptions, or any text that is no more than 250 characters.For example, an article about a specific product may require a 'product model' field, in which case a single-line text is very suitable.Additionally, for content that requires more descriptive space, the system providesMulti-line textField, this allows us to input long-form content containing paragraphs, lists, and other complex formats, which is very suitable for detailed product introductions, interview records, and the like.

When dealing with numerical data, AnQiCMS has specialNumberField type, ensure that the input data is only numeric, which is extremely convenient for scenarios such as recording product prices, inventory quantities, and ratings.

To meet the demand for diversified options, AnQiCMS also supports various selection fields. IncludingSingle choiceField, allows us to preset a series of options, from which the user can only select one, such as selecting the "publish status" of an article or the "color category" of a product. When we need the user to select multiple related attributes,Multiple selectionsThe field comes into play, users can make multiple selections from the preset options. In addition,Drop-down selectionThe field provides a concise user interface, presenting multiple options in the form of a dropdown menu, and the user can only select one from it.These selection field options can be flexibly configured through the "default value" feature in the background, and support input of one option per line.

In addition to these explicitly defined custom field types, AnQiCMS also implicitly and supports some important media and rich text fields in content management. For example, almost all content types support uploadingImageAs cover (Logo), thumbnail (Thumb), or formimage group(Images) are displayed. The "content" field itself is a powerful rich text editor, even after enabling the Markdown editor, it supports Markdown format, can handle complex layouts and media embedding, which is equivalent to a highly customizable rich text field in the context of "detailed articles".

These rich custom field types make AnQiCMS capable of easily dealing with various complex content management challenges, whether it is to build product parameters for e-commerce websites, additional information for news portal articles, or professional data display for industry websites, all of which can be realized through fine management through flexible content models and custom fields.


Frequently Asked Questions (FAQ)

  • Q1: Can I set different custom fields for different content types (such as 'articles' and 'products')?A1: Yes, the core design concept of AnQiCMS is the 'flexible content model'.You can define completely independent custom field sets for the "Article" model and the "Product" model.For example, the "product" model can have fields such as "price", "inventory", "brand", and the "article" model can have fields such as "author", "source", "recommended attributes", etc., which do not interfere with each other, greatly facilitating the structural management of content.

  • Q2: How to call my custom field data in a front-end template?A2: Calling a custom field in a front-end template is very convenient. You can use{% archiveDetail with name="您的字段名" %}Tag to get the value of a single custom field, or use{% archiveParams params %}{% for item in params %}...{% endfor %}{% endarchiveParams %}The label loops through all custom fields and their values. This allows the template designer to fully control the display of custom fields on the page.

  • Q3: Will adding a custom field affect previously published content? Do I need to fill it in manually?A3: After adding a custom field, the content previously published will not be lost.This existing content will display as blank for the new field, you can edit the corresponding document or category in the background to supplement the data for the new field.If your new field is set to default and you want the existing content to apply that default, just leave the new field blank when editing, and the system will automatically assign the default value when called on the front end.

Related articles

What specific prompts does the 'Title Name' field of the custom content model have when publishing documents?

As an experienced website operator proficient in Anq CMS, I know that every setting of the background field may have a cascading effect on the efficiency of content operation and the ultimate user experience.In the custom content model, the 'Title Name' field, although seemingly trivial, plays a crucial guiding role in practice, greatly affecting the accuracy of content creation and the smoothness of the process.AnQi CMS, with its high flexibility and customizability, provides us with the ability to build a diverse content structure based on different business needs.No matter if it's articles, products, activities, or any other customized information type

2025-11-06

How to set the 'URL alias' of the content model to better support search engine optimization (SEO)?

As an experienced AnQiCMS (AnQiCMS) website operations personnel, I know that every detail can affect the performance of the website in search engines.The URL structure, especially the alias setting of the content model's URL, is a crucial element that should not be overlooked.A clear, meaningful, and search engine-friendly URL not only enhances user experience but is also the foundation of website SEO optimization.### How to optimize website visibility in search engines: How to set the URL alias of the content model In today's increasingly fierce digital marketing

2025-11-06

What is the difference between the 'model name' and 'model table name' in the content model? What specifications should be paid attention to when naming?

As an experienced CMS website operator, I am well aware that understanding the core concepts of the system is crucial when managing and optimizing website content.The content model is the foundation of AnQi CMS flexibility, allowing us to customize different types of content structures according to business needs.In this process, 'Model Name' and 'Model Table Name' are two concepts that are often mentioned but easily confused.Next, I will elaborate on the differences between them and the conventions to be followed in naming.

2025-11-06

What will the system do when deleting a custom content model, handling all documents and categories under it? Are there data recovery options?

As a deep-seated website operator familiar with Anqi CMS, I understand your concerns about data security and processing mechanisms in system operations.It is crucial to clarify system behavior in daily content management work, especially when it involves adjusting core content models.Now, let's delve into how the system handles its subordinate documents and categories when a custom content model is deleted in Anqi CMS, and whether there are data recovery options.In the AnQi CMS architecture design, the content model is the foundation for organizing and managing specific types of content.It defines the structure of the content, fields, and the classification system below

2025-11-06

How to get the title, content, and link of the current page document?

As an experienced website operator who deeply understands the operation of AnQiCMS, I know that the accuracy and efficiency of obtaining the current page content are crucial for the daily management and optimization of the website.AnQiCMS provides intuitive and powerful template tags, allowing us to easily extract the required document title, specific content, and standard link of the current loaded page.This not only helps us to have fine control over the front-end display, but also provides a solid foundation for SEO optimization.### Get the document title of the current page The document title of the current page usually has two levels of meaning

2025-11-06

How to loop and display the latest 10 articles in the template?

As an experienced CMS website operation personnel, I fully understand the core position of content in website operation.Dynamically displaying the latest content can not only improve the user experience, but also effectively increase the activity of the website and the frequency of search engine crawling.Below, I will elaborate on how to loop and display the latest 10 article lists in the AnQiCMS template.

2025-11-06

How to filter and display the article list according to a specified category ID?

As an experienced CMS website operation person, I know the importance of content organization and display for user experience and SEO.In daily work, we often need to filter and display article lists according to specific categories so that readers can quickly find the content they are interested in.Today, I will elaborate on how to flexibly and efficiently filter and display article lists in AnQiCMS according to specified category IDs.The categorization of content is the foundation for the effective operation of a website.

2025-11-06

How to implement pagination for the article list display function?

As a website operator who is deeply familiar with the operation of AnQiCMS, I understand that it is crucial to organize and present a large number of articles efficiently in content display.The pagination feature not only greatly enhances the user's browsing experience, but also avoids the visual fatigue caused by too much content on a single page, and is an indispensable part of the SEO strategy.To implement pagination display of article lists in AnQiCMS, it benefits from its flexible template engine and dedicated tag system, making the whole process clear and efficient.

2025-11-06