Page Templates

Top  Previous  Next

A page can be created based on another page. Using a page as the template helps the developer to design the common parts of the pages only once and reuse it.

The elements and their properties inherited from a template page can be changed on its descendent pages.

If a template page is modified, the changes will automatically be reflected to its all descendent pages.

There are two methods in using templates:

1. Using the parent page as the template

To activate/deactivate this method use site_template_icon option on the Templates Toolbar. When this method is active, a new page automatically takes its parent page as the template. If the new page is created right under the site, the Site Template becomes the template of the page.

Site_template_icon_on_explorer---

 

2. Using the selected page as the template

To activate/deactivate this method use toggle_use_of_template_icon option on the Templates Toolbar.

With this method, any page in the project can be selected as the template.

Right click a page icon on the Project Explorer and choose Select as Template from the context menu. The page is denoted as the Current Template in the Templates Toolbar.

When the Use Selected Template toggle_use_of_template_icon option is checked, every new page will be based on the selected template. Uncheck this option to create a blank page. The current template can be removed by clicking the Remove Template button clear_active_template_icon on the toolbar.