I'm trying to customize web script controller for Web View Dashlet. I do the same in this tutorial but it's doesn't work for me. I created new user and when I log in to alfresco this dashlet is empty. I don't understand where it might be a bug.
Thanks,
Igor
Solved! Go to Solution.
Thanks for reply, Krutik. I have found that "config.approval.evalautor" property "apply" value was not true, so now it works right.
For overriding existing files in alfresco, you need to follow specific path.It also differs based on the alfresco version and the sdk version as well.It will be better if you can specify all the details which you did to achieve your requirement.
I use "All-In-One SDK 3.0 Project" and do it all the same in this tutorial. I created webview.get.js file with next code:
if (model.isDefault == true)
{
model.widgets[0].options.webviewTitle = "Alfresco!";
model.widgets[0].options.webviewURI = "http://www.alfresco.com";
model.widgets[0].options.isDefault = false;
}
and new Surf Extension Modules file where was related targetPackageRoot with sourcePackageRoot. The auto-deploy property I set to true.
add directory structure and module.xml as well.
HI,
Make sure that you use surf module extesnion to override the out-of-the-box webScript
<extension>
<modules>
<module>
<id>Customize Web Script Controller for Web View Dashlet</id>
<version>1.0</version> <auto-deploy>true</auto-deploy>
<customizations>
<customization>
<targetPackageRoot>org.alfresco.components.dashlets</targetPackageRoot>
<sourcePackageRoot>org.alfresco.tutorials.customization.webview.controller</sourcePackageRoot>
</customization>
</customizations>
</module>
</modules>
</extension>
Thanks for reply, Krutik. I have found that "config.approval.evalautor" property "apply" value was not true, so now it works right.
Thanks for reply,Mohamed. I've found my fault.
You are welcome.
Don't forget to mark you post as SOLVED
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.