AnsweredAssumed Answered

Adding custom types to the 'Change Type' drop down

Question asked by armino on Jan 23, 2013
Latest reply on Jan 24, 2013 by mitpatoliya
(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

Outcomes