[Zope] Custom 404 html message

Chris Withers chrisw@nipltd.com
Thu, 14 Feb 2002 19:13:49 +0000


Richard Barrett wrote:
> 
> Taking the basic standard_error_message and changing like this might work:
> 
> <dtml-if "error_type == 'NotFound'">
>      <dtml-comment>
>         Add special handling for 404 Not found here
>      </dtml-comment>
> <dtml-else>
>      <dtml-comment>
>         Put the contents of the default standard_error_message DTML method here
>      </dtml-comment>
> </dtml-if>

*vomit* ;-)

Put a python script in which calls the appropriate ZPT for an error message or
have the python script do other processing (such as a redirect) if you don't
want an error message shown.

cheers,

Chris