When using AnQi CMS to manage website content, you may come across various technical parameters, one of which seems simple but is crucially important is the document details of thestatusThe field. It is like the 'on/off switch' for the content, silently controlling whether the visitor can access your article, product, or other information.
Then, thisstatusWhat does the field represent?In simple terms, it is an integer value used to mark the current display status of the document.Understanding its value can help you better manage the content publishing process, ensuring accurate communication of website information.
In most cases, when you retrieve document details through an interface, you will seestatusThere are mainly two types of values for the field:0and1.
WhenstatusThe field value is0At that time, it usually means that the document is in a "pending review" or "draft" status. When you create a new document or make significant changes to an existing document and want to publish it later, the system may default it to0.This is like you quietly writing and editing content in the background, but this content does not appear immediately on your website's front end.It provides a space for modifying and perfecting the content, also facilitates the review process, ensuring that only confirmed content can ultimately be presented to the public.archivePublishThe content published by the interface, if the system has enabled the review mechanism, the newly published documents will also be displayed first.status: 0status, waiting for further action by the administrator.
whenstatusThe field value is1It indicates that the document has been "published" and is "displayed normally" on the website front end.This means that your website visitors can now view this document.statusis set to1. Whether it is an API call to get the details of a single document (archiveDetail) or to get a list of documents (archiveList) and if you seestatusWith1, it means that this content is active and visible.
UnderstandingstatusThese two core values of the field are crucial for daily content operation work.It not only defines the lifecycle of content from creation to publication, but also directly affects the actual display effect of the website.statusfields to filter and display content, onlystatus: 1the document presented to the user, thereby ensuring the professionalism and accuracy of the website content.
Moreover, it is worth mentioning that Anqi CMS maintains a high degree of consistency in design. Not only documents, but also categories, tags, and even uploaded attachments, various types of content have generally adopted similarstatusThe field controls its display status, ensuring that the entire system is clear and unified in content management logic.
Frequently Asked Questions (FAQ)
1. Why can't I see the new article I published on the front-end website?
This is very likely related to the article'sstatusfield. Please check if your article is in a 'pending review' or 'draft' status, which isstatusthe value of the field is0. If so, you need to log in to the Anqi CMS backend and set the value of the article'sstatusto1Or wait for the administrator to approve it, then it can be displayed normally on the website front page.Also, make sure you have not set a future publish time, as the article will also go live automatically at the specified time.
2.statusfield only0and1these two values? Do they have any other meanings?
For standard documents (such as articles, products), categories, tags, and attachments,statusfields usually only0(pending review/draft/not displayed) and1(Published/Normal Display) These two core values represent the visibility of content on the website. However, in certain specific business scenarios, such as order management(ordersInterface), order ofstatusThe field will have more rich values, such as-1Means cancel,0Pending payment,1Paid and other, these are status definitions for specific business processes, which are different from the content display status. When discussing the display status of the document, we mainly focus on0and1Just do it.
How can I temporarily hide a published article?
If you want to temporarily hide a published article, just find the article in the Anqi CMS backend andstatuschange the value of1back to0This way, the article will disappear from the website's front end, but the content itself is still stored in your system, and you can set it back whenever you want1Publish. This flexible control method is very suitable for content maintenance, updates, or temporary shutdown operations.