The core pillar of AnQi CMS: Articles and Product models, the mystery of their 'undeletable' nature

The foundation of content models: Articles and products

AnQiCMS was designed from the beginning to fully consider the basic content needs of most websites. Therefore, it provides two core, preset content models out of the box for users:“Article Model”and“Product Model”.These models are not randomly added but are regarded as the 'default foundation' of system content management.They provide the most commonly used and universal content structure, allowing users to quickly start content publishing without starting from scratch when building a website for the first time.

Irremovable deep reasons: System stability and data integrity

So, let's return to the topic of our article: Are the 'Article Model' and 'Product Model' built into Anqi CMS allowed to be deleted? The answer isNot allowed.

According to the AnQiCMS design document, the system explicitly states:The built-in content model can be modified but cannot be deleted.This point is crucial, it is not a limitation on user freedom, but to ensure the stable operation and integrity of the AnQiCMS system.

Imagine if the core "article model" or "product model" were arbitrarily deleted, it would bring about a series of catastrophic consequences:

  1. Core functionality is missing:These models are the foundation of many 'common features for enterprise sites' of AnQiCMS.For example, SEO tools, content collection, batch import, traffic statistics, and other functions may depend on the existence of these core models to identify and process content.Once they are deleted, these features will lose their operational objects, causing the system to report errors and even fail.
  2. Data integrity is compromised:These built-in models are typically containers for a large amount of website content.If deletion is allowed, all associated articles, product data, classification information, etc. will disappear instantly and cannot be restored.This is an unacceptable loss for any website in operation.
  3. Template and tag confusion:AnQiCMS template creation and tag calling (such asarchiveList/archiveDetailThese are all implicitly or implicitly dependent on these built-in models and their fields. Deleting the model will cause a large number of template tags to fail, the front-end page will not be able to render normally, and the website will become broken.

Therefore, AnQiCMS has chosen to protect these two built-in models to ensure a stable content management core.They are the 'skeleton' of the system, which must be maintained in order to support the whole content operation 'body'.

Flexible is not 'do as one wishes': customization rather than removal

Although the built-in models cannot be deleted, this does not mean that AnQiCMS lacks flexibility. On the contrary, the system provides powerful customization capabilities, allowing users to 'shape' these core models according to their actual needs:

  • Modify the model name and table name:You can rename the 'article model' to 'news dynamics', 'blog article', or change the 'product model' to 'service case', 'solution', etc., to better fit the brand context according to the business scenario.
  • Adjust the URL alias and title name:The URL alias in static rules, the title prompt when publishing content, and other such customizations can be made to make the website structure more in line with SEO strategies or user habits.
  • Add custom field:One of the most powerful features of AnQiCMS is its "custom field" function for content models.No matter whether you need to add 'author bio', 'source URL' to the article, or add 'color selection', 'size specification' to the product, you can flexibly add various types of custom fields (such as single-line text, numbers, multi-line text, radio buttons, checkboxes, dropdown selections, etc.) on the basis of the built-in model without deleting the existing model.

Moreover, AnQiCMS also allows users“New custom model”

Conclusion


Frequently Asked Questions (FAQ)

1. Q: Why does AnQiCMS not allow the deletion of 'Article Model' and 'Product Model'? Are they really irreplaceable?

A:Yes, they play an 'irreplaceable' role in AnQiCMS.These models are the most basic content management framework of the system, many core functions (such as content publishing, classification system, SEO optimization, and even some background data statistics) are built around them.Allowing the deletion of them will directly lead to internal logical errors, data structure collapse, and ultimately make the entire website fail to operate properly.This protective mechanism is to ensure the structural stability of the most core content of the system, just like you cannot arbitrarily delete the foundation of a house.

2. Q: How do I handle it if my website is a pure blog and does not need a 'product model', can I hide it?

A:Of course, you can.Although the product model cannot be deleted, you can modify and optimize it through the content model management feature on the back-end.You can change the name to something more suitable for your website, such as 'Resource Download', 'Service Introduction', or even not use it at all.When designing a front-end template, you can choose not to call or display the content and navigation related to the "product model", so it will not appear in front of your users.The backend management interface usually also provides options to hide or disable some model entry points, even if they are not used, avoiding their display on the frontend also achieves the effect of 'hiding'.

3. Q: What if I accidentally delete a 'custom model' I created? Can the data be recovered?

A:If you delete a custom model you created, please be cautious.The system will give you a clear prompt: "Deleting the model will also delete all documents and categories under it."Permanently deleted and usually cannot be restored directly from the backend interface.Therefore, before deleting any custom models, be sure to confirm that all relevant data has been backed up, or that it is indeed no longer needed.Data backup is an indispensable part of website operation, especially when performing such structural operations, it is of great importance.