In today's content-driven digital world, websites are no longer just collections of static information. They carry various forms of content, ranging from in-depth articles, beautiful products, limited-time events to customer cases.Each content type has its unique information structure and display requirements.However, traditional website content management systems are often limited to preset "article" or "page" modes, making it difficult to meet the growing demand for personalized content management.
AnQiCMS fully understands this pain point, one of its core strengths is that it provides highly flexible content model customization capabilities.This feature enables users to freely define various content structures according to specific business scenarios and content characteristics, thereby greatly enhancing the efficiency of content management, the accuracy of display, and the overall user experience.
Why do we need a flexible content model?
Imagine that if you run a website focused on travel guides, in addition to basic travel articles, you may also need to display information about attractions, hotel details, special routes, and user reviews.This content has unique fields: attractions may have opening hours, ticket prices, and recommended ratings; hotels may have room types, price ranges, and facilities; special routes need to include the number of days, cities en route, and thematic tags, etc.If relying solely on a simple 'article' model to carry all this information, the management backend will become chaotic, and it will be difficult to implement structured and personalized layouts on the front end, not to mention the negative impact on search engine optimization (SEO).
The flexible content model of AnQiCMS is exactly for solving these problems.It allows you to create dedicated data structures for different types of content, ensuring that each piece of information is recorded and managed in the most reasonable and perfect way.
Define your exclusive content model in AnQiCMS
On AnQiCMS backend, the content model is the foundation for building your website's information architecture.You can easily find the "Content Management" menu under the "Content Model" option, and start your customization journey here.
The system is pre-installed with "article model" and "product model", which are the basic content types of most websites.But your imagination is not limited to this.Click on "Add Model
When creating a new model, you need to fill in several key pieces of information:
- Model nameThis is a Chinese name for easy identification and distinction in the background management, such as 'Event', 'Scenic spot'.
- Model table nameThis is an English lowercase name used in the database to store all custom data under the model, such as "event", "scenic_spot".Make sure it is unique and in lowercase English, as it will affect the subsequent templates and URL structures.
- URL aliasThe same is in lowercase English, used to generate the frontend URL address for the model content, for example 'activity', 'spot'.A clear, meaningful URL alias is crucial for SEO.
- Title NameThis field will replace the default "document title" and display a more appropriate prompt when you publish the model content, such as "event title", "attraction name".
Next, the core of the content model is -Custom field. Here, you can add unique data fields for the current model to meet its specific information entry needs. AnQiCMS provides a variety of field types for you to choose from:
- Single-line text: Suitable for short text input, such as titles, locations, brands.
- Number: Suitable for prices, quantities, ratings, etc.
- Multi-line text: Suitable for paragraph descriptions, detailed introductions.
- Single choice, multiple choice, dropdown choice: Suitable for selecting preset options, such as 'Activity Type', 'Room Type', 'Color'.
- Image upload, multiple image upload: Used for managing and displaying image materials.
- Date/TimeFor event dates, publication times, etc.
- Rich text editorFor detailed and complex layouts with rich content, such as 'event details', 'product description', etc.
When adding a custom field, you need to specify the "parameter name" (displayed to you in the background), and the "field name" (the English name used in the template to retrieve data, for exampleevent_location)、“Whether mandatory”and“Default value”.Special attention should be paid to the naming conventions of the“Call field”,as it will directly affect the convenience of data retrieval in the front-end template.
For example, if you are creating an 'event' content model, you can add the following custom fields:
- Location (single line text, field called:
event_location) - Start time (