AnsweredAssumed Answered

Adding Custom Action in Share Using Predefined Evaluators

Question asked by vamirr on May 8, 2012
Latest reply on May 8, 2012 by vamirr
I'm adding a custom action in share based on its mimetype.    Can I use the IsMimetype evaluator directly or do I have to make a child of that declared in another bean?

I'd like this action to only show on zip files.   In my Share config, I'm trying to use IsMimetype directly by feeding it a mimetypes list.   I can't get this working and I'm not sure if it's my configuration that's wrong or if you can't use IsMimetype directly within the Share config as I am trying to do.


 <action id="aeroCOMPASS.doclib.action.ZipImport"
                        label="message.ZipImport.label"
                        type="javascript"       >

                        <param name="function">onActionZipImport</param>
                        <param name="successMessage">message.ZipImport.success</param>
                        <param name="failureMessage">message.ZipImport.failure</param>
                        <evaluator id="evaluator.doclib.action.isMimetype">
                                <property name="mimetypes">
                                        <list>
                                                <value>ZIP</value>
                                        </list>
                                </property>
                        </evaluator>
                </action>

Outcomes