cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot add my custom Aikau widget in the Share

jeeva
Champ in-the-making
Champ in-the-making

I am getting below error, when i searched,

cosole error:

 messageArgs: ["The following error occurred creating a widget",{},{"widgets":[{"name":"example\/search\/newAlfSearchResult"}],"currentData":{"numberFound":1,"totalRecords":1,"startIndex":0,"spellcheck":{"searchRequest":"fruit",....,"mimetype":"image\/jpeg"}}]

This is my example-faceted-search.get.js

widgets: [
{
id: "FCTSRCH_SEARCH_RESULT_Exp",
name: "example/search/newAlfSearchResult",
config: {
enableContextMenu: true,
showSelector: true
}
}
]

This extension.xml

<extension>
<modules>
<module>
<id>Search Page</id>
<auto-deploy>true</auto-deploy>
<evaluator type="default.extensibility.evaluator"/>
<customizations>
<customization>
<targetPackageRoot>org.alfresco.share.pages.example-faceted-search</targetPackageRoot>
<sourcePackageRoot>org.alfresco.share.pages.example-faceted-search</sourcePackageRoot>
</customization>
</customizations>
<configurations>
<config evaluator="string-compare" condition="WebFramework" replace="false">
<web-framework>
<dojo-pages>
<packages>
<package name="alfresco" location="js/aikau/1.0.39.5"/>
<package name="example" location="js/example"/>
</packages>
</dojo-pages>
</web-framework>
</config>
</configurations>
</module>
</modules>
</extension>

can please any tell what is the issue??

1 REPLY 1

afaust
Legendary Innovator
Legendary Innovator

There appears to be an error in your custom Aikau module initialization hooks, e.g. postMixInProperties, postCreate or even constructor. Without the source of that module it is difficult to say what exactly is the matter. I suggest debugging through your module with the browser developer tools.