Adding Items Using New Menu Editor
Follow these steps below for each link you want to configure:
Go to Settings->Configuration->Edit plugins
Insert the code snippet below to the editor box. Please refer to the Erply plugins API for full details.
Note the identifier ForecastingAppMenuItem. You will need this to use in the following section. You can choose any meaningful words to uniquely identify the the configured link.
You can add as many URLs and identifiers as needed by repeating the definitions inside the ready function callback.
Insert the following code snippet to the editor box. Please refer to the Erply plugins API for full details.
// ------------- region start - ForecastingApp iframe -------------
$(document).ready(function () {
let url = `https://analytics-api.erply.com/erply/session-login?sid=${apiSessionKey}&cc=${customerCode}&embed=true&redirect=true¶ms=style:erply,hidemenu:1,go:app`
ErplyJsApi.registerIFrameWindow('ForecastingAppMenuItem', url)
})
// ------------- region end -------------
Menu editor documentation https://wiki.erply.com/article/1076-new-menu
Add link using the menu editor
Enter the name you want to appear in the menu
For the URL use the following code snippet:
https://us.erply.com/{CLIENT_CODE}/?lang={LANG}§ion=plugin&IframeName=ForecastingAppMenuItem
Note the bold parts:
for us.erply.com use your Erply account domain
for ForecastingAppMenuItem use the identifier you configured in the plugins section.
If you added more than one identifier repeat the steps 1..3 above for each identifier.