The value of the `status` field in the document details, for example 1, specifically indicates which display status the document has?

Calendar 👁️ 89

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.

Related articles

Is the `created_time` and `updated_time` field of the document in Unix timestamp, how to perform time format conversion?

In AnQiCMS (AnQiCMS), when you obtain various information such as documents, categories, attachments, and users through the API interface, you will find that fields like `created_time` (creation time) and `updated_time` (update time) are usually presented in integer form.This is indeed the Unix timestamp format commonly used by many systems, including AnQiCMS.### What is Unix timestamp? Unix timestamp, also known as POSIX time or Epoch time, is a way to represent time

2025-11-09

What is the role of `canonical_url` and `fixed_link` in document details for SEO and link management?

In website operation, the health status of links and the friendliness to search engines are the foundation for the success of the website.AnQi CMS provides us with two key fields: `canonical_url` and `fixed_link`, which play a crucial role in document details and help us optimize the search engine performance of the website and effectively manage links. ### canonical_url: Define the "main version" of the content Imagine that your website might have multiple URLs pointing to the same or highly similar content for various reasons.

2025-11-09

How to interpret the `flag` recommended attribute in the document details, for example, what do `h`, `c`, `f`, and others represent?

In AnQi CMS, the recommended attribute `flag` is a very practical feature in content operations. It allows us to classify and label document content, thereby enabling personalized display and filtering in different areas of the website.Understanding the meaning of these brief letter codes can help us manage and present website content more efficiently.Where can I find the `Flag` attribute? This important `flag` attribute appears in several key interfaces, it is both the characteristic of the document itself, and the important basis for querying and filtering documents. First

2025-11-09

What do the `logo` and `thumb` fields represent in the document details, and what is the difference between them?

When managing content in Anqi CMS, we often encounter questions about image fields, especially the `logo` and `thumb` fields, which are both involved in image representation in the document detail interface (`archiveDetail`), but have subtle yet important differences in actual use and meaning.Understanding their differences can help us better optimize the visual presentation and loading performance of the website.### `logo` field: the "identity card" of the document When we talk about the `logo` field

2025-11-09

If the document is a product type, how can you get its `price` (price) and `stock` (stock) information?

In Anqi CMS, if you are managing documents of product types and need to obtain specific price (`price`) and stock (`stock`) information for these products, it is actually very direct and convenient.The design of AnQi CMS considers such needs, making these key data as one of the core attributes of the document, you can easily obtain them through several core interfaces.### Get the price and stock information of a single product document When you need to view the price and stock of a specific product, AnQi CMS provides the `archiveDetail` interface

2025-11-09

What detailed information will the nested `category` object return?

When we explore the mysteries of content in AnQi CMS, we often need to obtain detailed information about the documents.The `archiveDetail` interface provides us with rich document data, and the nested `category` object is a frequently overlooked but extremely important repository of information.It is not just a simple classification ID, but a complete entity containing all the metadata of the classification, which provides great convenience for us to deeply understand the context of the document and to carry out refined content display.

2025-11-09

How to display the `extra` object, how to access its `name` and `value`?

When using AnQiCMS to manage website content, the flexibility of custom fields in the document model is one of its highlights.These custom fields allow us to add unique properties for different types of documents (such as articles, products, etc.), greatly enriching the content dimensions.When obtaining document details or lists through the API, the information of these custom fields is cleverly encapsulated in the `extra` object of the returned data.

2025-11-09

How to get the value of a specific custom field (such as "author") through the `extra` field?

In Anqi CMS, the custom fields of documents are a reflection of its powerful flexibility, allowing us to add various unique attributes to content, thereby enabling more precise management and display of information.But for many developers and operations personnel, how to accurately obtain the values of these custom fields through the API is often a clear issue.Don't worry, Anqi CMS provides clear paths in API design, through the `extra` field, you can easily handle these additional data.### Understand the `extra` field

2025-11-09