-
Book Overview & Buying
-
Table Of Contents
Apache OfBiz Cookbook
Platform-specific widgets are used to specify HTML templates. Currently, the only HTML template type supported are FreeMarker templates. There are two types of FreeMarker templates supported: HTML and XSL Formatting Objects (or XSL-FO) templates with markup to generate PDFs.
HTML platform-specific templates can be specified by following these steps:
1. Open a Screen widget definition file.
2. Locate a screen definition within the Screen widget definition file.
3. Create a platform-specific element within the widgets element. If a widgets element does not exist, create one.
4. To add an HTML FreeMarker file, create an html element.
5. To specify a FreeMarker template with XSL-FO markup, add an xsl-fo element beneath the platform-specific element.
6. Close all elements with end tags.
7. Save and close the file.
8. Test as appropriate.
Platform-specific widgets point to FreeMarker template files. Since any widget may be located anywhere within...
Change the font size
Change margin width
Change background colour