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
just check the component docs and attributes... there are two separate properties like "displayTags" and "displayCategories" that you can set to false or true.
[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>
Discussions, help and advice about the Alfresco Development Framework.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.