Create your widget as a global widget. Global widgets are automatically loaded for all pages; you do not need to add them explicitly to page layouts. Global widgets cannot include any user interface elements, so you should omit any display templates. The following shows an example of the files and directories in a global widget:
External Pricing/ ext.json widget/ external-pricing/ widget.json js/ external-pricing.js
To make the widget global, set the global
property in the widget.json
file to true
:
"global": true
For more information about the widget structure and the contents of the ext.json
and widget.json
files, see Developing Widgets.