Dear community,I'm working on show/hide some Share actions and I came across a strange behavior.I defined a custom evaluator in custom-slingshot-application-context.xml as<bean id="com.evaluator.doclib.action.isMyPreset"
parent ="evaluator.doclib.action.sitePreset">
<property name="presets">
<list>
<value>my-default-site</value>
</list>
</property>
</bean>
and I bound this evaluator to the document-publish action in share-config-custom.xml:
<action id="document-publish" type="javascript" label="actions.document.publish">
<param name="function">onActionPublish</param
<evaluator>com.evaluator.doclib.action.isMyPreset</evaluator>
</action>
Browsing a node within a site with the preset my-default-site the publish action is showed in the document-browser view but is hide in document-details view.Since there is a single action document-publish to both views I assumed that the action should have a consistent behavior in all views.Where is the problem?Thanks,Andrea