<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Setting property to read-only in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/setting-property-to-read-only/m-p/41011#M17194</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm having trouble setting one of my custom properties to read-only in the content app. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Based on this: &lt;A href="https://www.alfresco.com/abn/adf/docs/content-services/components/content-metadata-card.component/#making-aspects-and-properties-read-only" target="_blank" rel="noopener nofollow noreferrer"&gt;https://www.alfresco.com/abn/adf/docs/content-services/components/content-metadata-card.component/#making-aspects-and-properties-read-only&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I added the property to the config file:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;"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",&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;I didn’t change anything in the metadata-tab component:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;template: `
    &amp;lt;adf-content-metadata-card
      [readOnly]="!canUpdateNode"
      [preset]="'custom'"
      [node]="node"
      [displayAspect]="displayAspect$ | async"
    &amp;gt;
    &amp;lt;/adf-content-metadata-card&amp;gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;And yet, this property can be edited. What am I doing wrong?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Kind regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Jannik&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 15 Jul 2020 07:06:51 GMT</pubDate>
    <dc:creator>Jannik</dc:creator>
    <dc:date>2020-07-15T07:06:51Z</dc:date>
    <item>
      <title>Setting property to read-only</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/setting-property-to-read-only/m-p/41011#M17194</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm having trouble setting one of my custom properties to read-only in the content app. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Based on this: &lt;A href="https://www.alfresco.com/abn/adf/docs/content-services/components/content-metadata-card.component/#making-aspects-and-properties-read-only" target="_blank" rel="noopener nofollow noreferrer"&gt;https://www.alfresco.com/abn/adf/docs/content-services/components/content-metadata-card.component/#making-aspects-and-properties-read-only&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I added the property to the config file:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;"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",&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;I didn’t change anything in the metadata-tab component:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;template: `
    &amp;lt;adf-content-metadata-card
      [readOnly]="!canUpdateNode"
      [preset]="'custom'"
      [node]="node"
      [displayAspect]="displayAspect$ | async"
    &amp;gt;
    &amp;lt;/adf-content-metadata-card&amp;gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;And yet, this property can be edited. What am I doing wrong?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Kind regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Jannik&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2020 07:06:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/setting-property-to-read-only/m-p/41011#M17194</guid>
      <dc:creator>Jannik</dc:creator>
      <dc:date>2020-07-15T07:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: Setting property to read-only</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/setting-property-to-read-only/m-p/41012#M17195</link>
      <description>&lt;P&gt;Please note that the content app stores the metadata settings in the "content-metadata-presets" section of the "app.extensions.json", not "app.config.json" file.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2020 07:12:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/setting-property-to-read-only/m-p/41012#M17195</guid>
      <dc:creator>dvuika</dc:creator>
      <dc:date>2020-07-15T07:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: Setting property to read-only</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/setting-property-to-read-only/m-p/41013#M17196</link>
      <description>&lt;P&gt;Hi dvuika,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks for your quick reply.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;I tried the app.extensions.json file&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;"content-metadata-presets": [
      {
        "id": "app.content.metadata.custom",
        "custom": [
          {
            "id": "app.content.metadata.customSetting",
            "includeAll": true,
            "readOnlyProperties": ["uiVMb:orgaUnit"],
            "exclude": [
              "rn:renditioned",
              "cm:versionable",
              "cm:auditable",
              "cm:thumbnailModification",
              "cm:content",
              "cm:author",
              "cm:titled",
              "cm:generalclassifiable",
              "cm:taggable",&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;and it didn’t work as well. I’m using ADF 3.9.0, ACS 6.1.0.5. Any further suggestions?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2020 11:35:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/setting-property-to-read-only/m-p/41013#M17196</guid>
      <dc:creator>Jannik</dc:creator>
      <dc:date>2020-07-15T11:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: Setting property to read-only</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/setting-property-to-read-only/m-p/41014#M17197</link>
      <description>&lt;P&gt;I have the same problem with ACA latest version.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help with an advice.&lt;/P&gt;&lt;P&gt;Serge&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2022 14:41:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/setting-property-to-read-only/m-p/41014#M17197</guid>
      <dc:creator>fedorow</dc:creator>
      <dc:date>2022-08-11T14:41:50Z</dc:date>
    </item>
  </channel>
</rss>

