QPR Knowledge Base 2014.1

A Custom Toolbar

A Custom Toolbar

Previous topic Next topic  

A Custom Toolbar

Previous topic Next topic JavaScript is required for the print function  

The default toolbar can be replaced with a custom toolbar. This is done e.g. in Web Layout "No Frames", where are two toolbars on top of each other: the default one, and a custom one with text links, in e.g. the Web Template "subpsdet.tpl", described in Appendix C, Diagram Details View. The custom toolbar is called also with the same Replace Tag: "<#Toolbar>", but with parameters. You can find the Web Template in directory C:\ProgramData\QPR Software\QPR 2014\2014.1\Clients\Templates\PGStatic\No Frames.

 

In the Web Template "subpsdet.tpl", on line 6 is the "<#Toolbar>" Replace Tag, and on line 10 is the same Replace Tag again, but with parameters that define the customization files that are used to construct the toolbar: "<#Toolbar template="subpsdet_menu.tpl" items="subpsdet_items.ini" separator="subpsdet_menu_separator.tpl">". This generates a toolbar by using "subpsdet_menu.tpl" as base, "subsdet_menu_separator.tpl" as toolbar item separator and items read from "subpsdet_items.ini".

 

Parameters of Toolbar Replace Tag

Parameter

Description

Template

The template file used to generate the toolbar. "ToolbarItems" contain the toolbar items generated configured by the "Separator"- and "Items"-parameters (see below).

Separator

The template file used to generate the separator string between toolbar items.

Items

A configuration file used to configure the items shown in the toolbar.


All other parameters will be forwarded to the generated views (both separator and template views), and can be accessed with the Include Replace Tag, described in chapter Include Replace Tag.