[Zope3-Users] Overriding cssClass on all input widgets

Adam Groszer agroszer at gmail.com
Sat Aug 25 02:41:09 EDT 2007


Hello Greg,

You can do your own widgets where you just override the cssClass property,
then in an overrides.zcml you register them instead of the stock
widgets. See zope.app.form.browser/configure.zcml.
An alternative way could be to create a new zope skin and adapdt your css
according to what the widgets use.

Friday, August 24, 2007, 9:01:07 PM, you wrote:

> I'm trying to make a skin for my program, but am having trouble getting the
> input forms converted over.  I have a skin created by a graphic artist, my
> problem now is figuring out how to change the cssClass attribute for all my
> widgets.

> Currently my forms are registered like this:
>     <browser:page
>         for="zope.app.container.interfaces.IAdding"
>         name="ship.IncidentReport"
>         class=".incidentreport.IncidentReportAddForm"
>         permission="zope.View" />

> where .incidentreport.IncidentReportAddForm specifies the template for the
> form.  I plan to register all the forms like this.

> Any ideas as to how I can do this?
> Greg
> _______________________________________________
> Zope3-users mailing list
> Zope3-users at zope.org
> http://mail.zope.org/mailman/listinfo/zope3-users



-- 
Best regards,
 Adam                            mailto:agroszer at gmail.com



More information about the Zope3-users mailing list