Adding custom types to the 'Change Type' drop down
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2013 05:41 AM
(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:
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
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
Labels:
- Labels:
-
Archive
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2013 04:08 AM
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
Try to place it in tomcat/share/ location.
If that still does not work try once by removing replace="true" attribute from that
