AnsweredAssumed Answered

Evaluators...incoherent behavior?

Question asked by acarpine on May 30, 2012
Latest reply on Jun 5, 2012 by acarpine
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">
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
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?