What types of custom fields does AnQi CMS support to meet different content models and business needs?

Calendar 👁️ 67

AnQi CMS: Custom fields, unlock endless possibilities for diverse content and business needs

In today's increasingly refined content operation era, an excellent Content Management System (CMS) is not just a tool for publishing articles, it should also be a powerful engine for business growth.AnQiCMS (AnQiCMS), as a Go language CMS designed for small and medium-sized enterprises, self-media, and multi-site operators, deeply understands this field.It provides the "flexible content model" feature, which is realized through its powerful and easy-to-use custom field system.

Imagine that your website not only needs to publish regular articles, but also needs to display detailed product information, activity registration forms, and even property rental lists.These different content forms often require data structures unique to them.Custom fields of Anqi CMS are designed to solve this pain point, allowing you to easily deal with various complex content management needs.

Foundation of AnQi CMS flexible content model: Custom fields

One of the core advantages of AnQi CMS is that it allows users to freely define content models based on business logic.This means that you can create independent structures for different types of content such as 'articles', 'products', 'events', and even 'real estate'.And the core that supports these personalized content models is a series of rich and practical custom fields.They allow each content type to have unique data attributes, thereby enabling highly customized content display and management.

Deep customization, meets diverse content structure

AnQi CMS provides various built-in field types, aiming to cover the vast majority of content scenarios, transforming technical details into the convenience of daily operations.

The first is the basic data entry field, such asSingle-line textandNumber.When you need to add 'model', 'brand', or 'stock quantity' to the product model, these fields will be useful.They ensure the standardization and accuracy of information, such as product numbers must be numeric, and brand names are suitable for concise presentation in a single line of text.

The second is used to enrich the content descriptionMulti-line textField.In addition to the article content editor itself, you may also need additional 'product highlights' or 'event details' etc., which usually require longer text descriptions.The multi-line text field provides ample space for you to elaborate on the details of your content, meeting the needs of users for a deeper understanding.

Further, in order to achieve data standardization and the convenience of user selection, AnQi CMS provides a variety ofselective fields:

  • Single choiceFor example, in the product model, the "Color" field is defined so that the user can only choose one of "Red", "Blue", or "Black".This ensures data consistency and also facilitates subsequent data filtering and statistics.
  • Multiple selections: If your product has multiple 'feature characteristics', the user may need to select multiple, such as 'waterproof', 'dustproof', and 'durable'.The multiple choice field can well meet the demand for multi-dimensional property marking.
  • Drop-down selectionWhen there are many options, a dropdown selection box can effectively save page space, such as "Product Classification" or "Area Selection", where the user can simply select from the preset list.

These field types not only make content entry structured, but more importantly, they lay a solid foundation for personalized content display on the front end and intelligent data filtering on the back end.

Configure and manage custom fields

On the Anqi CMS backend, the process of custom field configuration is intuitive and efficient.You will find these settings under the "Content Management" -> "Content Model" module.Whether it is the built-in "article model" and "product model", or the custom model you create, you can easily add and manage exclusive fields.

When adding a custom field, you need to make several key settings:

  • Parameter NameThis is the Chinese name displayed on the background management interface, which is convenient for operation personnel to understand and use.
  • Field invocationThis is the unique identifier used to call the field data in the template, it is usually recommended to use lowercase letters in English to ensure the standardization during template development.
  • Field type: Select the above single-line text, number, multi-line text, single choice, multiple choice, or dropdown selection.
  • Mandatory?: Set according to business requirements to ensure the completeness of key information.
  • Default value: You can preset the default content of the field, or provide all options for the selection field, one per line.

After the configuration is complete, when you add or edit documents under the corresponding content model, these custom fields will appear in the "Other Parameters" area, waiting for you to fill in specific information.

Not limited to content model: global and category-level expansion

