alfrescoalfresco-share

Custom type not showing up in rule config


Trying to add a folder rule which should specialize cm:content to our custom type my:content (which inherits from cm:content).

We have configured the following in share-config-custom.xml:

<type name="cm:content"> <subtype name="my:content"/> </type>

Our type shows up correctly in the specialize type action in the document library, but when trying to specify a rule the listbox that should contain our type remains empty. :(

What could we be missing?


Solution

  • You need to add to web-client-config-custom.xml in alfresco/extension

    <config evaluator="string-compare" condition="Action Wizards"
        replace="true">
        <subtypes>
            <type name="my:content" />
        </subtypes>
        <specialise-types>
            <type name="my:content" />
        </specialise-types>
    </config>
    

    And then the trick is to provide title & description for the types in the content model or via messages/properties; otherwise they will not be there.

    Wrote about similar issues here: http://experiencewithalfresco.blogspot.dk/2012/08/remember-to-define-title-and.html