AnsweredAssumed Answered

Modello personalizzato in share

Question asked by need on Jul 25, 2011
Latest reply on Jul 25, 2011 by need
Ciao a tutti,

ho creato un esempio di modello personalizzato con questo codice xml:

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

<model name="lbt:lbtModel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
   <description></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>

   <namespaces>
      <!– Define a Namespace for my new definitions –>
      <namespace uri="lbt.model" prefix="lbt"/>
   </namespaces>



   <!– Type and Aspect definitions go here –>
   <types>
      <type name="lbt:doc">
         <title>Documenti LBT</title>
         <parent>cm:content</parent>
      </type>
   <type name="lbt:clientiDoc">
         <title>Documenti LBT</title>
         <parent>lbt:doc</parent>
      <properties>
      <property name="lbt:RagioneSociale">
               <type>d:text</type>
            </property>
      <property name="lbt:CapitaleSociale">
               <type>d:text</type>
            </property>
            <property name="lbt:PartitaIva">
               <type>d:text</type>
            </property>
      <property name="lbt:Telefono">
               <type>d:text</type>
            </property>
      </properties>
      </type>
    </types>
</model>

E poi ho modificato anche il web-client-config-custom.xml in questo modo:
 <config evaluator="node-type" condition="lbt:clientiDoc">
      <property-sheet>
         <show-property name="mimetype" display-label-id="content_type"
                        component-generator="MimeTypeSelectorGenerator" />
         <show-property name="size" display-label-id="size"
                        converter="org.alfresco.faces.ByteSizeConverter"
                        show-in-edit-mode="false" />
         <show-property name="lbt:RagioneSociale" />
         <show-property name="lbt:CapitaleSociale" />

       </property-sheet>
   </config>

   <config evaluator="string-compare" condition="Content Wizards">
      <content-types>
         <type name="lbt:clientiDoc" />
   </content-types>
   </config>

Ho notato che nei wizard di alfresco explorer compare il tipo che hocreato però se io volessi creare un nuovo documento di tipo documenti LBT in share non mi compare la possibilità di scegliere documento lbt come tipo, sbaglio qualcosa nel file di configurazione?

Outcomes