AnsweredAssumed Answered

Extender listas en shared

Question asked by lazaro on Mar 12, 2013
Latest reply on Mar 22, 2013 by lazaro
Buenas, Hasta ahora he creado nuevas listas editando directamente el "datalistmodel.xml" y "share-datalist-form-config.xml", todos sabemos que no son buenas practicas… por eso ahroa estoy intentando crearlas por shared
lo que creo es
1º "prueba-model-context.xml" –> shared/classes/extension
2º "pruebamodel.xml" –> shared/classes/extension
3º "share-config-custom.xml" –> shared/classes/web-extension

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

    <bean id="extension.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
        <property name="models">


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

<!– Definition of new Model –>

<!– The important part here is the name - Note: the use of the my: namespace
     which is defined further on in the document –>
<model name="my:mynewmodel" xmlns="">

   <!– Optional meta-data about the model –>  
   <description>Example custom Model</description>

   <!– Imports are required to allow references to definitions in other models –>  
        <!– Import Alfresco Dictionary Definitions –>
      <import uri="" prefix="d"/>
      <!– Import Alfresco Content Domain Model Definitions –>
      <import uri="" prefix="cm"/>
      <import uri="" prefix="dl"/>

   <!– Introduction of new namespaces defined by this model –>
   <!– NOTE: The following namespace should be changed to reflect your own namespace –>
      <namespace uri="" prefix="my"/>
      <!– Definition of new Content Type: Standard Operating Procedure –>
      <type name="my:sop">
            <property name="my:publishedDate">
            <property name="my:authorisedBy">


<config evaluator="node-type" condition="my:sop">
               <show id="my:publishedDate" />      
               <show id="my:authorisedBy" />   
            <create-form template="/org/alfresco/components/data-lists/forms/dataitem.ftl" />
   <config evaluator="model-type" condition="my:sop">
               <show id="my:publishedDate" />      
               <show id="my:authorisedBy" />   
            <edit-form template="/org/alfresco/components/data-lists/forms/dataitem.ftl" />

que es lo que he echo mal para que no funcione?
un saludo y gracias