Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customizing a widget from 2 different modules not working #1379

Closed
plus- opened this issue Jun 1, 2017 · 1 comment
Closed

Customizing a widget from 2 different modules not working #1379

plus- opened this issue Jun 1, 2017 · 1 comment

Comments

@plus-
Copy link

plus- commented Jun 1, 2017

More specifically the search result widget (https://dev.alfresco.com/resource/docs/aikau-jsdoc/AlfSearchResult.html)

I have the following code in 2 different modules:

in module 1:

var searchResultPage = widgetUtils.findObject(model.jsonModel.widgets, "id", "FCTSRCH_SEARCH_RESULT");

if(searchResultPage && searchResultPage.config) {
  searchResultPage.config.mergeActions = true;
  searchResultPage.config.additionalDocumentAndFolderActions = ["action1"];
}

and in module 2:

var searchResultPage = widgetUtils.findObject(model.jsonModel.widgets, "id", "FCTSRCH_SEARCH_RESULT");

if(searchResultPage && searchResultPage.config) {
  searchResultPage.config.mergeActions = true;
  searchResultPage.config.additionalDocumentAndFolderActions = ["action2"];
}

I will only ever see action1 as an additional action in the search result page. If I comment out the code from module 1 then action2 will be visible, which leads me to think they are mutually exclusive.

@plus- plus- closed this as completed Jun 5, 2017
@SanjayBandhniya
Copy link

Hi,
I have implemented above code but I am not able to see custom action.
can you help me to resolve issue?
Untitled

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants