Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Go to Administration > Configuration > General Settings > Advanced Configuration Options.

  2. Click the Add button to open the Add Option dialog.

  3. In the Name field, specify the name of the option. It has to be pfxExternalApp_customMenuItems.

  4. In the Value field, specify the definition of the link (see https://pricefx.atlassian.net/wiki/spaces/KB/pages/edit-v2/5566005287#Example-of-Custom-Menu-Items-JSON-Configuration below).

  5. Click Add to save changes and close the dialog.

Example of Custom Menu Items JSON

...

Definition

Code Block
languagejson
{
  "first": {
    "label": "First",
    "insertBefore": "dashboards",
    "items": {
      "item1": {
        "label": "item 1",
        "href": "https://organizations.enable.com/organization/pricefx-x-enable",
        "type": "enable"
      }
    }
  },
  "enable-rebates": {
    "label": "Enable Rebates",
    "insertAfter": "rebate-manager",
    "items": {
      "Dashboard": {
        "label": "Dashboard",
        "href": "https://dev-uk.deal-track.com/Client/pfx-int-dev-2/Sso/Saml2/SignIn?ReturnUrl=%2FClient%2Fpfx-int-dev-2%2FDashboard",
        "type": "enable"
      },
      "tradingPrograms": {
        "label": "Trading Programs",
        "href": "https://dev-uk.deal-track.com/Client/pfx-int-dev-2/Sso/Saml2/SignIn?ReturnUrl=%2FClient%2Fpfx-int-dev-2%2Ftrading-programs-list",
        "type": "enable",
        "allowedBusinessRoles": [
          "enable"
        ]
      },
      "programEarnings": {
        "label": "Program Earnings",
        "href": "https://dev-uk.deal-track.com/Client/pfx-int-dev-2/Sso/Saml2/SignIn?ReturnUrl=%2FClient%2Fpfx-int-dev-2%2FReports%2FDealEarnings",
        "type": "enable",
        "allowedBusinessRoles": [
          "enable"
        ]
      },
      "creditorsReport": {
        "label": "Finance - Creditors Report",
        "href": "https://dev-uk.deal-track.com/Client/pfx-int-dev-2/Sso/Saml2/SignIn?ReturnUrl=%2FClient%2Fpfx-int-dev-2%2FCash%2FCreditorsReport",
        "type": "enable",
        "allowedBusinessRoles": [
          "enable"
        ]
      }
    }
  },
  "second": {
    "label": "Second",
    "insertAfter": "enable-rebates",
    "items": {
      "item2": {
        "label": "Folder",
        "href": "https://organizations.enable.com/organization/pricefx-x-enable",
        "type": "enable",
        "items": {
          "subItem1": {
            "label": "Sub Item 1",
            "href": "https://organizations.enable.com/organization/pricefx-x-enable/subitem1",
            "type": "enable"
          }
        }
      }
    }
  }
}
Info

If the specified folder already exists, the item will be inserted into it, otherwise, a new folder will be created.

The JSON configuration of the menu items (above) is reflected in the Pricefx module menu:

...

Info

Root-level folders do not have permission sets. So, if a user does not have permission to view certain root-level folders but has access to a custom item within that root-level folder, they will only see the custom menu item in that folder.

Available Advanced Configuration Option Properties

...