[Zope] Can I change the 404 page?

Richard Jones rjones@ekit-inc.com
Thu, 11 Apr 2002 08:56:46 +1000


On Wed, 10 Apr 2002 19:14, Maik Jablonski wrote:
> On Wed, 10 Apr 2002 06:59:22 +0100 "Paul" <p3d@p3d.co.uk> wrote:
> > I've had a look through the Zope book shelf and I haven't been
> > able to find out how to set up a custom 404 error page. Is this
> > possible?
>
> hi, a snip from a previous message:
>
> 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>

We've actually found that the standard_error_message isn't used on our site 
for NotFound errors - even though it's used for all others. It's got us a 
little stumped, actually. It's not an error in the page either - if we set 
standard_error_message to just plain text, then it still doesn't display 
(that and we have our Zope log errors in standard_error_message so we know 
how it breaks if it breaks)


   Richard