Table of Contents |
---|
Design
...
Line layout | Column layout |
List layout | Square layout |
Small Square | Table |
Block |
Default Configuration
...
Default Behaviour(s) :
...
How it works
General
Display modes component is used in
...
three different pages of the DAM :
...
On the search results page for each cursors
...
On the
...
board page
...
with each cursor
...
Boards page
on the main page
when looking at assets in a board
...
On the board’s detail page, when displaying assets of a board
The last display mode viewed by the user will be used for his next connection.
On the search page
...
4 of the
...
7 display modes are displayed on the main page as well as within each cursor:
Line layout
Column layout
...
Block layout
Square layout
...
The default layout is the Square Layout.
On the boards page
...
2 of the
...
7 display modes are displayed
...
:
Line layout
Square layout
The default layout
...
is the Square Layout.
On the board’s detail page, when displaying assets of a board
4 of the
...
7 display modes are displayed :
Line layout
Column layout
...
Block layout
Square layout
...
The default layout
...
is
...
the
...
Column Layout.
List layout metadata
...
For the List layout the metadata displayed on each tile are :
On the search results main page and the cursors:
Name
Caption
Keywords
When looking at assets in a board:
Name
Photograph
Caption
...
Block layout
The block layout has specific behaviour, mostly with metadata like keywords. If used in a badge format, 2 properties are mandatory so the visual effect is clean.
For the Block layout the metadata displayed on each tile are the same for the search results page and on the board’s detail page (when displaying assets of a board) :
Name (on 1 line)
Description (on 2 lines)
Asset type (on 1 line)
Photograph (on 1 line)
Expiration date (on 1 line)
Info |
---|
Since Starter-Kit 2023.3, it is now possible to configure the metadata shown in the Block layout via the DAM Configuration page. For more information, see this page, section “Metadata displayed on the block display mode”. |
Additional modes
2 additional modes can be configured (not activated by default) :
Small square : No metadata overlay can be displayed on the tiles in that mode. The only action available is selection. Can be setup at the JSON configuration level.
Table : The metadata displayed as columns can be setup at the JSON configuration level.
Advanced Configuration
Activating/deactivating
...
every display mode for a cursor
To hide the display
...
modes for a cursor, you just have to change it’s configuration in the config path $.dam.explore.layouts.
...
<cursorName>.defaultResourceConfig.hideLayout.json
to true
.
...
Code Block |
---|
src/wedia-plugin-template/res/v0/dam/explore/layouts/all-videos/default-resource-config/hide-layout.json
true |
or
Code Block |
---|
src/wedia-plugin-template/res/v0/dam/explore/layouts/default-cursor-config/default-resource-config/hide-layout.json
true |
and
...
<cursorName>
can be replaced with defaultCursorConfig
for the default cursor display or all-videos
for the "All videos" cursor.
Activating/deactivating every display mode for the main Board page
To hide the display modes for the main board page, you just have to change it’s configuration in the config path $.board.boardsView.layout.hideLayout.json
to true
.
Activating/deactivating every display mode when looking at assets in a board
To hide the display modes for the main board page, you just have to change it’s configuration in the config path $.board.explore.layout.hideLayout.json
to true
.
Configuring default display mode for a cursor
<cursorName>
can be replaced with defaultCursorConfig
for the default cursor display or all-videos
for the "All videos" cursor.
Config path | Default value | Description |
---|---|---|
Translation i18n key: | Line layout | tooltip |
Translation i18n key: | Column layout | tooltip |
Translation i18n key: |
...
|
...
Square layout | tooltip |
Translation i18n key: |
...
|
...
Block layout | tooltip |
|
...
|
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
Configures “All assets” cursor
In this configuration file, each object represents a layout that will be displayed in the |
...
display mode. |
|
...
| "square" |
...
Defines the default layout that will be |
...
selected |
|
...
| true |
Configures “All assets” cursor
By default, hides the label: |
...
To show the label, put this value to |
...
|
...
| false |
Configures “All assets” cursor
By default, will show the display mode: |
...
If this value is set to |
Configuring metadata displayed in the list layout of the dam explorer
This is an example of the default display of an asset in the dam explore page, when the layout is selected as list:
This is it’s configuration:
Config path | Default value | Description | ||
---|---|---|---|---|
|
| The
If we still want to display a field even if it’s empty, set The When set to true, the keywords will display as a button-like way. If set to false, the keywords will display as a simple text. | ||
|
| |||
|
| |||
|
|
For example : modifying the file src/wedia-plugin-template/res/_portal/common/named-displays/asset-tile.json
With :
Code Block |
---|
{
"preview": {
"namedVariation": "big"
},
"title": [
{
"field": "name",
"withoutLabel": true
}
],
"infos": [
{
"field": "duration",
"withoutLabel": true,
"component": "CwDuration",
"config": [
{
"requirements": ["shouldBePositive"]
}
]
},
+ { // afficher le type de media (JPG...)
+ "withoutLabel": true,
+ "field": "assetnature",
+ "badge": true,
+ "class": "badge bg-secondary mr-2"
+ },
+ { // afficher la date de fin de droits
+ "withoutLabel": true,
+ "field": "dteendrights",
+ },
]
} |
Will display :
...
Configuration for boards
The following configuration is for the main page of the boards.
Config path | Default value | Description | ||
---|---|---|---|---|
Translation i18n key: | List layout | |||
Translation i18n key: | Square layout | |||
|
| Here is determined which layout display will be shown. | ||
| "square" | Default layout that will be selected unless the user has already selected a layout at least once. | ||
| false | |||
| "board" |
Configuring metadata displayed in the list layout of the boards page
Config path | Default value | Description | ||
---|---|---|---|---|
| Photo by | |||
|
| |||
|
| |||
|
| |||
|
| |||
|
| |||
|
|
Configuring metadata displayed in the block layout of the dam explorer
Info |
---|
Since Starter-Kit 2023.3, it is now possible to configure the metadata shown in the Block layout via the DAM Configuration page. For more information, see this page, section “Metadata displayed on the block display mode”. |
This is an example of the default display of an asset in the dam explore page, when the layout is selected as block:
This is it’s configuration:
Config path | Default value | Description | ||
---|---|---|---|---|
|
|
If the text is not long enough, blank lines will be shown. Otherwise the text will be cut with an ellipsis: In the block layout, the
If you increase or decrease the | ||
Configuration for other non-default layouts
Config path | Default value | Description |
---|---|---|
|
...
| { "key": "squareSmall", "i18n": "layout.squareSmall", "class": "fal fa-grip-horizontal" } | Add this code in the config path to display the Small square in the searsh result page |
| { "key": "table", "i18n": "layout.table", "class": "fal fa-table" } | Add this code in the config path to display the Table layout when looking at assets in a board |
|
...
| { |
...
|
...
| [ |
...
This configuration allows to set the metadata in the columns and the size of them in the table layout. |