AnsweredAssumed Answered

Cannot add my custom Aikau widget in the Share

Question asked by jeeva on Sep 23, 2016
Latest reply on Sep 23, 2016 by afaust

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??

Outcomes