Wednesday, August 22, 2012

Remember to define title and description for actions in repo/alfresco

If you still use the alfresco web app (JSP repo access), then remember to give your repo actions a property for title and one for description in a bootstraped properties-file/messages.

<action-bean-id>.title=lala
<action-bean-id>.description=lololo

If you don't do this, you will see non-informational exception.

Another version of this issue is provided here: http://stackoverflow.com/questions/21886116/custom-type-not-showing-up-in-rule-config

regarding missing specialise type in content rule config.

Tuesday, August 14, 2012

Note on share node type evaluator

I noted that using the NodeTypeEvaluator for alfresco share 4.0, the subtypes configuration does not work if your bean configuration does not add DictionaryQuery bean ... no logging :( If you do not add it, the allowSubTypes=true does not work.

Snipplet defining a NodeTypeEvaluator (point in bold)

<bean id="myEvaluator" class="org.alfresco.web.evaluator.c">
  <property name="allowSubtypes" value="true" />
  <property name="dictionary" ref="slingshot.scriptprocessor.dictionaryQuery" />
      <property name="types">
         <list>
            <value>x:yz</value>
                ....
         </list>
      </property>
   </bean>