Firstly, AnQiCMS supports the most basic text input fields, includingSingle Line TextType, suitable for titles, short descriptions, or any text information that does not exceed 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.Multi-line textField, this allows us to input long content containing paragraphs, lists, and other complex formats, which is very suitable for detailed product introductions, interview records, and so on.
When dealing with numerical data, AnQiCMS has a dedicatedNumberField type, ensures that the input data is only numeric, which is extremely convenient for scenarios that require recording product prices, inventory quantities, ratings, etc.
To meet the diverse selection needs, AnQiCMS also supports various selection fields. IncludingSingle selectionFields allow us to preset a series of options from which the user can select one, for example, selecting the 'publish status' of an article or the 'color category' of a product. When we need the user to select multiple related properties, Multiple selectionThe field comes into play, and 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 formingImage group
These rich custom field types make AnQiCMS able to easily handle various complex content management challenges, whether it is building product parameters for e-commerce websites, additional information for news portal articles, or professional data display for industry websites, all can be achieved through flexible content models and custom fields for fine-grained management.
Common Questions (FAQ)
Q1: Can I set different custom fields for different content types (such as "articles" and "products")?
Q2: How to call the custom field data in the front-end template?A2: It is very convenient to call custom fields in the front-end template. You can use
{% archiveDetail with name="您的字段名" %}Use the [field] tag to get the value of a single custom field, or use{% archiveParams params %}{% for item in params %}...{% endfor %}{% endarchiveParams %}The tag cycles through all custom fields and their values. This allows template designers to completely control the display style of custom fields on the page.Q3: If I add a custom field, will the previously published content be affected? Do I need to fill it in manually?A3: After adding a custom field, the previously published content will not be lost.This existing content will display as blank for new fields. You can edit the corresponding document or category in the background to add data for the new fields.If your new field is set to a default value and you want the existing content to apply this default value, simply leave the new field blank when editing, and the system will automatically assign the default value when called on the frontend.