mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-4341] Customise the property title into the InfoDrawer from configuration (#5556)
* [ADF-4341] Customise the property title into the InfoDrawer from configuration * * docs added * * removed unnecessary logic and docs updated
This commit is contained in:
@@ -212,6 +212,42 @@ A more complex config is shown in the example below:
|
||||
}
|
||||
```
|
||||
|
||||
#### Custom property title example
|
||||
|
||||
In layout oriented configuration, the metadata property title can be overridden from ADF as below.
|
||||
|
||||
```json
|
||||
{
|
||||
"name": "exif:pixelYDimension", // your desired property name
|
||||
"title": "Custom YDimension Name" // your desired property title
|
||||
}
|
||||
```
|
||||
|
||||
```json
|
||||
"content-metadata": {
|
||||
"presets": {
|
||||
"kittens": [
|
||||
{
|
||||
"title": "GROUP-TITLE1-TRANSLATION-KEY",
|
||||
"items": [
|
||||
{
|
||||
"aspect": "exif:exif",
|
||||
"properties": [
|
||||
"exif:pixelXDimension",
|
||||
{
|
||||
"title": "Custom YDimension Name",
|
||||
"name": "exif:pixelYDimension"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
Note: The desired property title should be valid. otherwise it will take default value.
|
||||
|
||||

|
||||
|
||||
The result of this config would be two accordion groups with the following properties:
|
||||
|
||||
| GROUP-TITLE1-TRANSLATION-KEY |
|
||||
|
Reference in New Issue
Block a user