Display Message for Unpublised Pages

Terrence Foulk asked on February 19, 2015 23:10

Is there a way I can display a message on pages that are now unpublished?

Correct Answer

Brenden Kehren answered on February 20, 2015 13:31

In the Settings app make sure the "Page not found for non-published documents" is checked. Then you can set a global page not found URL.

You can also create a generic page like /No-Longer-Published and enter aliases for it for each of the pages you unpublish.

If you're looking to do this automatically, you could create a custom event handler that adds this alias when the document is unpublished.

0 votesVote for this answer Unmark Correct answer

   Please, sign in to be able to submit a new answer.