In GovCMS sites (as with most websites), content administrators will, from time to time need to remove content from their site. There are many cases in which conent may need to be removed, including Events that have passed, Blog articles or News & Media that no longer need to be highlighted on a site, expired job listings and so on.
Archiving content in GovCMS simply unpublishes the content. It does not delete the content. As such you can restore the content if needed.
The outcome of archiving any content is that it is no longer visible to site visitors. Should a site visitor navigate directly to the page that was previously available, they would receive an 'Access denied' message, as demonstrated in the next exercise.
In this exercise you will learn how to archive or unpublish content.
Navigate to the Content page by clicking on Content in the Admin menu and locate the Page you created in Exercise 3.1.
Edit the page by clicking on the Edit button to the right of the page you created.
Select the “Archived” option from the Change to dropdown menu.
Click the Save button at the bottom of the page.
Test the page in another browser as an anonymous user. To do this, copy the url from your browser after you click Save.
Open a new 'private' or 'incognito' window. Paste the url into the new window. You should see an 'Access denied' message similar to the below screenshot. The page still exists in the CMS and can be edited or restored by content administrators, but is no longer accessible to the public.
Note: The "Archive" workflow state is a feature that you developers can configure. It is NOT a default feature of GovCMS.