Angular back end UI
The Terra-Components and the Plugin Terra-Basic have been deprecated and will no longer be maintained. Although you can still work with them, we recommend using Material components instead. |
This page gives an introduction to back end UIs and its components.
First of all, some basics about Angular and its usage in plentymarkets:
-
All plentymarkets UIs are Angular UIs.
-
At the moment, we are using version 12.
-
Angular is a Javascript framework for creating web, desktop and mobile applications.
-
To develop Angular applications, you have to know Typescript, HTML and CSS.
-
Angular applications use components.
-
These components define different areas in the UI, where you can display static content or provide user inputs.
If you’re not familiar with Angular yet and want to find out more, refer to the Angular documentation.
Back end menu information
All information about the back end menu entries is saved in a ui.json
file. This file defines the entry points for the plugin. Views are then available at the respective menus.
The following example shows a basic ui.json
:
{
"defaultEntryPoint": "index.html",
"namespace": "MyPlugin",
"menuEntries": [
{
"label": "Settings",
"menu": "settings/orders/myplugin",
"urlKey": "basic-settings",
"entryPoint": "index.html?action=basic-settings"
},
{
"label": "Address settings",
"menu": "settings/orders/myplugin",
"urlKey": "address-settings",
"entryPoint": "index.html?action=address-settings"
},
{
"label": "Shipping settings",
"menu": "settings/orders/myplugin",
"urlKey": "shipping-settings",
"entryPoint": "index.html?action=shipping-settings"
}
]
}
Plugin menu entries
The following table lists the specific properties of your plugin’s menu entries.
Required All entries listed below are mandatory.
Property | Explanation |
---|---|
defaultEntryPoint |
The default entry point of your plugin |
namespace |
The namespace of your plugin |
menuEntries |
The menu entries of your plugin.
|
Integrating plugins into the back end
It is possible to seamlessly integrate your plugin into the plentymarkets back end. You can use entry points to add your plugin to the top navigation bar or routes to add it to the navigation tree of the Setup menu.
Menu entry points
Back end views can be integrated in the plentymarkets main menu. For a list of all menus that can be accessed by a plugin via entry points, refer to the Menu entry points page.
Routes in the system tree
The Terra system tree offers plugin developers the opportunity to register their plugin behind a route. In doing so, the plugin becomes accessible in the system tree like a regular part of Terra. For a list of all available routes that can be accessed by plugins, refer to the Routes in the system tree page. For instructions on how to register your plugin, refer to the back end UI guide.
Format for system tree path
Note that all routes need an introducing |
Plugin positioning
In addition to inserting plugins as desired in menus under Setup, it is also possible to determine their position depending on their route. If you use a route that’s not mentioned in the routes reference, a parent node is created with the specified name. It appears underneath the actual entry. In case there are several entries whose last part of the route is identical, they are inserted underneath this part of the route. Thus, only the position of the first entry is considered.