The 'custom' idea of AnQi CMS is not limited to the content model. Similar expansion capabilities are also provided in global settings, contact information settings, and even category management:

  • Contact information and custom system settings parameters: Besides basic information such as 'contacts' and 'phone numbers', you can also add custom contact information such as 'WhatsApp account', 'working hours', or system global parameters such as 'help page link', 'partners'. These parameters aretag-contact.md/tag-system.mdandtag-diy.mdTags introduced here can be flexibly called at any location on the website.
  • Custom fields of the category: Document classification can not only classify content but also have its own extended attributes.For example, set a dedicated 'Banner image' or 'category introduction' for a specific product category, and even add some specific fields that are only available for that category.categoryDetail with name="Images"Get the Banner image of the category.

Template call, bringing custom data to life.

Truly, what makes these custom fields valuable is their flexible invocation in the template. Anqi CMS provides a rich set of template tags, allowing developers to easily present backend-configured data to users:

  • ForCustom fields of the documentYou can usearchiveDetailTags to call field names directly, for example{% archiveDetail with name="产品型号" %}. If you need to iterate over all custom parameters of a document,archiveParamsTags can be put to good use.
  • Custom fields of the categoryIt will pass.categoryDetailCall the tag as follows.{% categoryDetail with name="Logo" %}To get the category thumbnail.
  • And those.Global or custom system parametersThen it can be accessed throughsystem/contact/diyAnd tags, combined with the 'invoked field' name, to retrieve and display.

By these tags, whether it is the core parameters of the product detail page, the specific author information of the article, or the global contact information of the corporate website, it can be displayed accurately in the preset position, ensuring the completeness of the content and the smoothness of the user experience.

In summary, the custom field feature of Anqi CMS is a core manifestation of its 'flexible content model'.It provides a complete solution from data structure definition to background entry management, to front-end template display.This enables enterprises and content operators to break free from the constraints of traditional CMS, build a truly personalized and efficient content management system according to their unique business needs, and better serve the strategic objectives of content marketing, SEO optimization, and even multilingual promotion.


Frequently Asked Questions (FAQ)

1. What is the relationship between the custom fields and content models in AnqiCMS?

