AnQiCMS with its flexible content model and powerful template tag system provides great convenience for personalized display of website content.In website operations, we often need to add some information beyond standard fields for articles, products, or other content, such as the author of the article, source of content, product batch number, or specific SEO information.This non-standardized information, AnQiCMS calls it "custom fields", which can make your website content more professional, detailed, and meet specific business needs.

Understanding the value of custom fields

The introduction of custom fields greatly enhances the adaptability of the content management system.It breaks the rigid restrictions of traditional CMS on content structure, allowing you to create dedicated data items that meet your specific industry characteristics and content types.For example, a technology blog may need fields such as 'review editor' and 'distribution channels'; a job recruitment website may need to add fields such as 'work location' and 'education requirements'.AnQiCMS's flexible content model is designed to meet these personalized content display requirements, allowing you to create unique data structures for different content types (such as articles, products).

Set custom fields in AnQiCMS background

To display custom field content in the template, you first need to make sure that these fields have been correctly set up in the AnQiCMS background.

  1. Log in to the AnQiCMS backendEnter the back-end management interface.
  2. Navigate to content model managementFind "Content Management" in the left menu and click on "Content Model."
  3. Select and modify the modelHere you will see the system preset "article model", "product model", and other custom models you may have created.Select the model you want to add a custom field to (for example, "Article Model
  4. Add a new custom fieldOn the model editing page, scroll to the "Content Model Custom Fields" area. Click the "Add Field" button to define the new data item.
    • Parameter NameThis is the display name of the field when editing articles in the background, such as 'article author' or 'source of content'. This name is for background editors.
    • Field invocationThis is the unique identifier used to refer to the field content in the front-end template.This name is crucial, as it will directly determine how you access this data in the template.authororsource.
    • Field type: Select the appropriate type for the content stored in the custom field, such as 'Single-line text' (suitable for author name, source name), 'Multi-line text' (suitable for complex description), 'Number', 'Single choice', 'Multiple choice', and so on.
    • Mandatory?: Decide based on the importance of the field.
    • Default value: If the field has common values, you can set a default value that can be automatically entered when editing articles.
  5. Save model configurationAfter completing the field settings, be sure to click the bottom of the page.