Alfresco Angular components ( Documentation -> https://alfresco.github.io/adf-component-catalog )
I am playing with Alfresco Content Application. I am wondering how to add a new entry in side navigation. I follow the intruction in https://alfresco-content-app.netlify.app/#/getting-started/navigation where I created a new component. According to the doc, I have also to add the link entry in app.config.json like
{
...,
"navigation": [
"main": [ ... ],
"secondary": [ ... ],
"custom": [
{
"icon": "work",
"label": "Link",
"title": "My custom link",
"route": {
"url": "/test-page"
}
}
]
]
}
But somehow the new entry is still not displayed in side navigation, what could be wrong?
is the ACA documentation still up to date? because I don't see the "navigation" in app.config.json.
I also don't quite understand what to write in "main": [ ... ] and "secondary": [ ... ], can I just remove it?
I am trying now to add a new item in app.extensions-json, but it doesn't work. Here is the code:
"create": [
{
"id": "app.task-create",
"order": 50,
"icon": "",
"title": "Create Task",
"description": "Create Task",
"actions": {
"type": "NAVIGATE_URL",
"payload": "/task-create"
}
},
...
I though if I click it, it will go to the link "/task-create", but it doesn't do anything
Hi @DenysVuika , actually I tried it also with "click" like following:
"create": [
{
"id": "app.task-create",
"order": 5
"icon": "",
"title": "Create Task",
"description": "Create Task",
"actions": {
"click": "/task-create"
}
},
But it doesn't work (with ''/task-create' or just 'task-create').
I tried using "type": "NAVIGATE_URL", and "payload": "/task-create" because I followed the
documentation about Actions: https://alfresco-content-app.netlify.app/#/extending/actions.
What it works in my case is I put the new item not under "create" but under "navbar" as follow:
"navbar": [
{
"id": "app.navbar.primary",
"items": [
{
"id": "app.task-create",
"order": 75,
"icon": "folder",
"title": "Create Task",
"description": "Create a new Task",
"route": "task-create"
},
...
But, I would like to have the task-create also under "create". Thanks
Can someone please help on this query
Hi All,
I have a question about the multi line text field in APS. Namely, when the APS form is rendered in ADF, in older versions of ADF (3.x), the rows property of the text area would initially be set to 1 (rows="1"), and the field would add additional row as needed, when the user types. In ADF 4.1, the behavior remains the same, but the rows property is initially set to 3 (rows="3"). Is there a way to set the rows property to 1, so the field does not appear with 3 empty rows when there is no text entered?
@DenysVuika Hello again, there is one more pretty nice bug.
From version 3.9 for adf/core/content-services etc npm packages, it is happening.
The problem is displayed file size when editing FOLDER name/properties.
Prior to the 3.9.0 version of ADF libraries, everything worked fine. (so 3.8.0 and below). filesize-cell.component.ts is used to display the size of a file or folder. For the file, it displayed some numbers, for the folder it was empty which is fine. When you want to edit the folder name it will still after the update remain empty.
From 3.9.0 when you update folder name, file size column will get some text displayed "NaN CORE". And it is still in 4.2.0 version.
WHERE IS THE PROBLEM:
file-size.pipe.ts which is setting the display value gets '' as a value to work with for the folders instead of undefined or null. On update name/propties of the folder in DataTableCellComponent (in datatable-cell.component.ts file) in updateValue method function is called and resolves file size value of folder to '', which latter calls this file-size.pipe.ts.
In previous versions (3.8.0 and below) updateValue() was not called. Why? Because ngOnInit of DataTableCellComponent where it should be call throws exception when getting property "content.sizeInBytes" of node, because in payload folder nodes doesn't have even content property. This is fixed in 3.9.0 to get the actual property. But then updateValue is called which will call file-size.pipe with value ''. And that case is not handled there. And that's why we get display text of file size for folder "NaN CORE".