Hello,
I hope this message finds you well.
I am currently experiencing an issue with the custom context menu in Nextcloud.
Specifically, the custom context menu items do not appear when I right-click on files or folders.
I have followed the necessary steps to implement the custom context menu as per the documentation,
but it seems that the menu is not showing up as expected.
Here are some details about my setup:
-
Nextcloud version: Nextcloud Hub 9 (30.0.0)
-
Steps taken:
(function(OCA) {
'use strict';
OCA.Files = OCA.Files || {};
function addCustomMenuItem() {
OCA.Files.fileActions.registerAction({
name: 'myCustomAction',
displayName: 'My Custom Action',
mime: 'all',
permissions: OC.PERMISSION_READ,
icon: OC.imagePath('core', 'actions/info'),
actionHandler: function(fileName, context) {
var fileInfo = context.fileInfoModel.getFullPath();
OC.dialogs.info('Selected file: ' + fileInfo, 'My Custom Action');
}
});
}
addCustomMenuItem();
})(OCA);
I would appreciate any guidance or suggestions on how to resolve this issue.
Thank you for your assistance!
Best regards,