i have try many code with AlfMenuItemMixin without succes. I cannot get display, alle menu is display without this entry :
if (headerMenu != null) {
logger.log("find HEADER_APP_MENU_BAR");
headerMenu.config.widgets.push({
id: "HEADER_ACTION_LINK",
name: "alfresco/menus/AlfMenuBarPopup",
config: {
id: "HEADER_ACTION_LINK",
label: "header.menu.actions.label",
widgets :[
{
id: "HEADER_ACTION_inline-editable_BUTTON",
name: "alfresco/menus/AlfMenuItemMixin",
config:
{
id: "HEADER_ACTION_inline-editable_BUTTON",
label: "header.item.inline-editable",
iconClass: "delete-16",
propertyToRender: "title",
altText: "??",
publishTopic: "ALF_CRUD_POST",
publishPayloadType: "PROCESS",
publishPayload: {
requiresConfirmation: true,
url: "share/proxy/alfresco/api/actionQueue",
confirmationTitle: "Launch action",
confirmationPrompt: "Are you sure you want to launch '{title}'?",
successMessage: "Successfully launch '{title}'"
},
publishPayloadModifiers: ["processCurrentItemTokens", "convertNodeRefToUrl"]
....
Have you an idea of my error?
I did not say to literally use "alfresco/menus/AlfMenuItemMixin". The "alfresco/header/AlfMenuItem" you used initially is an extension of "alfresco/menus/AlfMenuItemMixin" and as such supports publishing events. So, simply use "alfresco/header/AlfMenuItem" and configure that with the publish topic etc.
Note that "propertyToRender" is inapplicable to any element in a menu. You also cannot expect "processCurrentItemTokens" to work, because the header menu does not have a "currentItem" state variable.
I can only advise to work through the Aikau tutorial and to use the JSDoc of the modules to better understand them.
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
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.