[Zope3-dev] Re: How to add objects?

Peter Mayne PeterMayne at ap.spherion.com
Sun Nov 7 18:39:14 EST 2004


Florian Lindner wrote:
> Philipp von Weitershausen schrieb:
> 
> So I try to register a addform for the centershock layer:
> 
> <addform
>   for="..interfaces.IEvent"
>   name="addEvent.html"
>   permission="zope.Public"
>   schema="..interfaces.IEventFolder"
>   content_factory="..event.Event"
>   layer="centershock" />
> 
>>> But I want to design the form myself using my own skin.
>>
>> There's nothing that prevents you from doing that. Views are by 
>> default registered for the "default" layer, a layer that should be 
>> available for all skins. Thus, in your custom skin the very same add 
>> form can look very different, just like all other views can look very 
>> different.  In short, the add form produces HTML which shouldn't 
>> determine the layout of the page.
> 
> I still don't understand how to customize the addform. I think if you 
> would give some examples this would greatly help me.

I'd also like to see some examples. For instance, the default addform 
displays errors next to the input fields when the input data doesn't 
validate. How do I do that in my custom form?

PJDM
-- 
Peter Mayne
Spherion Technology Solutions
Canberra, ACT, Australia
"I'm after rebellion, I'll settle for lies" - Blue Oyster Cult



More information about the Zope3-dev mailing list