At 09:19 14/02/2002 -0800, Chris A. Bruce wrote:
I know about that, but what if I want a error message specifically for 404 and nothing else?
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>
-----Original Message----- From: Richard Barrett [mailto:R.Barrett@ftel.co.uk] Sent: Thursday, February 14, 2002 9:17 AM To: Chris A. Bruce; zope@zope.org Subject: Re: [Zope] Custom 404 html message
At 09:04 14/02/2002 -0800, Chris A. Bruce wrote:
Is there a way to customize a page not found error?
I found editing or creating a dtml method called standard_error_message worked just fine. You should have one (the basic default) lurking somewhere in your zope database.
Chris Bruce Director of Information Technology The Sleeter Group 925-416-6300 cbruce@sleeter.com
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )