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 are
tag-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 use
archiveDetailTags 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 through
system/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.