Versions Compared

Key

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

...

The available actions are described in the actionAvailabled.json file located in the menu directory. It is an Array<Action> where each Action object has with the following structure :description :

Config Path

Default value

Description

$.menu.actionAvailabled

Code Block
languagejson
[
  {
    "id": "menu-action-search",

...


    "key": "sidebar.search.title",

...

 

...

 

...

 

...

 

...

"display": true,
    "icon": "fal fa-search",

...


    "to": {
      "name": "dam-explore",

...

 

...

 

...

    

...

"params": {
      }
    },
    "descriptionKey": "sidebar.search.description"

...


...

 

...

 

...

},

...

Config Path

Default value

Description

$.menu.actionAvailabled

Code Block
[
  {
    "id": "menu-action-searchupload",
    "key": "sidebarnav.search.titleupload",
    "display": true,
    "icon": "fal fa-cloud-searchupload",
    "to": {
      "name": "damimport-explorejobs",
      "params": {

      }
    },
    "descriptionKey": "sidebar.searchupload.description",
    "onlyForUserGroups": [
      4, 27
 },   ],
    "onlyIfAllFeaturesActive": ["upload"]
  }
]

Shortcut to asset search

Shortcut to asset import

Each Action object has the following structure :

Code Block
breakoutModewide
languagejson
{
    "id": "menu-action-

...

search",     unique identifier of your choice for the menu entry
    "key": "

...

sidebar.search.

...

title",  i18n localized key for 

...

action label
    "icon": "fal fa-

...

search",     

...

 

...

  font awesome icon (fa-s/l/r)
    "

...

to": 

...

{
      "

...

name": 

...

"dam-explore",        

...

the Vue route to follow 

...

on click
   

...

 

...

  

...

"

...

params": 

...

{
      

...

}

...

    

...

},
    "

...

descriptionKey": 

...

"

...

sidebar.search.description"  i18n localized description
  }

...

,

The previous example adds the asset search shortcut to the menu :

...

...

The list of available languages can be modified from the available-languages.json file located in the language directory. It is an Array<Lang> with the following description :

Config Path

Default value

Description

$.language.availableLanguages

Code Block
languagejson
[
  {
    "name": "fr",
    "id": 1
  },
  {
    "name": "en",
    "id": 2
  },
  {
    "name": "de",
    "id": 4
  }
]

An array of lang objects with 2 entries:

  • name: the ISO code

  • id

...