Hello,
I'm having trouble setting one of my custom properties to read-only in the content app.
Based on this: https://www.alfresco.com/abn/adf/docs/content-services/components/content-metadata-card.component/#making-aspects-and-properties-read-only
I added the property to the config file:
"content-metadata": {
"presets": {
"custom": [
{
"includeAll": true,
"readOnlyProperties": ["uiVMb:orgaUnit"],
"exclude": [
"rn:renditioned",
"cm:versionable",
"cm:auditable",
"cm:thumbnailModification",
"cm:content",
"cm:author",
"cm:titled",
"cm:generalclassifiable",
"cm:taggable",
"dp:restrictable",
"fm:commentsRollup",
"qshare:shared",
"exif:exif",
"cm:effectivity",
"cm:emailed",
"cm:likesRatingSchemeRollups",
"cm:lockable",
"cm:ownable"
]
},
{
"title": "APP.CONTENT_METADATA.EXIF_GROUP_TITLE",
"items": [
{
"aspect": "exif:exif",
"properties": [
"exif:pixelXDimension",
"exif:pixelYDimension",
"exif:dateTimeOriginal",I didn’t change anything in the metadata-tab component:
template: `
<adf-content-metadata-card
[readOnly]="!canUpdateNode"
[preset]="'custom'"
[node]="node"
[displayAspect]="displayAspect$ | async"
>
</adf-content-metadata-card>And yet, this property can be edited. What am I doing wrong?
Kind regards,
Jannik