Can I define different types of 'recommendation attributes' for different content models (such as 'top news' for article models and 'new product' for product models)?

Calendar 👁️ 73

As an experienced website operations expert, I am well aware that accurately recommending different types of content in content management is the key to improving user experience and operational efficiency.AnQi CMS provides us with powerful content organization capabilities with its flexible content model design.And regarding the differentiated definition of 'recommended attributes', this contains some exquisite operational strategies and technical implementation methods that are worth in-depth exploration.

The flexible application of AnQiCMS: Content Model and 'Recommended Attributes'

Many operations personnel will have a question when they first contact AnQi CMS: 'Can I define different types of 'recommended attributes' for different content models?'For example, the article model is 'Top News', and the product model is 'New Product'?This idea is very in line with the actual operational needs, after all, the 'headline' of a news article and the 'new product' of a commodity are fundamentally different concepts in terms of business logic.

To answer this question, we first need to understand the essence of the 'content model' and 'recommendation attributes' in Anqi CMS.

Understanding the content model: the cornerstone of flexible content organization.

One of the core strengths of AnQiCMS is its highly flexible "content model" feature.As the document states, “it allows users to customize content models based on business needs to achieve personalized content display.This means that we can create various types of content such as articles, products, cases, activities, and each model can have its own unique field structure.For example, an article model may have fields such as 'author', 'source', etc., while a product model may contain fields such as 'price', 'inventory', 'brand', etc.This flexibility allows Anqi CMS to adapt to various complex business scenarios, greatly enhancing the adaptability of content management.

Parse the essence of 'recommended attributes': a general operational identification

