Issue with Alfresco ADF - Unwanted Display of Tags and Categories

cancel
Showing results for 
Search instead for 
Did you mean: 
ifsebyy
Member II

Issue with Alfresco ADF - Unwanted Display of Tags and Categories

Dear Support,

I am currently working on a project using the Alfresco Application Development Framework (ADF). I have encountered an issue where the adf-content-metadata-card component is displaying the “Tags” and “Categories” properties, even though I only want to display the “XYZ Content Model” property.

I have tried creating a custom preset in my app.config.json file to exclude the “Tags” and “Categories” properties, but they are still being displayed. Here is the preset I used:

"content-metadata": {
"presets": {
"custom-preset": [
{
"title": "XYZ Content Model",
"items": [
{
"aspect": "custom:XYZContentModelAspect",
"properties": ["custom:XYZContentModel"],
"exclude": ["cm:taggable", "cm:generalclassifiable"]
}
]
}
]
}
}

Here is how I used the preset in my adf-content-metadata-card component:

<adf-content-metadata-card 
  [node]="node"
  displayEmpty="true"
  [displayDefaultProperties]="false"
  preset="custom-preset">
</adf-content-metadata-card>

Despite this, the “Tags” and “Categories” properties are still being displayed. I would appreciate any assistance you could provide in resolving this issue.

Thank you

2 Replies
denys
Partner

Re: Issue with Alfresco ADF - Unwanted Display of Tags and Categories

just check the component docs and attributes... there are two separate properties like "displayTags" and "displayCategories" that you can set to false or true.

ifsebyy
Member II

Re: Issue with Alfresco ADF - Unwanted Display of Tags and Categories

below is correct? or could you provide a doc link please I am new to this. so it will be very helpful. could you provide an example? if I am doing 
 
[displayDefaultProperties]="true" 
or removing the main XYZ Content Model. I am receiving node aspect names as 
  1. aspectNames: Array(2)
    1. 0: "cm:versionable"
    2. 1: "cm:auditable"

Screenshot 2023-12-07 201720.png
  <adf-content-metadata-card 
        [node]="node"
        displayEmpty="true"
        [displayDefaultProperties]="false"
        displayTags="false"
        displayCategories="false">
      </adf-content-metadata-card>