Unreviewed posts are displayed on the home page, such as questions. when a new post is sent, the posts that are still being reviewed also appear on the home page where the topic of the post is displayed, after clicking the link, "the subject you accessed has been deleted or is being reviewed" appears. Is there any way to make the unreviewed topic appear on the homepage? Please kindly advise me !, Yes, you can find the data unaudited field. then, the where clause after the SQL statement that obtains the Post list on the homepage is displayed on the homepage.
For example, when a new post is sent, the Post that is still being reviewed also appears where the topic of the post is displayed on the homepage. after clicking the link, the "the topic you accessed has been deleted or is being reviewed" appears ", is there a way to keep unreviewed topics on the homepage? Please kindly advise!
------ Solution --------------------
Yes. no data review fields are found.
Then, add a condition after the where clause to obtain the Post list on the homepage to filter Unaudited posts.
------ Solution --------------------
Add an audit field to the post in the database. The Post status is not reviewed by default. for example, if the value in the field is set to 0, the audit field value in the table will be changed after the review, for example, change to 1.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service