How does the new content model feature enhance the flexibility of content display?

Calendar 👁️ 80

In today's rapidly changing digital world, the content carried by websites is no longer just simple articles and product introductions.From an exciting online event, a detailed customer case, to a professional team introduction and a complex service process, each type of content has its unique attributes and presentation methods.If your content management system (CMS) still only uses universal templates like 'article' or 'product' to publish all information, it will undoubtedly bring many limitations to content creation and display.

Traditional CMS often face a pain point: when you need to publish a new content type, such as "recruitment positionsThis is not only inconvenient to manage, but also requires a lot of customized development for the front-end display, and the data structure is chaotic, which is not conducive to future expansion and SEO optimization.

All this is easily resolved with the release of the new content model feature of AnQiCMS (AnQiCMS).It is no longer just about allowing you to add a few custom fields to existing "articles" or "products", but also gives you the ability to build new content types from scratch, completely according to business needs.This is like a tailor-made flexible 'content wizard' that makes your website content display more flexible than ever.

Why is the content model so important?

Imagine that your website not only publishes corporate news but also needs to display the following content:

  • Company events:Each event has unique information such as "time of holding", "location", "registration method", and "number of participants limit".
  • Customer case:Each case may include special fields such as 'Industry', 'Solution', 'Customer Feedback', 'Project Results Gallery', etc.
  • Team members:Each member has structured data such as "position", "field of expertise", "personal introduction", and "avatar".

If all this content is crammed into the same 'article' model, then when publishing in the background, you will see a lot of fields that are irrelevant to the current content, which is easy to confuse; when displaying on the front end, you also cannot uniformly retrieve specific fields for beautiful layout or conditional filtering.The new content model is designed to address these pain points, giving each type of content its own 'ID card' and 'personal wardrobe'.

How does AnQi CMS build your exclusive content?

In the Anqi CMS backend, you will find a dedicated 'Content Model' management entry.Here, in addition to the system default built-in "article" and "product" models, you can freely create any new models you need.

