Adding Layout Sub-Templates
This topic describes how to add layout sub-templates to the database.
The minimum requirements for adding a sub-template to the database closely mirror those for adding a regular template, although there are some slight, but important, differences. To add a sub-template to the database you must:
Name the layout sub-template.
Designate the template a sub-template.
Add a container to the sub-template.
Add HTML to the sub-template.
You cannot save the template until you have provided the minimum information.
Unlike a regular layout template, you must specifically designate the definition a sub-template type. After you initially save a regular or sub-template definition you cannot change the template type. That is, you cannot change a regular template to a sub-template, or vice versa.
As with a regular layout template, you must create a container for a sub-template before you can save the definition. However, you cannot create a main container for a sub-template. The regular template to which you attach a sub-template already has a main container defined, and there can be only one main container in a template.
Note: This topic describes the minimum steps and information to enter to add a layout sub-template to the PeopleSoft database.
To name and designate a layout sub-template:
Select
Click the Add Template tab.
In the Template Name field enter a name for the sub-template.
Click the Add button.
The Template Designer page appears.
Select the Sub Template box.
In the Description field, enter a short description for the sub-template.
In the Long Description field, enter a more lengthy description.
Proceed to the next section and add a container to the sub-template.
To add a container to a sub-template:
Navigate to the Template Designer – Containers page.
Select
and click the Containers tab.In the Container Class Name field, enter a class name for the container.
Note that the Main Container control is disabled. You cannot create a main container for a sub-template.
In the Comments box enter any comments about the container.
Proceed to the next section and add HTML to the sub-template.
To add a sub-template to the database you must enter some HTML in the HTML long edit box in the Template Designer – Viewer page.
This page is where you document information and details about the sub-template, so that other developers may understand the template contents and evaluate using it for their applications.
When you initially add a sub-template to the database you can add as little as opening and closing HTML tags in the HTML box. For example:
<html>
</html>
To add HTML for a layout sub-template:
Navigate to the Template Designer – Viewer page.
Select
and click the Viewer tab.In the HTML long edit box, enter some HTML related to your sub-template.
Click the Save button.