Site structure
Version 7.x > Site structure > Archived document message View modes: 
User avatar
Certified Developer v6
Certified Developer v6
Dave - 8/1/2013 10:01:07 AM
   
Archived document message
Hi,

I'm not sure if this is the proper forum, but I am looking to show users a customized message (or redirect) when they try to access a URL of a document that has been archived. Currently it uses the 404 functionality. I still want 404 functionality for documents that have not been published yet, but for those that have been published and archived, I'd like to show them another message/page. What's the best way to accomplish this?

Thanks!
Dave

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 8/4/2013 1:27:12 AM
   
RE:Archived document message
Hi,

There is no setting for this unfortunately. This sounds like you will have to handle the 404 events fully on your own. Once the 404 error is returned, you will check for which document it is - if the document is archived, you will return your custom page otherwise you will leave the defaults. This would have to be done in the CMSAppBase.cs file.

Best regards,
Juraj Ondrus