cancel
Showing results for 
Search instead for 
Did you mean: 

Modello personalizzato in share

need
Champ in-the-making
Champ in-the-making
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?
2 REPLIES 2

openpj
Elite Collaborator
Elite Collaborator
Devi configurare anche le form di Share all'interno del file share-config-custom che trovi all'interno del class loader condiviso dell'application server, di seguito i dettagli:
http://wiki.alfresco.com/wiki/Forms

need
Champ in-the-making
Champ in-the-making
Grazie mille OpenPj avresti qualche suggerimento per il mio post sull'agenda e le varie attività? perchè mi serve sapere per ogni attività inserita la durata e i tempi impiegati su quella attività.

Grazie ancora.