-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
Plone 3 Products Development Cookbook
Although ArchGenXML builds all the necessary boilerplate to create Plone Archetypes-based content types, there are some pieces of code that we can't specify anywhere in a UML model. Fortunately, we can modify the automatically generated code in different places so that ArchGenXML won't overwrite it in future builds.
Typical examples of code customization are setting the order of the widgets in the edition form and defining the body of complicated methods.
Every time we customize ArchGenXML-generated code, we must do it inside the special comment blocks placed everywhere in the source files like the following:
##code-section class-header #fill in your manual code here ##/code-section class-header ##code-section module-footer #fill in your manual code here ##/code-section module-footer
Notice the
#fill in your manual code here
legend.
We will first define the order for the widgets when displayed in standard edit form and view page.
Go...
Change the font size
Change margin width
Change background colour