cancel
Showing results for 
Search instead for 
Did you mean: 

Adding custom types to the 'Change Type' drop down

armino
Champ in-the-making
Champ in-the-making
(Version 4.2.c)

I have some custom types distributed in several amp/jar deployments.
As long as i add them to WEB-INF/classes/alfresco/share-documentlibrary-config.xml the change-type dialogue offers the new types.
However when i move this section into the alfresco/web-extension/share-config-custom.xml in my jar file the new types are ignored.

Here's the code:

 <alfresco-config>     <config evaluator="string-compare" condition="DocumentLibrary" replace="true">        <types>            <type name="cm:content">                <subtype name="foo:BaseDocCTPE"/>                <subtype name="foo:CommercialDocumentBaseCTPE"/>                <subtype name="foo:CommercialDocumentTemplateCTPE"/>                <subtype name="foo:CommercialDocumentCTPE"/>            </type>             <type name="cm:folder">            </type>             <type name="trx:transferTarget">            <subtype name="trx:fileTransferTarget" />        </types>    </config> </alfresco-config>‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍

Q: I dont want to make changes to files all over the place, since that will make updates a messy. How to i achieve this in a modular way?

Thanks,
Armin
1 REPLY 1

mitpatoliya
Star Collaborator
Star Collaborator
Your file looks good I think the problem is your share-config-custom.xml is not picked up by alfresco.
Try to place it in tomcat/share/ location.
If that still does not work try once by removing replace="true" attribute from that