For example, we want to create an "activity model":

  1. Define the basic information of the model:You can name it "activity", and set a concise "URL alias" (such aseventThis determines the URL structure of future activity pages, making it more semantic and greatly beneficial for SEO.At the same time, the system will automatically generate the corresponding database table to ensure that the data is stored independently and does not interfere with each other.
  2. Add a dedicated field:This is the core part. You can add a series of custom fields according to the actual needs of the event:
    • Event name:Set to 'Single Line Text' type, required.
    • Location of the event:Same as 'Single Line Text', allowing users to see the address at a glance.
    • Start/End Time:Can be set to a 'number' or a more complex 'date time selector' type, ensuring that the time format is unified.
    • Number of participants:Set to 'number' type for easy filtering or statistics.
    • Registration link:Single line text type, pointing to the external registration page.
    • Event poster:Set to "Image" or "Multiple images" type, supporting upload of multiple images to showcase the event.
    • Activity Details:Set to 'Multi-line text' or rich text editor type, and provide a detailed description of the activity.
    • Even adding fields such as 'event status' (in progress/ended), 'free or not', etc., greatly enriches the structure of the content.

Every field defined, you can set its "parameter name" (for display in the background, such as "event location"), and "field name" (for template development, such aslocationwhether it is a "mandatory item" and "default value".

Content publishing and flexible display

Once the "event model

On the front-end display level, Anqi CMS's template engine is closely integrated with the content model, providing unprecedented flexibility:

  • Exclusive template auto-matching:You can design a list page and detail page template for the 'event model' separately (for exampleevent/list.htmlandevent/detail.html), the system will automatically apply it to ensure that each content type has the most suitable display layout.
  • Field invocation is intuitive and convenient:In the template, you can directly access through{{archive.活动名称}}or{{archive.location}}In this way, you can accurately call each custom field's data, easily realizing customized layout and style.
  • Dynamic parameter filtering:If your 'event model' has set 'event status', 'free or not' and other selective fields, the front-end template can utilizearchiveFiltersLabel, automatically generates filtering conditions, allowing users to dynamically filter and view event information according to their needs, such as only displaying 'ongoing' 'free events'.
  • General field traversal:For scenarios where the specific field name is uncertain or when it is necessary to dynamically display all custom fields,archiveParamsThe tag can traverse all additional parameters of the model, making your template design more universal and powerful.

This deep-seated flexibility allows you to no longer be limited by preset 'boxes', but to be able to adjust and expand the content structure according to the ever-changing nature of business.Whether it is to carry out refined content marketing, improve user experience, or optimize search engine rankings, the new content model will be a powerful boost for your website operations.

Summary

The new content model feature of AnQi CMS has brought content management from a 'fixed mode' to a 'customized era'.It allows you to freely define the structure and fields of content according to the real business needs, greatly enhancing the flexibility of content display.This means that your website can organize and present information more accurately, not only improving user experience but also laying a solid foundation for website SEO optimization and future business expansion.Your content is no longer bound by the framework, but has unlimited possibilities.


Frequently Asked Questions (FAQ)

1. What is the difference between the new content model and the previous "custom parameters"?The previous "custom parameter" was to add fields based on the existing "article" or "product" models, while the new content model allows you to start from scratch and create a completely new content type (such as "event", "recruitment"), which has its own independent database table, URL structure, and a completely custom set of fields.This provides a deeper level of structuring and flexibility, more suitable for content types with greater differences.

2. What adjustments need to be made to the front-end template after creating a new content model to display it?After creating a new model, you need to create the corresponding template file for the model in the template directory. For example, if you create a model named "activity", its table name iseventThen you need to createevent/list.html(List page template)andevent/detail.html(Detail page template).In these templates, you can utilizearchiveListandarchiveDetailTags, combined with the "call field" defined in the model to obtain and display content. Anqi CMS provides rich template tags for convenient flexible data retrieval.

What are the consequences if I accidentally delete a custom content model?Be sure to operate with caution!Deleting a custom content model is an irreversible operation.Once the model is deleted, all the contents under the model (including its corresponding categories, documents, and all data) will be permanently deleted from the database and cannot be recovered.Before performing the delete operation, the system usually has a clear warning prompt, suggesting that you carefully confirm and perform data backup.

Related articles

How to configure website adaptive display on different devices (PC, mobile)?

In the era of the prevalent mobile Internet, whether a website can provide a smooth and beautiful browsing experience on different devices (whether it is a large screen PC or a small mobile phone) has become a key factor in measuring whether a website is successful or not.AnQiCMS knows this pain point and provides flexible and powerful adaptive display configuration capabilities to help your website easily navigate the multi-screen world. AnQiCMS divides the adaptive display methods of websites into three main modes, you can choose the most suitable solution according to your business needs and technical preferences.

2025-11-08

What are the basic syntax rules of the AnQiCMS template engine used to display content?

AnQiCMS provides a user-friendly and powerful template engine, its design philosophy is to make the display of website content both flexible and easy to use.If you are familiar with template syntax like Django or Blade, then AnQiCMS's template engine will be very familiar to you.It is committed to presenting complex backend data in a clear and readable manner on the website front end, allowing content managers to focus on content creation and optimization rather than getting lost in the details of the code.

2025-11-08

How can you use the scheduled publishing feature to precisely control the display time of content on the website?

In the daily work of content operation, the timing of content release is often closely related to the communication effect, user reach, and overall activity of the website.It is particularly important to control the display time of content on the website accurately, whether it is to cater to the peak of user activity, cooperate with marketing activities, or simply to maintain the regularity of website updates.Anqi CMS knows this point, therefore it has specially designed an efficient and convenient scheduling publishing function, making content going online more strategic and automated.### Precisely control the timing of content going live Want to take advantage of the scheduling publishing feature of Anqi CMS, the process is actually very intuitive

2025-11-08

How to control the display permission of specific content based on user groups and VIP levels?

In website operation, providing differentiated content experience for different user groups is an important strategy to enhance user stickiness and achieve content monetization.The user group and VIP system of AnQiCMS (AnQiCMS) is the key function that helps us achieve this goal.By flexibly setting the display permissions of content, you can easily create paid content, exclusive member articles, or tiered reading services, making your website content more valuable.### Deeply understand the user group and VIP system of AnQi CMS AnQi CMS built-in user group management and VIP system

2025-11-08

How to display the Tag tag list of articles or products in AnQiCMS?

In Anqi CMS, flexibly displaying the Tag tag list of articles or products is a key link to improving the organization of website content and user experience.By carefully designed tags, it can not only help visitors quickly find the content they are interested in, but also effectively optimize search engine crawling and improve the website's SEO performance.Today, let's delve into how to fully utilize the Tag feature in AnQiCMS to revitalize the content of your website.### Understanding AnQiCMS Tag Tags In the AnQiCMS management background

2025-11-08

Does the background template editing function support real-time preview of content display effects?

AnQi CMS is favored by many operators for its efficient and flexible features in the field of website content management.When we talk about the visual presentation and user experience of a website, the customization capabilities of the template are undoubtedly the core.Among them, the real-time preview of the background template editing function and the display effect of the content is a focus for many users. ### The template editing capability of AnQi CMS: powerful and flexible AnQi CMS provides users with powerful and flexible backend template editing functions.The system uses a template engine syntax similar to Django, which is understandable for users familiar with front-end development or template languages

2025-11-08

How can I customize a template for a specific category or page to control the display style?

When operating a website, we often encounter situations where different types of content, even articles in the same category or different "About Us" pages on the same website, hope to have a unique display style to better attract readers and convey information.AnQiCMS (AnQiCMS) is well aware of this need and therefore provides a very flexible template customization mechanism, allowing us to easily tailor the display style for specific categories or pages.The Anqi CMS template system is based on the Django template engine syntax in Go language, which means that as long as you have a basic understanding of front-end development

2025-11-08

How to configure different content display templates for mobile and PC separately?

In website operation, providing a good browsing experience for different devices is crucial.AnQi CMS knows this, it provides a flexible template mechanism, allowing you to easily configure different content display templates for mobile and PC terminals, thereby meeting user needs and improving website performance.Below, let's take a detailed look at how to achieve this goal in Anqi CMS.### Understanding AnQi CMS Template Mode AnQi CMS provides three main website modes to meet the needs of content display on mobile and PC platforms in different scenarios: 1.

2025-11-08