<?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 Re: Hide custom property from detail in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/hide-custom-property-from-detail/m-p/40936#M17169</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/72361"&gt;@wity&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;As documented &lt;A href="https://www.alfresco.com/abn/adf/docs/content-services/components/content-metadata-card.component/#custom-property-title-example" target="_self" rel="nofollow noopener noreferrer"&gt;here,&lt;/A&gt; I'm not sure the syntax for the JSON configuration is correct.&lt;/P&gt;
&lt;P&gt;It should be something like:&lt;/P&gt;
&lt;PRE&gt; "content-metadata": {
    "presets": {
      "my-preset": [
        {
            "title": "This is my preset",
            "items": [
                {
                    "type": "FIELD",
                    "properties": "*"
                },&lt;BR /&gt;                {&lt;BR /&gt;                    "aspect": "st:siteContainer",&lt;BR /&gt;                    "properties": "*"&lt;BR /&gt;                } &lt;BR /&gt;            ]
        }
    ],
&lt;/PRE&gt;
&lt;P&gt;Not sure if this is the root cause, but for sure it can affect the result.&lt;/P&gt;
&lt;P&gt;I hope this will help you.&lt;/P&gt;</description>
    <pubDate>Thu, 30 Jul 2020 08:29:09 GMT</pubDate>
    <dc:creator>fcorti</dc:creator>
    <dc:date>2020-07-30T08:29:09Z</dc:date>
    <item>
      <title>Hide custom property from detail</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/hide-custom-property-from-detail/m-p/40933#M17166</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have custom document type and property in alfresco (repo) content-model.xml.&lt;/P&gt;&lt;PRE&gt;        &amp;lt;type name="digi:document"&amp;gt;
            &amp;lt;title&amp;gt;Digi dokument&amp;lt;/title&amp;gt;
            &amp;lt;parent&amp;gt;cm:content&amp;lt;/parent&amp;gt;
            &amp;lt;properties&amp;gt;
                &amp;lt;property name="digi:IdDokumentu"&amp;gt;
                    &amp;lt;title&amp;gt;Identifikační číslo&amp;lt;/title&amp;gt;
                    &amp;lt;type&amp;gt;d:text&amp;lt;/type&amp;gt;
                &amp;lt;/property&amp;gt;
            &amp;lt;/properties&amp;gt;
        &amp;lt;/type&amp;gt;&lt;/PRE&gt;&lt;P&gt;How can I hide this property from detail of document in Alfresco Content Application ? &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;)&amp;nbsp;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Snímek obrazovky 2020-07-08 v&amp;nbsp;14.03.42.png" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/82iDC8458695A0AA73E/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2020 12:12:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/hide-custom-property-from-detail/m-p/40933#M17166</guid>
      <dc:creator>wity</dc:creator>
      <dc:date>2020-07-08T12:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: Hide custom property from detail</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/hide-custom-property-from-detail/m-p/40934#M17167</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Check&amp;nbsp;&lt;A href="https://www.alfresco.com/abn/adf/docs/content-services/components/content-metadata-card.component/" target="_self" rel="nofollow noopener noreferrer"&gt;content-metadata-card-component&lt;/A&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;Here you can set which property you want to display.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2020 06:00:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/hide-custom-property-from-detail/m-p/40934#M17167</guid>
      <dc:creator>sp2</dc:creator>
      <dc:date>2020-07-21T06:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: Hide custom property from detail</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/hide-custom-property-from-detail/m-p/40935#M17168</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp; thank you very much for your help. Can you please give some other help ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;In my app.config.json a add my new "preset".&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt; "content-metadata": {
    "presets": {
      "my-preset": [
        {
            "title": "This is my preset",
            "items": [
                {
                    "type": "FIELD",
                    "aspect": "st:siteContainer",
                    "properties": ["*"]
                }
            ]
        }
    ],
      "custom": [
        {
          "includeAll": false,
          "exclude": [
            "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",
                "exif:exposureTime",
                "exif:fNumber",
                "exif:flash",
                "exif:focalLength",
                "exif:isoSpeedRatings",
                "exif:orientation",
                "exif:manufacturer",
                "exif:model",
                "exif:software"
              ]
            }
          ]
        },
        {
          "title": "APP.CONTENT_METADATA.EFFECTIVITY_GROUP_TITLE",
          "items": [
            {
              "aspect": "cm:effectivity",
              "properties": [
                "cm:from",
                "cm:to"
              ]
            }
          ]
        }
      ]
    }
  },&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;In metadata-tab.components.ts I use this my preset like this:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;&lt;STRONG&gt;import {
  Component,
  Input,
  ViewEncapsulation,
  OnInit,
  OnDestroy
} from '@angular/core';
import { MinimalNodeEntryEntity } from '@alfresco/js-api';
import {
  NodePermissionService,
  isLocked,
  AppExtensionService
} from '@alfresco/aca-shared';
import { AppStore, infoDrawerMetadataAspect } from '@alfresco/aca-shared/store';
import { AppConfigService, NotificationService } from '@alfresco/adf-core';
import { Observable, Subject } from 'rxjs';
import { Store } from '@ngrx/store';
import { ContentMetadataService } from '@alfresco/adf-content-services';
import { takeUntil } from 'rxjs/operators';

