Hi,
I tried to set an evaluator on Surf Extension Modules as :
<module>
<id>PRODUCT-MENUITEM-ADD</id>
<version>1.0</version>
<auto-deploy>true</auto-deploy>
<configurations>
<!-- Action configuration -->
<config evaluator="string-compare" condition="DocumentLibrary">
<create-content>
<content id="xx-product-add" label="com.xx.ged.services.doclib.action.addNewProduct.label" icon="addnewproduct" type="pagelink">
<param name="page">create-content?destination={nodeRef}&itemId=xx:folderProduitType&mimeType=text/plain</param>
<!-- FIXME : this evaluator call doesn't work -->
<evaluator>xx.ged.evaluator.site.IsOnPrdOrTrtSite</evaluator>
</content>
</create-content>
</config>
<!-- Form view for xx-product-add action -->
<config evaluator="model-type" condition="xx:folderProduitType">
<forms>
[...]
</forms>
</config>
</configurations>
</module>
My custom evalutor work fine (I tried it on another module. So, the evaluator doesn't take effect.
When I debug this java Class : nether call on documentLibrary.
My goal is to display this button only on Alfresco site context.
Have you some idea?
Evaluator doesn't work on all places.In create content you can not use evaluator.
Places on which you can use it are indicator, custom action etc..
Thinks you for your answer.
OK. So, in this case, can we choose when display this button with another way?
Or an override is mandatory?
Have you find a way to do this? I'm stuck on the same problem.
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.