Default Behaviour(s) : Header is composed of :
|
Default Behaviour(s) : Header is composed of :
|
Default Behaviour(s) : Header is composed of :
|
Go to administration interface DAM Branding
There are no conditions for the query to display in the dam page. It will always show.
On the home page however, the query is not visible.
Here is an overview:
Config path | Default value | Description |
---|---|---|
Translation i18n key: | I'm looking for |
By default, there are 2 cursors already configured : “All assets” and “All videos“. It also possible to add personalized cursors.
Here is it’s overview of the default cursors:
Config path | Default value | Description | |
---|---|---|---|
Translation i18n key:
| All assets | ||
Translation i18n key:
| All videos | ||
|
| Describes how the cursor “All assets” will work: as the | |
|
| Describes how the cursor “All videos” will filter the assets: will display all assets where the | |
| "allAssets" | Defines the default cursor, the one that is shown when going to the dam explorer page. |
When adding a new cursor, there are a few steps to take.
First, we’ll have to add it to $.dam.contexts.json
. Here is an example with a cursor called “allProducts”:
[ { "cursor":"allAssets", "disableResourceSubFilter": true }, { "cursor": "allVideos", "disableResourceSubFilter": true }, { "cursor": "allProduct", "disableResourceSubFilter": true } ] |
Then we have to create a file in $.common.cursors.<cursor-name-in-kebab-case>.json
. In our example, we’ll have : $.common.cursors.all-product.json
We have to fill in the file with the basic information and the specific query:
{ "path": "dam/asset", "max": 60, "orderby": "created desc", "limit": 20, "withRights": true, "maxchildren": 6, "sortByRelevanceIfFulltext": true, "i18nQuery": true, "cacheDuration": "20000", "haveAssetNature": true, "staticQuery": { "and": [ {"width":{"eq":3450}}, {"height":{"eq":5175}} ] } } |
Here, we ask that the cursor displays all assets that have a width of 3450px and a height of 5175px.
Finally, don’t forget to add the translation key in the appropriate plugin. It has to be as follow:
global.schemaNames.<nameOfCursor>.cursor
In our example, the translation key would be: global.schemaNames.allProducts.cursor
.
It is also possible to configure the filter bar. If we don’t do it, the default one will be applied (from $dam.explore.filters.default-cursor-config.default-resource-config.json
).
It is also possible to add separators to space out cursors. To do so, add null
between each object of a cursor in the $.dam.contexts.json
, like so:
[ [...] { "cursor": "allVideos", "disableResourceSubFilter": true }, null, { "cursor": "allVideos", "disableResourceSubFilter": true } ] |
Here is an overview of what a separator would look like:
![]() | ![]() |
without separators | with separators |
We can disable the visiblity of the cursors in the dam explorer page by setting to false the $.dam.behaviors.display-contexts-filter.json
.
The upload icon depends on several parameters :
an upload feature,
if there are roles affected or not,
and the user has to be connected;
Here is an overview of those parameters :
Config path | Default value | Description | |
---|---|---|---|
Translation i18n key: | Upload assets | ||
| true | To hide the upload icon, set the value to | |
| - | By default, no roles are created and so the upload is available. If roles are created, the app will check that the user belongs in one of those role IDs. Example of role configuration file:
|
The board icon depends on only one parameter: a board feature.
Here’s it’s overview:
Config path | Default value | Description |
---|---|---|
Translation i18n key: | My boards | This translation key is used when the user is connected |
Translation i18n key:
| Boards | This translation key is used when the user is not connected |
|
| To hide the boards icon, set the setting |