@Component({
  selector: 'app-metadata-tab',
  template: `
    &amp;lt;adf-content-metadata-card
      [preset]="'my-preset'"
      [node]="node"
      &amp;gt;
    &amp;lt;/adf-content-metadata-card&amp;gt;
  `,
  encapsulation: ViewEncapsulation.None,
  host: { class: 'app-metadata-tab' }
})
export class MetadataTabComponent implements OnInit, OnDestroy {
  protected onDestroy$ = new Subject&amp;lt;boolean&amp;gt;();

  @Input()
  node: MinimalNodeEntryEntity;

  displayAspect$: Observable&amp;lt;string&amp;gt;;

  constructor(
    private permission: NodePermissionService,
    protected extensions: AppExtensionService,
    private appConfig: AppConfigService,
    private store: Store&amp;lt;AppStore&amp;gt;,
    private notificationService: NotificationService,
    private contentMetadataService: ContentMetadataService
  ) {
    if (this.extensions.contentMetadata) {
      this.appConfig.config[
        'content-metadata'
      ] = this.extensions.contentMetadata;
    }
    this.displayAspect$ = this.store.select(infoDrawerMetadataAspect);
  }

  get canUpdateNode(): boolean {
    if (this.node &amp;amp;&amp;amp; !isLocked({ entry: this.node })) {
      return this.permission.check(this.node, ['update']);
    }

    return false;
  }

  ngOnInit() {
    this.contentMetadataService.error
      .pipe(takeUntil(this.onDestroy$))
      .subscribe((err: { message: string }) =&amp;gt; {
        this.notificationService.showError(err.message);
      });
  }

  ngOnDestroy() {
    this.onDestroy$.next(true);
    this.onDestroy$.complete();
  }
}&lt;/STRONG&gt;&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;But there is no changes &lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Snímek obrazovky 2020-07-28 v&amp;nbsp;16.36.02.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/80i8A97AE3A157CA5AB/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2020 14:37:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/hide-custom-property-from-detail/m-p/40935#M17168</guid>
      <dc:creator>wity</dc:creator>
      <dc:date>2020-07-28T14:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: Hide custom property from detail</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/hide-custom-property-from-detail/m-p/40936#M17169</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/72361"&gt;@wity&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;As documented &lt;A href="https://www.alfresco.com/abn/adf/docs/content-services/components/content-metadata-card.component/#custom-property-title-example" target="_self" rel="nofollow noopener noreferrer"&gt;here,&lt;/A&gt; I'm not sure the syntax for the JSON configuration is correct.&lt;/P&gt;
&lt;P&gt;It should be something like:&lt;/P&gt;
&lt;PRE&gt; "content-metadata": {
    "presets": {
      "my-preset": [
        {
            "title": "This is my preset",
            "items": [
                {
                    "type": "FIELD",
                    "properties": "*"
                },&lt;BR /&gt;                {&lt;BR /&gt;                    "aspect": "st:siteContainer",&lt;BR /&gt;                    "properties": "*"&lt;BR /&gt;                } &lt;BR /&gt;            ]
        }
    ],
&lt;/PRE&gt;
&lt;P&gt;Not sure if this is the root cause, but for sure it can affect the result.&lt;/P&gt;
&lt;P&gt;I hope this will help you.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jul 2020 08:29:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/hide-custom-property-from-detail/m-p/40936#M17169</guid>
      <dc:creator>fcorti</dc:creator>
      <dc:date>2020-07-30T08:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: Hide custom property from detail</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/hide-custom-property-from-detail/m-p/40937#M17170</link>
      <description>&lt;P&gt;I have facet similar problem. create a custom preset on app.config.json dit not worked for. The solution was to create it on app.extension.json as a new object on array&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;"content-metadata-presets"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;BR /&gt;{&lt;BR /&gt;"id": "app.content.metadata.custom",&lt;BR /&gt;"custom": ...&lt;BR /&gt;},&lt;BR /&gt; {
        "id": "my.content.metadata.custom",
        "my-preset": [{
          "id": "est.content.metadata.document",
          "title": "Some title",
          "items": [{
              "editable": false,
              "id": "app.content.metadata.effectivityAspect",
              "aspect": "cm:versionable",
              "properties": ["cm:versionLabel"]
            }
          ]
        }]
      }&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 31 Aug 2020 14:02:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/hide-custom-property-from-detail/m-p/40937#M17170</guid>
      <dc:creator>oviwonkenovi</dc:creator>
      <dc:date>2020-08-31T14:02:27Z</dc:date>
    </item>
  </channel>
</rss>

