Template sidebar

This sidebar provides access to template files located in the Workbench User Home ~templates folder as well as to templates stored in modules located in the SysHome !modules folder.

If not already visible in Workbench, display the sidebar by clicking Window > sidebars > Template, as shown here.

In the sidebar, the pull-down list switches the view between the ~templates and !modules folders. When the !modules folder is selected, click to expand any module to see the template files contained within.

Figure 1. Template sidebar


Double-click on a template file to open it in the Template view. When you open a file in the templates folder you can proceed to make changes and save the file. Optionally, you can create a new variation of an existing template by clicking Save As in the view to save it with a new name.

Note: Any template stored in a module is a read-only file which you cannot edit. When you open a template in a module, you will see “ReadOnly” in the top left corner of the Template view. To make changes you must first click Save As and save the template with a different filename in the Workbench User Home ~templates folder.

Find Usage option

In Niagara, the Template Sidebar has an added Find Usage option on the right-click menu. This menu option invokes the Subtemplate Usage window (as shown) which provides a list of parent templates that contain this template. Finding usage is helpful if you have modified a template by adding Inputs, Outputs, or Relations. You should review its usage in the other templates as you will likely need to resolve these new additions within any parent template.

Figure 2. Find Usage menu option invokes Subtemplate Usage window