Question

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?

Was it helpful?

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

OTHER TIPS

For adding custom messages you need to create custom-message-context.xml

<beans>
 <bean id="mycompany.resources" class="org.springframework.extensions.surf.util.ResourceBundleBootstrapComponent">
  <property name="resourceBundles">
     <list>
        <value>alfresco.messages.custom</value>
     </list>
  </property>

Then create custom.properties file and place it in /shared/classes/alfresco/message folder.

And for adding custom type to rule your config should be working only thing to make sure is config inside which you have put sub-type related config is proper.

Disclaimer: This answer is for Alfresco 6.2.2+.

Answering an old thread. For me, I tried this thread all vague answers on Alfresco Hub and nothing worked out.

I have been through this nightmare. Its frustrating and I don't know why Alfresco team relies on "Display Label" instead of "Name".

As shown in the screenshot, I was missing Display Label. As soon as I edited my custom type and provided Display Label, all worked as expected.

enter image description here

If I would have designed it, I would include, Name and Display Label both in the drop down in my rule window.

Hope it helps someone like me.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top