08-25-2020 03:22 AM
Hello,
please can anyone help me with this?
I am looking for alternative for alfresco share custom buttons on the files and folders. I am create in app.extenstion.json new contextMenu button with this tutorial: https://alfresco-content-app.netlify.app/#/tutorials/dialog-actions but there is only way for show some dialog, not for call repo websript with actual nodeRef in parametr. How can I do that ?
I have custom contextMenu button in ACA appliacation and I need get nodeID from clicked folder or document.
import { ActivatedRoute, Params } from "@angular/router"; import { Component, OnInit } from "@angular/core"; @Component({ selector: "aca-my-extension-dialog", templateUrl: "./my-extension-dialog.component.html", styleUrls: ["./my-extension-dialog.component.scss"], }) export class MyExtensionDialogComponent implements OnInit { content: string = null; constructor(private route: ActivatedRoute) {} ngOnInit() { this.route.params.subscribe(({ nodeId }: Params) => { alert("node: " + nodeId); }); } }
09-04-2020 02:19 AM
09-04-2020 02:19 AM
09-08-2020 01:01 PM
Hi @wity
Thanks for posting the solution - really helpful to other users!
Thanks,
Explore our Alfresco products with the links below. Use labels to filter content by product module.