cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with Alfresco ADF - Unwanted Display of Tags and Categories

ifsebyy
Champ in-the-making
Champ in-the-making

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 2

denys
Confirmed Champ
Confirmed Champ

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
Champ in-the-making
Champ in-the-making
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"

image
  <adf-content-metadata-card 
        [node]="node"
        displayEmpty="true"
        [displayDefaultProperties]="false"
        displayTags="false"
        displayCategories="false">
      </adf-content-metadata-card>
Getting started

Explore our Alfresco products with the links below. Use labels to filter content by product module.