QPR Knowledge Base

A Custom Toolbar

Hide Navigation Pane

A Custom Toolbar

Previous topic Next topic No expanding text in this topic  

A Custom Toolbar

Previous topic Next topic JavaScript is required for expanding text Mail us feedback on this topic!  

Comments (...)

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, Subprocess 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 <All Users profile>\Application Data\QPR Software\QPR 8\8.1\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




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


The template file used to generate the separator string between toolbar 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.

Comments (...)