AnsweredAssumed Answered

Failed to add [...] to the list of folder types as the prefix can not be resolved

Question asked by yago on Dec 2, 2013
Latest reply on Dec 2, 2013 by yago
Hi

I've been reading different entries of the blog with this problem, but I couldn't solve mine . The thing Is that I'm trying to define a type folder , so, at the moment I enter in 'create space wizard' , at point two '2. Space options', It may be possible to select my type of folder . I have defined the following files …

[tomcat-path]/shared/classes/alfresco/extension/ajvModel.xml


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

<!– Modelo personalizado –>

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

   <imports>
      <!– Importamos definiciones de Alfresco, concetamente el diccionario de datos y el modelo de contenido de Alfresco –>
      <import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d" />
      <import uri="http://www.alfresco.org/model/content/1.0" prefix="cm" />
   </imports>

   <!– Registramos el namespace que se usara en este modelo –>
   <namespaces>
      <namespace uri="ajv.model" prefix="ajv" />
   </namespaces>

   <!– Definicion de los tipos de datos personalizados –>
   <types>
      <!– Definicion del tipo de contenido Nombre –>
      <type name="ajv:carpeta">
         <title>Carpeta de proyecto</title>
         <parent>cm:folder</parent>
         <properties>
            <!– Propiedad de nombre–>
            <property name="ajv:nombre">
               <title>Nombre</title>
               <type>d:text</type>
            </property>
            
            <!– Primer apellido –>
            <property name="ajv:primerApellido">
               <title>Primer apellido</title>
               <type>d:text</type>
            </property>
            
            <!– Segundo apellido –>
            <property name="ajv:segundoApellido">
               <title>Segundo apellido</title>
               <type>d:text</type>
            </property>
            
            <!– Documento NIF –>
            <property name="ajv:documentoNif">
               <title>Documento NIF</title>
               <type>d:text</type>
            </property>
            
            <!– Puesto –>
            <property name="ajv:puesto">
               <title>Puesto</title>
               <type>d:text</type>
            </property>
            
            <!– Comunidad autonoma –>
            <property name="ajv:comunidadAutonoma">
               <title>Comunidad autonoma</title>
               <type>d:text</type>
            </property>
            
            <!– Provincias –>
            <property name="ajv:provincias">
               <title>Provincias</title>
               <type>d:text</type>
            </property>
         </properties>
      </type>
   </types>
   
   <aspects>
      <!– Definicion de los aspectos personalizados –>
   </aspects>
</model>


[tomcat-path]/shared/classes/alfresco/extension/ajvModel-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>
   <!– Registro de los nuevos modelos –>
   <bean id="extension.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
        <property name="models">
            <list>
                <value>alfresco/extension/ajvModel.xml</value>
            </list>
        </property>
    </bean>
</beans>


[tomcat-path]/shared/classes/alfresco/extension/web-client-config-custom.xml

<alfresco-config>
… commented code …
<config condition="Content Wizards" evaluator="string-compare">
      <content-types>
         <type name="co:TipoCompany"/>
         <type name="co:TipoNoCompany"/>
         <type name="co:TipoPublicacion"/>
         <type name="co:TipoFactura"/>
         <type name="co:TipoCalidad"/>
         <type name="co:TipoPG"/>
         <type name="co:TipoPRAE"/>
         <type name="co:TipoPNT"/>
         <type name="co:TipoRCAEQuimica"/>
         <type name="co:TipoRCAEMicrobiologia"/>
      </content-types>
   </config>
… commented code …
<config evaluator="string-compare" condition="Space Wizards">
      <folder-types>
         <type name="ajv:carpeta"/>
      </folder-types>
   </config>

</alfresco-config>



But when I arrive to the wizard, and try to create an space folder, I get the following error …

[bean.spaces.CreateSpaceWizard] Failed to add 'ajv:carpeta' to the list of folder types as the prefix can not be resolved

and the type folder I'm trying to define is not appearing .

I have review that the three files are in the same folder, but eventhough, I continue having the same message . Is there something left ? what am I missing ?

Best regards
Yago

Outcomes