Menus - My Preferences Context

The mypreferences-context key defines the left-hand menu options for the My Preferences pages.

To populate the mypreferences-context section, your configuration snippet should look like this:

{
    "mypreferences-context": {
        "items": []
    ]
}

Default Configuration

The default UI configuration for the Platform my preferences pages looks a bit like this:

{
    "mypreferences-context": {
        "items": [{
            "key": "platform/mypreferences",
            "title": "My Preferences",
            "header": true,
            "items": [{
                "key": "platform/mypreferences/properties",
                "title": "Properties",
                "uri": "#/mypreferences",
                "iconClass": "fa fa-angle-right",
                "order": 100
            }]
        }]
    }
}

The default configuration for the Project management pages looks a bit like this:

{
    "mypreferences-context": {
        "items": [{
            "key": "project/mypreferences",
            "title": "My Preferences",
            "header": true,
            "items": [{
                "key": "project/mypreferences/properties",
                "title": "Properties",
                "uri": "#/projects/{projectId}/mypreferences",
                "iconClass": "fa fa-angle-right",
                "order": 100
            }]
        }]
    }
}

Example - Add a New Menu Item to the Manage Project pages

We can add a new menu option under the Project header by introducing a config block like this:

{
    "mypreferences-context": {
        "items": [{
            "key": "project/mypreferences",
            "items": [{
                "key": "custom/mypreferences/advanced",
                "title": "Advanced Preferences",
                "uri": "#/projects/{projectId}/mypreferences/advanced",
                "iconClass": "fa fa-someicon"
            }]
        }]
    }
}