[Zope] Templates
Dieter Maurer
dieter at handshake.de
Sun Nov 16 14:37:45 EST 2003
Jay Dorsey wrote at 2003-11-14 12:03 -0600:
> How can I find out what the name is of a template thats being used?
I assume you mean "Page Template" when you say "Template"?
In this case, "template" is the template, "template/id" its
id and "template/title" its title.
> I'm using a basic starter account at zettai.net and I've over-ridden
> the standard_error_template with my own. I created a form page that
> uses the :required attribute on the form names--when I submit the form
> without filling in one or more of the fields I get back a plain white
> error page with my hosts link/name on the bottom, and the message "No
> input for required field". For other types of errors my
> standard_error_template pops up as expected; I would like to use my
> template for this message as well. I'm assuming there is another
> template that I can over-ride.
These checks and conversions are done before traversal starts.
Therefore, the "standard_error_message" in Zope's "Root Folder" is
used. There is no way to use a different "standard_error_message"
for such errors.
You may look at "Formulator". It provides much better form
validation facilities than ZPublisher.
--
Dieter
More information about the Zope
mailing list