I wonder how to customize the error messages that appear sometimes, e.g. if someone tries to access a document that does not exist on my server? Andy Pahne
Andy Pahne wrote:
I wonder how to customize the error messages that appear sometimes,
Edit the dtml method called standard_error_message in the root directory. If you want it customized for where you are in Zope, I imagine that including different standard_error_messages in different folders would help. -- ~mindlace
At 06:08 PM 9/28/99 +0100, Ethan Fremen wrote:
Andy Pahne wrote:
I wonder how to customize the error messages that appear sometimes,
Edit the dtml method called standard_error_message in the root directory.
If you want it customized for where you are in Zope, I imagine that including different standard_error_messages in different folders would help.
But can you customise it for different error codes ? This is particularly handy when relying on server/browser authentication. It's nice to send users who get authentication errors to the signup/registration forms (certainly beats the current "Authorization Required" error page) and makes it more appealing to use server authentication as opposed to hacking together hotmail/yahoo-mail style forms and cookies for authentication purposes. chas
"panda@209.207.216.149" wrote:
But can you customise it for different error codes ?
This is particularly handy when relying on server/browser authentication. It's nice to send users who get authentication errors to the signup/registration forms
I thought this would work, but it doesn't. <dtml-if expr="error_type == 'Unauthorized'"> <h1>please sign up!</h1> <dtml-var signup_page> </dtml-if> Help? -- ~mindlace
From the default standard_error_message: For example, why does this code: <P> <STRONG>Error Type: <!--#var error_type--></STRONG><BR> <STRONG>Error Value: <!--#var error_value--></STRONG><BR> </P>
<HR NOSHADE> Generate this: </P> <P><STRONG>Resource not found</STRONG></P> Sorry, the requested Zope resource does not exist.<p>Check the URL and try again.<p> <!-- foobar GET --> <HR NOSHADE> What is error_type? a variable, a method, deep voodo? -- ~mindlace
participants (3)
-
Andy Pahne -
Ethan Fremen -
pandaļ¼ 209.207.216.149