cancel
Showing results for 
Search instead for 
Did you mean: 

Enhancing alfresco content model for a specific domain

tarunkar
Champ in-the-making
Champ in-the-making
Hi,

what is the best possible strategy for adding new content models, aspets and mime types to alfresco ?

As of now, in order to achieve this,  We have modified alfresco's config files like application-context.xml

e.g. Consider addition of new mime types, 

It has been done by modifying application-context.xml file,
following is the modified bean definition of repoConfigService,
    <bean id="repoConfigService" class="org.alfresco.config.xml.XMLConfigService" init-method="init">
        <constructor-arg>
            <bean class="org.alfresco.config.source.ClassPathConfigSource">
                <constructor-arg>
                    <list>
                        <value>alfresco/mimetype-map.xml</value>
                        <value>WEB-INF/domainspecific-mimetype-map.xml</value>
                    </list>
                </constructor-arg>
            </bean>
        </constructor-arg>
    </bean>

here under list element, a new value element
<value>WEB-INF/domainspecific-mimetype-map.xml</value>
has been added.

Pls. suggest whether  it is the right strategy to modify alfresco configuration files for enhanced functionality ?

Are there any hooks provided by alfresco to achieve above mentioned things ?

Thakns in advance.
1 REPLY 1

derek
Star Contributor
Star Contributor
Hi,

Server configuration menu
How to extend and override configurations
Adding a mimetype

Checkout the code and have a look at the Extension Samples project.

PS.  An upgrade to V1.2 is highly recommended.

Regards