Custom fields are an important component of the content model.Each content model (such as "articleWhen you create or edit a document under a content model, the defined custom fields will appear in the editing interface for you to fill in and manage.In simple terms, the content model defines the 'skeleton' of the content, and custom fields add various 'flesh' to this skeleton, making it able to carry richer and more specific information.

2. Where can I use the custom fields of AnqiCMS on the website?

Custom fields are mainly used to extend the data structure of content models (such as articles, products, events, etc.), which will be displayed on the detail pages, list pages, search results pages, and other front-end pages of these contents.In addition, AnQi CMS also provides a "Custom Parameters" feature in the global settings and contact information settings, which can also be seen as custom fields for the overall website or specific functional modules. These are used to configure global information such as the company's WhatsApp account, specific help page links, etc., making it convenient to call and display at any location on the website.

3. If I need a new custom field type (such as image upload, date picker), does Anqi CMS support expansion?

The AnQi CMS currently built-in single-line text, number, multi-line text, single choice, multiple choice, and dropdown selection of the six field types, these types can meet the needs of most business scenarios. Although the document does not mention directly extending new field types (such as directly integrating a date selector or more complex media fields), it can usually be handled in the following way:

  • Flexible combination of existing fieldsFor example, dates can be stored in a specific format through a single-line text field, or combined with custom scripts to achieve specific functions with existing fields.
  • template-level processing: For uploading images, Anqi CMS has dedicated image resource management and fields (such as Logo, Images) that can be directly referenced in the content model.For more complex interactions, you can combine with front-end JS libraries in the template.
  • secondary development: For extremely special requirements that cannot be met by built-in fields, the modular design of Anqi CMS allows for secondary development, but this requires a certain level of Go language development knowledge.

Related articles

What are the rules for generating a custom URL while editing a document? How can users manually modify it to optimize SEO?

As an experienced website operations expert, I know that every detail can affect the performance of a website in search engines.URL, as the 'address' of website content, its structure and readability are crucial for SEO.AnQiCMS provides high flexibility in URL management, allowing operators to finely control and thus effectively improve the search engine friendliness of the website.Today, let's delve into the custom URL generation rules when editing documents in Anqi CMS, as well as how users can manually modify these URLs to optimize SEO

2025-11-06

How can AnQi CMS automatically extract the first image in the document content as a thumbnail, and what are the triggering conditions?

As an experienced website operations expert, I know the key role of thumbnails in content operations.It is not only the first line of defense to attract users to click, but also an important element to improve page loading speed, optimize user experience, and even help search engine ranking.AnQiCMS (AnQiCMS) demonstrates its excellent user-friendliness and intelligent design at this point, especially its function of automatically extracting the first image of the document content as a thumbnail, which greatly simplifies the process of content editing.Today, let's delve into the working principle and triggering conditions of the intelligent function of Anqi CMS.###

2025-11-06

How to add images and videos to the document editing interface of Anqi CMS and manage their storage?

As an experienced website operations expert, I know that in the era of content is king, multimedia content is important for attracting users, improving user experience, and optimizing search engines.AnQiCMS (AnQiCMS) is an efficient content management system that also provides powerful and flexible features in multimedia processing.Today, let's delve into how to easily add images and videos in the document editing interface of Anqi CMS, and comprehensively manage these valuable digital assets.

2025-11-06

Can a dedicated document template and category template be specified when adding a new category in AnQi CMS?

In website content operation, personalized display is the key to attracting users and optimizing experience.We often encounter such needs: a certain type of content category needs a layout that stands out, or an important document needs a unique presentation.So, in Anqi CMS, when we add a new category, can we specify a dedicated document template and category template for it?

2025-11-06

How to correctly set the "model table name" and "URL alias" when adding a new content model to ensure system compatibility and SEO-friendliness?

The AnQi CMS content model: setting the model table name and URL alias, a win-win strategy for compatibility and SEO In the flexible content management world of AnQi CMS, custom content models are undoubtedly the core tools for enhancing the diversity of website functions and meeting specific business needs.However, as with every powerful feature, fine-tuning is required, especially when adding a new content model. Proper configuration of the "model table name" and "URL alias" is crucial to ensure stable system operation, seamless data compatibility, and good performance in search engine rankings.

2025-11-06

How to set up a timed publishing feature in the Anqi CMS editing interface to achieve automated content operation?

As an experienced website operations expert, I fully understand the importance of content timeliness and sustainability for website success.In a rich-featured content management system like AnQiCMS, making good use of its built-in automation tools can greatly enhance our operational efficiency.Today, let's delve deeply into a seemingly simple yet extremely powerful feature in Anqi CMS - scheduled publishing, and how to use it to achieve automated content operation.Say goodbye to manual operations: Anqi CMS's scheduled publishing makes content operation smarter In the fast-paced digital world

2025-11-06

Can the document introduction of Anqi CMS be automatically generated, and what is the word truncation rule?

As an experienced website operations expert, I am well aware of the core position of content in the website ecosystem, and the way content is presented, especially the generation and management of abstracts, is crucial for user experience and Search Engine Optimization (SEO).AnQiCMS (AnQiCMS) provides a smart and flexible mechanism in this aspect, allowing operators to manage and present content efficiently.Today, let's delve into how the document introduction of Anqi CMS is generated, as well as its word truncation rules.

2025-11-06

How to manage and add Tag tags in bulk on the content editing interface to enhance content relevance?

As an experienced website operation expert, I fully understand the importance of content relevance to the success of a website.It not only helps search engines better understand our content structure, but also guides users to discover more interesting information, thereby improving user experience and staying time.In AnQiCMS (AnQiCMS), the Tag label feature is the core tool to achieve this goal.By managing and adding these tags flexibly and effectively, we can make each piece of content a bridge connecting to each other, significantly improving the overall relevance of the website's content.SafeCMS in `v2.1.0`

2025-11-06