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); }); } }
Solved! Go to Solution.
Hi @wity
Thanks for posting the solution - really helpful to other users!
Thanks,
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.