Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Handling Expired Event Documents View modes: 
User avatar
Member
Member
ctaleck IPAGlobal - 6/1/2010 9:52:44 AM
   
Handling Expired Event Documents
I am using the "Published To" field in my events so that they are removed from the Events list when they are past the date. This works fine except when people click on a link to that page it is a bit confusing that the page returns a 404 error. Indeed the page is not published and not found, but I would like to return a "soft" error saying this event "is past and no longer valid"

Is there any way to have a special "error" message for my "Event" documents instead of the standard one?

User avatar
Kentico Developer
Kentico Developer
kentico_martind - 6/2/2010 3:23:10 AM
   
RE:Handling Expired Event Documents
Hello,

I would recommend adding some custom field for events for specifying "publish to" date instead of using the default one. Then you can create some simple custom web part with repeater where you can check value of this custom field and when the event is expired, you can hide repeater and display some message, otherwise you can hide message and show repeater that display data of event.

Best Regards,

Martin Dobsicek