Design
Line layout | Column layout |
List layout | Square layout |
Small Square | Table |
Default Configuration
Default Behaviour(s) :
#00 : Display modes component is used in two different pages :
Search results page
on the main page
with each cursor
Boards page
on the main page
when looking at assets in a board
#02 : On the search page, 4 of the 6 display modes are displayed on the main page as well as within each cursor:
Line layout
Column layout
List layout
Square layout
#03 : On the boards page, 2 of the 6 display modes are displayed on the main page:
Line layout
Square layout
Whereas looking at assets in a board, 4 of the 6 display modes are displayed:
Line layout
Column layout
List layout
Square layout
#04 : The default layout selected is mostly the Square Layout except when looking at assets in a board where the default layout will be the Column Layout.
#05 : 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
#06 : 2 additionnal modes are available, but not displayed 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 a display mode for a cursor
To hide the display mode for a cursor, you just have to change it’s configuration $.dam.explore.layouts.<cursorname>.default-resource-config.hide-layout.json
to true
. Here are some example with the default cursor (“all assets”) and the “all videos” cursor:
src/wedia-plugin-template/res/v0/dam/explore/layouts/all-videos/default-resource-config/hide-layout.json true
or
src/wedia-plugin-template/res/v0/dam/explore/layouts/default-cursor-config/default-resource-config/hide-layout.json true
and
src/wedia-plugin-template/res/v0/board/boards-view/layout/hide-layout.json true
Configuring default display mode for a cursor
<cursor-name>
can be replaced with default-cursor-config
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: | List layout | tooltip |
Translation i18n key: | Square layout | tooltip |
| [ | Configures “All assets” cursor Each object represents an icon that will be displayed in the selection of layouts. |
| "square" | Configures “All assets” cursor Defines the default layout that will be used. |
| 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 |
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 |
$.board.explore.layout.available.json | { "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 |
$.common.named-displays.asset-table-row.preview.json | { | Add this code in the config path to display the Table layout when looking at assets in a board |
$.common.named-displays.asset-table-row.row.json | [ | Add this code in the config path to display the Table layout when looking at assets in a board |