Portlet Factory, Version 6.1.2
Fitting constructs together
The critical part of building your own template is understanding how the constructs fit together. You have to specify the different elements so that, when they are fitted together, they will result in valid HTML. There are two features that make this process easier:
- Inner constructs can be created in place, that is, inside the elements where they will eventually be placed by the Page Automation engine. The rule is that any container element will be emptied before it is used.
- You can add text in the places where text will eventually go in the finished page, so that you can see, in the template page, what it will look like.
Fitting constructs together mirrors the rules that apply to building well-formed HTML. An important consideration when fitting constructs together is that all examples of the constructs that might go in a particular container must be built with HTML that will fit correctly. For example, if you make your DisplayPageWrapper such that the PageContentsContainer within it is a <TABLE> tag, then the constructs TableWrapper and DisplayGroupWrapper should start with a <TR> tag, or, perhaps, with a <SPAN> that contains <TR> tags. You can make several different versions of the TableWrapper tag, with different qualifiers, but they all should be crafted to fit within all versions of the DisplayPageWrapper and the DataEntryPageWrapper constructs.
Parent topic: Auto-generated HTML template structure and constructs
Library | Support |