Creating Portal Engine templates
Portal Engine templates can be used to build the content and design of the administration interface. Each template may be assigned to any number of UI elements.
Use the following process to create UI templates:
- Open the Administration interface application and switch to the Page templates tab.
- Select a category for the template under the UI templates section of the tree.
- Click New template.
- Type a name for the re-usable template into the Template display name field.
- Click Save.
- On the General tab, set the Template type to: UI page
- Click Save.
- Build the structure and content of the template:
- Edit the page layout on the Layout tab.
- Add web parts on the Design tab.
Developers can now select the new template when adding or editing UI elements:
- Open the Modules application.
- Edit your custom module.
- Switch to the User interface tab and select the appropriate UI element in the tree.
- On the General tab, make sure the element’s Type is: Page template
- Select your new Page template.
- Click Save.
The content of the administration interface page represented by the given UI element is now based on the template.
Managing page templates
To access the main management interface for all page templates in the system, navigate to Administration interface -> Page templates. The system organizes templates into categories. You can edit individual templates by selecting them in the category tree.
When editing templates, you can set the following page template properties on the General tab:
Page template property | Description |
Template display name | The name of the template displayed to users in the administration interface. |
Template code name | A unique identifier of the template. |
Category | Sets the category where the template is stored in the page template catalog. |
Template description | Here you can enter a description for the template. Displayed when selecting templates for UI elements. |
Thumbnail | Allows you to set the image that represents the template in the page template selection catalog. You can choose between two types of images:
|
Template type | The following types of page templates are available:
|
Editing the XML source of a template’s web parts
The system stores the content and configuration of web parts placed on page templates as XML data. If you cannot use the Design tab due to an error caused by an incorrectly configured web part, you can fix the issue on the Web parts tab of the given page template’s editing interface. The tab allows you to edit the XML source directly.
- You can modify the values of properties for all web parts on the template.
- You can remove web parts from the template by deleting entire <web part> elements.