AnsweredAssumed Answered

Sobreescribir contentModel.xml versionable aspect

Question asked by dfernandezgonzalez on May 23, 2011
Latest reply on Jul 8, 2011 by dfernandezgonzalez
Hola buenas, he intentado sobreescribir permanente la propiedad "versionable" de todos los documentos de alfresco, de forma permanente

$TOMCAT_HOME/shared/classes/alfresco/extension/custom-model-context.xml



    <?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>

    <beans>

        <!– Registration of new models –>
        <bean id="extension.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
            <property name="models">
                <list>
                    <value>alfresco/extension/customModel.xml</value>
                </list>
            </property>
        </bean>

    </beans>




$TOMCAT_HOME/shared/classes/alfresco/extension/customModel.xml


    <?xml version="1.0" encoding="UTF-8"?>

    <!– Custom Model –>

    <!– Note: This model is pre-configured to load at startup of the Repository.  So, all custom –>
    <!–       types and aspects added here will automatically be registered –>

    <model name="custom:customModel" xmlns="http://www.alfresco.org/model/dictionary/1.0">

       <!– Optional meta-data about the model –>
       <description>Custom Model</description>
       <author></author>
       <version>1.0</version>

       <imports>
              <!– Import Alfresco Dictionary Definitions –>
          <import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d"/>
          <!– Import Alfresco Content Domain Model Definitions –>
          <import uri="http://www.alfresco.org/model/content/1.0" prefix="cm"/>
       </imports>

       <!– Introduction of new namespaces defined by this model –>
       <!– NOTE: The following namespace custom.model should be changed to reflect your own namespace –>
       <namespaces>
          <namespace uri="custom.model" prefix="custom"/>
       </namespaces>
       <types>
                    <type name="custom:contenido">
                            <title>Versionable Aspect</title>
                            <parent>cm:content</parent>
                            <mandatory-aspects>
                                    <aspect>cm:versionable</aspect>
                            </mandatory-aspects>
                    </type>
       </types>
    </model>
        


$TOMCAT_HOME/shared/classes/alfresco/extension/web-client-config-custom.xml


    <alfresco-config>

            <config evaluator="string-compare" condition="Content Wizards">
                    <content-types>
                            <type name="custom:contenido" />
                    </content-types>
            </config>
    </alfresco-config>



pero no he conseguido que funcione. ¿Alguna idea?


Gracias de antemano

Outcomes