12-06-2023 03:20 PM
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
12-06-2023 05:19 PM
just check the component docs and attributes... there are two separate properties like "displayTags" and "displayCategories" that you can set to false or true.
12-07-2023 09:40 AM
[displayDefaultProperties]="true"or removing the main XYZ Content Model. I am receiving node aspect names as
<adf-content-metadata-card [node]="node" displayEmpty="true" [displayDefaultProperties]="false" displayTags="false" displayCategories="false"> </adf-content-metadata-card>
Explore our Alfresco products with the links below. Use labels to filter content by product module.