However, when we delve deeper into the 'recommended attributes' of Anqi CMS (i.e., as mentioned in the official documentation,flagWhen, you find, they are, a set, of, system, predefined, common, identifiers. In, the, "Add, document, instructions", we, see, that, these, properties, include头条[h]/推荐[c]/幻灯[f]/特荐[a]/滚动[s]/加粗[h]/图片[p]/跳转[j], a, total, of, eight, kinds. TheseflagThe attribute is globally unified and does not exist independently for a specific content model.That is to say, whether it is an article model, a product model, or any other model we customize, they will all share these eight fixed recommendation attributes.

The design approach is to maintain the simplicity and uniformity of the system.Developers may wish to provide a generic, reusable content tagging mechanism instead of creating a separate set of attributes for each model, which can reduce system complexity and improve maintenance efficiency.

Implement the operation strategy of "differentiated recommendation": skillfully use existing features

SinceflagHow can we achieve the semantic distinction between the 'headline' of the article model and the 'new product' of the product model if the attribute is general?The key lies in the flexible formulation of operational strategies and the clever application of front-end templates, even combining custom fields to achieve powerful effects beyond the preset functions.

  1. Flexible application of existing recommendation attributes, giving specific contextual meaning:The most direct method is to agree internally within the operation team, to assign specific meanings to the common properties of different content models.flagFor example:

    • ForArticle model: We can treatflag='h'as "Top News Articles,"flag='c'Regarded as “Editor's Recommendation”,flag='f'Regarded as “Slide Show Article”.
    • ForProduct model: The same as,flag='h'We can then define it as “New Product Recommendation”,flag='c'It can be “Hot Selling Product”,flag='f'It is the "home page carousel product".

    This convention must be strictly followed during backend operations and presented through logical judgment in the frontend template. When we callarchiveListtags and useflag='h'To obtain data, by determining the content model ID of the current page (moduleId) or category ID (categoryId),can render a completely different visual effect and semantic meaning. For example, on the product list page, we may use according toitem.ModuleIdDetermine whether to display the "New" tag next to the title instead of simply displaying "Top".

  2. Combine with the content model to customize fields for more accurate recommendation categories:A more powerful and recommended way is to make full use of the flexibility of the 'Content Model Custom Fields' in AnQi CMS.We can create custom fields for each content model to carry its unique recommendation attributes.

    • Add custom recommendation properties for the product model:In the "Content Model Usage Help", we see that we can add custom fields to the model. We can add a field namedproduct_statusThe custom field, set the field type to 'dropdown', options include 'new products', 'bestsellers', 'sales', 'upcoming' and so on.This way, when publishing or editing products, operation personnel can directly select the recommended status of the product, clear and straightforward, avoiding confusion.
    • Call the custom field in the template:The front-end template can call the product list by{{item.product_status}}Directly obtain the recommended status of the product and render or filter it based on its value. For example, we can set up a page for a "New Products" area, itsarchiveListLabels can be filtered by parameters to only displayproduct_statusproducts labeled as 'New'. This is more generalflagmore semantically meaningful, and also easier to manage and expand.
  3. Background operation specifications and team consensus:It is crucial to have clear back-end operation specifications and internal communication and consensus among the team, regardless of the method adopted.A clear 'Content Recommendation Operation Specification' will be the foundation of success, guiding operation personnel to correctly use these 'recommendation attributes' to ensure the accuracy and consistency of front-end display.The way of custom fields is clearer in semantics, reduces the understanding cost of human agreements, and helps to improve team collaboration efficiency.

Summary

In summary, although Anqi CMS provides a unified 'recommended attribute' system, its highly flexible content model, custom fields, and powerful template engine are sufficient to support our ability to define differentiated 'recommended attributes' for different content models. The key is how we cleverly combine these features to seamlessly integrate operational strategy and technical implementation, thereby providing users with

Related articles

What is the collaboration or difference between the `archiveParams` tag and the `moduleDetail` tag in obtaining custom field information of the content model?

Today, with the increasing diversity of digital content, a flexible content management system (CMS) is undoubtedly the key to improving efficiency and achieving personalized display for enterprises and self-media operators.AnQiCMS (AnQiCMS) with its powerful content model function enables users to deeply customize the content structure according to their own business needs.However, when we delve into the template level, trying to retrieve this customized data, we may encounter some questions: `archiveParams` tag and `moduleDetail` tag

2025-11-07

When a content model has custom fields (such as `author`), how can these model-specific custom fields be called in the `archiveDetail` tag?

Unlock the charm of AnQi CMS content model custom fields: advanced application of `archiveDetail` tag As a senior website operations expert, I fully understand the importance of a flexible content management system in improving operational efficiency and achieving personalized content display.AnQiCMS (AnQiCMS) excels in this aspect with its efficient architecture based on the Go language and excellent customizability.

2025-11-07

How to combine the `archiveList` tag to filter and display the document list of a specific content model based on `moduleId`?

## AnQiCMS Content Model Deep Guide: How to Use `archiveList` to Precisely Filter Document Lists As a veteran in website operation for many years, I deeply understand the importance of a flexible and efficient content management system for a corporate website.AnQiCMS with its efficient architecture based on the Go language and highly customizable features, provides us with strong support in the content management field.

2025-11-07

The `moduleDetail` tag is available on non-model related pages (such as the homepage)? How to safely obtain and use model information?

AnQiCMS (AnQiCMS) provides great convenience for website operators with its flexible content model and powerful template tag system.However, in practice, we often encounter a question: whether a tag like `moduleDetail`, which is usually used to obtain information about a specific content model, is still available on pages such as the homepage of a website that is not related to the model.How can it be used safely and effectively to obtain the required model information?As an experienced website operations expert, I will take you deep into this topic.

2025-11-07

How to dynamically judge whether a custom field of a content model is set as required in the template?

Anqi CMS is an efficient and flexible content management system, its powerful content model customization function indeed brings great convenience to enterprises and operators.In daily content operation, we often add various custom fields for different content models (such as articles, products, events, etc.) according to business needs.These fields are some optional, some are required to be filled in, that is, 'mandatory items'.

2025-11-07

Does the `moduleDetail` tag provide fields to retrieve the model creation time or update time to achieve more refined template display?

As an experienced website operations expert, I fully understand that the precise control and display of time dimension information in content management systems is crucial for website operations and user experience.Whether it is the publication time of the article or the last update time of the content, it can convey important information to the reader and also have a positive impact on search engine optimization (SEO).

2025-11-07

Why must the `model table name` of the content model be in English lowercase letters? What is the relationship with the underlying Go language development of Anqi CMS?

AnQi CMS, as an enterprise-level content management system meticulously crafted based on the Go language, has always adhered to a rigorous design philosophy on the path of pursuing ultimate performance, stability, reliability, and flexibility.Today, let's delve into a seemingly simple yet deeply technical consideration: why must the table name of the content model be in lowercase English letters?How closely is this related to the underlying development of the Go language?### The foundation of AnQi CMS: Go language and efficient design Firstly

2025-11-07

How to get the default category ID of the current content model through the `moduleDetail` tag, so as to build category navigation in the template?

HelloAs an experienced website operation expert, I am more than happy to share with you how to use the `moduleDetail` tag巧妙地 in AnQiCMS templates to obtain the ID of the current content model, and build a dynamic and accurate classification navigation system based on this.The AnQi CMS, with its efficient and flexible content model, provides great convenience for content operators, and a deep understanding of its template tags is the key to unleashing these advantages.

2025-11-07