visibilté sous share d'un type fermé trop vite...

cancel
Showing results for 
Search instead for 
Did you mean: 
pascal_sighma
Member II

visibilté sous share d'un type fermé trop vite...

Bonjour,

G fermé le post (visibilté sous explorer et share d'un "type") un peu trop vite…  Smiley Surprisedops:

Après différent essai avec un autre 'Type' et avec l'aide de BertrandF sur le post précédemment cité, j'ai réussi a "démarrer" Alfresco.
En effet avant pas de possibilité de se loguer, et aucune ligne dans le log.

Donc j'arrive a visualiser mon type dans Share mais
      1) Il me refuse la modification des doc existant (impossible de changer le type pour…)
      2) je ne peux affecter un type a mon "repertoire" il n'apparait même pas dans la liste seul existe type.ws_website et type.ws_webroot.

Voici le share-form-config.xml

   <!– sig:doc type (existing nodes) –>
    <config evaluator="node-type" condition="sig:doc">
      <forms>
         <!– Default form configuration for the sig:doc type –>
         <form>
            <field-visibility>
               <show id="cm:name" />
               <show id="cm:title" force="true" />
               <show id="cm:description" force="true" />
               <show id="mimetype" />
               <show id="cm:author" force="true" />
               <show id="size" for-mode="view" />
               <show id="cm:creator" for-mode="view" />
               <show id="cm:created" for-mode="view" />
               <show id="cm:modifier" for-mode="view" />
               <show id="cm:modified" for-mode="view" />
              
         <!– Mes metadonnees SIGHMA–>
      <show id="sig:Nom" />
      <show id="sig:Date" />
      <show id="sig:Service" />
      <show id="sig:Reference" />
      <show id="sig:Objet" />
      <show id="sig:Projet" />
      <show id="sig:Statut" />

               <!– tags and categories –>
               <show id="cm:taggable" for-mode="edit" force="true" />
               <show id="cm:categories" />
              
               <!– cm:dublincore aspect –>
               <show id="cm:publisher"/>
               <show id="cm:contributor"/>
               <show id="cm:type"/>
               <show id="cm:identifier"/>
               <show id="cm:dcsource"/>
               <show id="cm:coverage"/>
               <show id="cm:rights"/>
               <show id="cm:subject"/>
            </field-visibility>
            <appearance>
               <field id="cm:title">
                  <control template="/org/alfresco/components/form/controls/textfield.ftl" />
               </field>
               <field id="cm:description">
                  <control>
                     <control-param name="activateLinks">true</control-param>
                  </control>
               </field>
               <field id="mimetype">
                  <control template="/org/alfresco/components/form/controls/mimetype.ftl" />
               </field>
               <field id="size">
                  <control template="/org/alfresco/components/form/controls/size.ftl" />
               </field>
               <field id="cm:taggable">
                  <control>
                     <control-param name="compactMode">true</control-param>
                     <control-param name="params">aspect=cm:taggable</control-param>
                     <control-param name="createNewItemUri">/api/tag/workspace/SpacesStore</control-param>
                     <control-param name="createNewItemIcon">tag</control-param>
                  </control>
               </field>
               <field id="cm:categories">
                  <control>
                     <control-param name="compactMode">true</control-param>
                  </control>
               </field>
               <field id="cm:originator" read-only="true" />
               <field id="cm:addressee" read-only="true" />
               <field id="cm:addressees" read-only="true" />
               <field id="cm:sentdate" read-only="true" />
               <field id="cm:subjectline" read-only="true" />
            </appearance>
         </form>

         <!– Document Library pop-up Edit Metadata form –>
         <form id="doclib-simple-metadata">
            <field-visibility>
               <show id="cm:name" />
               <show id="cm:title" force="true" />
               <show id="cm:description" force="true" />

               <!– Mes metadonnees cotrans–>
               <show id="ct:doctype" />

               <!– tags and categories –>
               <show id="cm:taggable" for-mode="edit" force="true" />
               <show id="cm:categories" />
            </field-visibility>
            <edit-form template="../documentlibrary/forms/doclib-simple-metadata.ftl" />
            <appearance>
               <field id="cm:title">
                  <control template="/org/alfresco/components/form/controls/textfield.ftl" />
               </field>
               <field id="cm:description">
                  <control>
                     <control-param name="activateLinks">true</control-param>
                  </control>
               </field>
               <field id="cm:taggable">
                  <control>
                     <control-param name="compactMode">true</control-param>
                     <control-param name="params">aspect=cm:taggable</control-param>
                     <control-param name="createNewItemUri">/api/tag/workspace/SpacesStore</control-param>
                     <control-param name="createNewItemIcon">tag</control-param>
                  </control>
               </field>
               <field id="cm:categories">
                  <control>
                     <control-param name="compactMode">true</control-param>
                  </control>
               </field>
            </appearance>
         </form>
        
         <!– Document Library Inline Edit form –>
         <form id="doclib-inline-edit">
            <field-visibility>
               <show id="cm:name" />
               <show id="cm:title" force="true" />
               <show id="cm:description" force="true" />
               <show id="cm:content" force="true" />
            </field-visibility>
            <appearance>
               <field id="cm:title">
                  <control template="/org/alfresco/components/form/controls/textfield.ftl" />
               </field>
               <field id="cm:content">
                  <control>
                     <control-param name="editorAppearance">explorer</control-param>
                     <control-param name="forceEditor">true</control-param>
                  </control>
               </field>
            </appearance>
         </form>
      </forms>
    </config>

A ce propos j'ai vu dans share-form-config.xml une partie node-type et une partie model-type, pourriez vous me donner les actions de chaque parties?

Merci d'avance de votre aide.

Pascal
9 Replies
bertrandf
Active Member

Re: visibilté sous share d'un type fermé trop vite...

1) Il me refuse la modification des doc existant (impossible de changer le type pour…)
Un peu plus de détails peut être ?

2) je ne peux affecter un type a mon "repertoire" il n'apparait même pas dans la liste
Plutôt normal puisque votre type hérite du type cm:content …
<parent>cm:content</parent>

Si vous voulez seulement ajouter une métadonnée aussi bien sur un espace qu'un fichier, il y aurait surement fallu créer un aspect et non un type.


A ce propos j'ai vu dans share-form-config.xml une partie node-type et une partie model-type, pourriez vous me donner les actions de chaque parties?
"node-type" pour gérer l'affichage des formulaires de visualisation/édition des métadonnées d'un type.
"model-type" pour gérer l'affichage des formulaires pour la recherche avancée (id="search") et autres formulaires
pascal_sighma
Member II

Re: visibilté sous share d'un type fermé trop vite...

Bonjour Bertrand,

1) Alors plus d'explication, lorsque je suis au niveau de preview du doc, nous avons une possibilité dans "action sur le document" de "changer le type".
Lors de cette action dans la liste deroulante je visualise bien mon type mais lorsque je valide j'ai le message "impossible de changer le type pour nom_du_doc".

2) Effectivement l’héritage du "content" je me disais déjà que c’était pas une bonne idée. Surtout que les champs dont j'ai besoin je les créer dans mon type, (donc pas besoin de récupérer "content"), j'avais surtout l'impression que c’était limite une étape obligatoire. Je sais cela doit vous paraitre ridicule comme démarche intellectuel…  Smiley Surprisedops:

Mon objectif est de pouvoir avoir QUE les métadonnées voulu à l'affichage ou dans les recherche simple et avancé. Je voulais donc créer mon propre type ou j'aurais pu associer un ou plusieurs aspect suivant les spécificité de chaque doc ou de chaque entrepôts.

Pour la partie node et model : si je comprend bien dans share form config nous gérons la visibilité des formulaires d'un coté en visu et modif (node) de l'autre pour les recherches et recherches avancées (model)?

J'ai peut être pris mon problème a l'envers, j'avoue avoir une ancienneté sur Alfresco extrêmement limité Smiley Happy . De plus ma connaissance de l'XML n'est pas meilleur en 2 mots, je découvre. n'ayant pas de temps (demo prévu pour la fin du mois… je n'ai pas le temps de me plonger dans les bases du XML)

Je suis preneur de toute les bonnes idées.
pascal_sighma
Member II

Re: visibilté sous share d'un type fermé trop vite...

Suite,

Après la réponse de BertrandF j'ai essayé de passer sur les aspects.

Au bout d'une journée de dure labeur voici le résultat qui n'est pas du tout probant pour l'instant.

Résumé:
Un model avec type + parent content ; aspect ou je décline mes métadonnées.
sighmamodel.xml
<?xml version="1.0" encoding="UTF-8"?>

<model name="sig:sighmamodel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
    <description> Aspect modèle de base d'enregistrement des documents </ description>
    <author></ author>
    <version> 1.0 </ version>

   <imports>
      <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>

   <namespaces>
   <namespace uri="sig.sighma.model" prefix="sig"/>
   </namespaces>

<constraints>
      <constraint name="sig:liststatus" type="LIST">
         <parameter name="allowedValues">
            <list>
                  <value> Vide </value>
                  <value> Validé </value>
                  <value> Vérifié </value>
                  <value> Accepté </value>
            </list>
         </parameter>
      </constraint>  
</constraints>

<types>
<type name="sig:docsig">
<title>Document Sighma</title>
<parent>cm:content</parent>
<mandatory-aspects>
<aspect>sig:doc</aspect>
</mandatory-aspects>
</type>
</types>
    <aspects>
   <aspect name="sig:doc">
        <title>Documents Sighma</title>
        <properties>
           <property name="sig:date">
        <title>Date</title>
              <type>d:datetime</type>
           </property>
           <property name="sig:service">
        <title>Service</title>
               <type>d:text</type>
      <multiple>true</multiple>
           </property>
           <property name="sig:reference">
        <title>Référence</title>
               <type>d:content</type>
      <mandatory>true</mandatory>
           </property>
           <property name="sig:objet">
        <title>Objet</title>
               <type>d:text</type>
      <mandatory>true</mandatory>
           </property>
           <property name="sig:projet">
        <title>Projet</title>
               <type>d:text</type>
      <mandatory>true</mandatory>
           </property>
           <property name="sig:statut">
        <title>Statut</title>
               <type>d:text</type>
      <mandatory>true</mandatory>
         <constraints>
            <constraint ref="sig:liststatus"/>
         </constraints>
           </property>
        </properties>
        </aspect>
   </aspects>

</model>

Mon sighma context lui n'a pas evolué mais je le mets quand même par acquis de conscience  Smiley Happy

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

<beans>

    <!– enregistremnts du model Sighma –>   
    <bean id="extension.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
        <property name="sighmamodel">
            <list>
                <value>alfresco/extension/sighmamodel.xml</value>
            </list>
        </property>
    </bean>
         
</beans>

Puis mon share-config-custom.xml
<alfresco-config>

<config evaluator="string-compare" condition="AdvancedSearch" replace="true">
<advanced-search>
   <forms>
            <form labelId="search.form.label.cm_content" descriptionId="search.form.desc.cm_content">cm:content</form>
            <form labelId="search.form.label.cm_folder" descriptionId="search.form.desc.cm_folder">cm:folder</form>
        <form label="SIGHMA" description="Procedure standard">sig:docsig</form>
        <form label="COTRANS" description="Documents Cotrans">ct:doc</form>
</forms>
</advanced-search>
</config>
  
   <!– Document Library config section –>
   <config evaluator="string-compare" condition="DocumentLibrary" replace="true">

      <!–
         Used by the "Manage Aspects" action

         For custom aspects, remember to also add the relevant i18n string(s)
            cm_myaspect=My Aspect
      –>
      <aspects>
         <!– Aspects that a user can see –>
         <visible>
   <!– Aspect d'origine –>
            <aspect name="cm:generalclassifiable" />
            <aspect name="cm:complianceable" />
            <aspect name="cm:dublincore" />
            <aspect name="cm:effectivity" />
            <aspect name="cm:summarizable" />
            <aspect name="cm:versionable" />
            <aspect name="cm:templatable" />
            <aspect name="cm:emailed" />
            <aspect name="emailserver:aliasable" />
            <aspect name="cm:taggable" />
            <aspect name="app:inlineeditable" />
            <aspect name="gd:googleEditable" />
            <aspect name="cm:geographic" />
            <aspect name="exif:exif" />

   <!– Aspect perso –>
            <aspect name="sig:doc" />
         </visible>

         <!– Aspects that a user can add. Same as "visible" if left empty –>
         <addable>
         </addable>

         <!– Aspects that a user can remove. Same as "visible" if left empty –>
         <removeable>
         </removeable>
      </aspects>

      <!–
         Used by the "Change Type" action

         Define valid subtypes using the following example:
            <type name="cm:content">
               <subtype name="cm:mysubtype" />
            </type>

         Remember to also add the relevant i18n string(s):
            cm_mysubtype=My SubType
      –>
      <types>
      <!– cotrans –>
         <type name="cm:content">
        <subtype name="ct:doc" />
         </type>
      <!– sighma –>
         <type name="cm:content">
            <subtype name="sig:docsig" />
         </type>

         <type name="cm:folder">
         </type>
      </types>
    
   </config>

      <!– model sighma –>

<config evaluator="model-type" condition="sig:docsig">
   <forms>
      <form id="search">
      <field-visibility>
         <show id="cm:name" />
         <show id="sig:date" />
         <show id="sig:service" />
         <show id="sig:reference" />
         <show id="sig:objet" />
         <show id="sig:projet" />
         <show id="sig:statut" />
      </field-visibility>
      <appearance>
               <field id="sig:date">
                  <control template="/org/alfresco/components/form/controls/daterange.ftl" />
      </appearance>
      </form>
   </forms>
</config>

   <config evaluator="string-compare" condition="Remote">
      <remote>
         <endpoint>
            <id>alfresco-noauth</id>
            <name>Alfresco - unauthenticated access</name>
            <description>Access to Alfresco Repository WebScripts that do not require authentication</description>
            <connector-id>alfresco</connector-id>
            <endpoint-url>http://localhost:8080/alfresco/s</endpoint-url>
            <identity>none</identity>
         </endpoint>

         <endpoint>
            <id>alfresco</id>
            <name>Alfresco - user access</name>
            <description>Access to Alfresco Repository WebScripts that require user authentication</description>
            <connector-id>alfresco</connector-id>
            <endpoint-url>http://localhost:8080/alfresco/s</endpoint-url>
            <identity>user</identity>
         </endpoint>

         <endpoint>
            <id>alfresco-feed</id>
            <name>Alfresco Feed</name>
            <description>Alfresco Feed - supports basic HTTP authentication via the EndPointProxyServlet</description>
            <connector-id>http</connector-id>
            <endpoint-url>http://localhost:8080/alfresco/s</endpoint-url>
            <basic-auth>true</basic-auth>
            <identity>user</identity>
         </endpoint>
      </remote>
   </config>

</alfresco-config>

Et mon share-form-config.xml
<alfresco-config>

   <!– cm:content type (existing nodes) –>
   <config evaluator="node-type" condition="cm:content">
      <forms>
         <!– Default form configuration for the cm:content type –>
         <form>
            <field-visibility>
               <show id="cm:name" />
               <show id="cm:title" force="true" />
               <show id="cm:description" force="true" />
               <show id="mimetype" />
               <show id="cm:author" force="true" />
               <show id="size" for-mode="view" />
               <show id="cm:creator" for-mode="view" />
               <show id="cm:created" for-mode="view" />
               <show id="cm:modifier" for-mode="view" />
               <show id="cm:modified" for-mode="view" />

      <!– Aspect SIGHMA –>

      <show id="sig:date" />
      <show id="sig:service" force="true" />
      <show id="sig:reference" />
      <show id="sig:objet" />
      <show id="sig:projet" />
      <show id="sig:statut" />

      <!– Mes metadonnees cotrans–>

      <show id="ct:doctype" />
     
               <!– tags and categories –>
               <show id="cm:taggable" for-mode="edit" force="true" />
               <show id="cm:categories" />
              
               <!– cm:dublincore aspect –>
               <show id="cm:publisher"/>
               <show id="cm:contributor"/>
               <show id="cm:type"/>
               <show id="cm:identifier"/>
               <show id="cm:dcsource"/>
               <show id="cm:coverage"/>
               <show id="cm:rights"/>
               <show id="cm:subject"/>
              
               <!– cm:complianceable aspect –>
               <show id="cm:removeAfter" />
              
               <!– cm:effectivity aspect –>
               <show id="cm:from"/>
               <show id="cm:to"/>
              
               <!–  cm:summarizable aspect –>
               <show id="cm:summary" />
              
               <!– cm:translatable aspect –>
               <show id="cm:translations" />
              
               <!– cm:localizable aspect –>
               <show id="cm:locale" />
              
               <!– cm:ownable aspect –>
               <show id="cm:owner" />
              
               <!– cm:attachable aspect –>
               <show id="cm:attachments" />
              
               <!– cm:emailed aspect –>
               <show id="cm:originator" />
               <show id="cm:addressee" />
               <show id="cm:addressees" />
               <show id="cm:sentdate" />
               <show id="cm:subjectline" />
              
               <!– exif:exif aspect –>
               <show id="exif:dateTimeOriginal" />
               <show id="exif:pixelXDimension" />
               <show id="exif:pixelYDimension" />
               <show id="exif:exposureTime" />
               <show id="exif:fNumber" />
               <show id="exif:flash" />
               <show id="exif:focalLength" />
               <show id="exif:isoSpeedRatings" />
               <show id="exif:manufacturer" />
               <show id="exif:model" />
               <show id="exif:software" />
               <show id="exif:orientation" />
               <show id="exif:xResolution" />
               <show id="exif:yResolution" />
               <show id="exif:resolutionUnit" />
              
               <!– cm:geographic aspect –>
               <show id="cm:latitude" />
               <show id="cm:longitude" />
            </field-visibility>
            <appearance>
               <field id="cm:title">
                  <control template="/org/alfresco/components/form/controls/textfield.ftl" />
               </field>
               <field id="cm:description">
                  <control>
                     <control-param name="activateLinks">true</control-param>
                  </control>
               </field>
               <field id="mimetype">
                  <control template="/org/alfresco/components/form/controls/mimetype.ftl" />
               </field>
               <field id="size">
                  <control template="/org/alfresco/components/form/controls/size.ftl" />
               </field>
               <field id="cm:taggable">
                  <control>
                     <control-param name="compactMode">true</control-param>
                     <control-param name="params">aspect=cm:taggable</control-param>
                     <control-param name="createNewItemUri">/api/tag/workspace/SpacesStore</control-param>
                     <control-param name="createNewItemIcon">tag</control-param>
                  </control>
               </field>
               <field id="cm:categories">
                  <control>
                     <control-param name="compactMode">true</control-param>
                  </control>
               </field>
               <field id="cm:originator" read-only="true" />
               <field id="cm:addressee" read-only="true" />
               <field id="cm:addressees" read-only="true" />
               <field id="cm:sentdate" read-only="true" />
               <field id="cm:subjectline" read-only="true" />
            </appearance>
         </form>

         <!– Document Library pop-up Edit Metadata form –>
         <form id="doclib-simple-metadata">
            <field-visibility>
               <show id="cm:name" />
               <show id="cm:title" force="true" />
               <show id="cm:description" force="true" />

              <!– Mes metadonnees SIGHMA–>

      <show id="sig:date" />
      <show id="sig:Service" force="true" />
      <show id="sig:Reference" />
      <show id="sig:Objet" />
      <show id="sig:Projet" />
      <show id="sig:Statut" />

         <!– Mes metadonnees cotrans–>

      <show id="ct:doctype" />

               <!– tags and categories –>
               <show id="cm:taggable" for-mode="edit" force="true" />
               <show id="cm:categories" />
            </field-visibility>
            <edit-form template="../documentlibrary/forms/doclib-simple-metadata.ftl" />
            <appearance>
               <field id="cm:title">
                  <control template="/org/alfresco/components/form/controls/textfield.ftl" />
               </field>
               <field id="cm:description">
                  <control>
                     <control-param name="activateLinks">true</control-param>
                  </control>
               </field>
               <field id="cm:taggable">
                  <control>
                     <control-param name="compactMode">true</control-param>
                     <control-param name="params">aspect=cm:taggable</control-param>
                     <control-param name="createNewItemUri">/api/tag/workspace/SpacesStore</control-param>
                     <control-param name="createNewItemIcon">tag</control-param>
                  </control>
               </field>
               <field id="cm:categories">
                  <control>
                     <control-param name="compactMode">true</control-param>
                  </control>
               </field>
            </appearance>
         </form>
        
         <!– Document Library Inline Edit form –>
         <form id="doclib-inline-edit">
            <field-visibility>
               <show id="cm:name" />
               <show id="cm:title" force="true" />
               <show id="cm:description" force="true" />
               <show id="cm:content" force="true" />
            </field-visibility>
            <appearance>
               <field id="cm:title">
                  <control template="/org/alfresco/components/form/controls/textfield.ftl" />
               </field>
               <field id="cm:content">
                  <control>
                     <control-param name="editorAppearance">explorer</control-param>
                     <control-param name="forceEditor">true</control-param>
                  </control>
               </field>
            </appearance>
         </form>
      </forms>
   </config>
  
   <!– cm:folder type (existing nodes) –>
   <config evaluator="node-type" condition="cm:folder">
      <forms>
         <!– Default form configuration for the cm:folder type –>
         <form>
            <field-visibility>
               <show id="cm:name" />
               <show id="cm:title" force="true" />
               <show id="cm:description" force="true" />

               <!– tags and categories –>
               <show id="cm:taggable" for-mode="edit" force="true" />
               <show id="cm:categories" />
            </field-visibility>
            <appearance>
               <field id="cm:title">
                  <control template="/org/alfresco/components/form/controls/textfield.ftl" />
               </field>
               <field id="cm:description">
                  <control>
                     <control-param name="activateLinks">true</control-param>
                  </control>
               </field>
               <field id="cm:taggable">
                  <control>
                     <control-param name="compactMode">true</control-param>
                     <control-param name="params">aspect=cm:taggable</control-param>
                     <control-param name="createNewItemUri">/api/tag/workspace/SpacesStore</control-param>
                     <control-param name="createNewItemIcon">tag</control-param>
                  </control>
               </field>
               <field id="cm:categories">
                  <control>
                     <control-param name="compactMode">true</control-param>
                  </control>
               </field>
            </appearance>
          </form>

          <!– Document Library pop-up Edit Metadata form –>
         <form id="doclib-simple-metadata">
            <field-visibility>
               <show id="cm:name" />
               <show id="cm:title" force="true" />
               <show id="cm:description" force="true" />
               <!– tags and categories –>
               <show id="cm:taggable" for-mode="edit" force="true" />
               <show id="cm:categories" />
            </field-visibility>
            <edit-form template="../documentlibrary/forms/doclib-simple-metadata.ftl" />
            <appearance>
               <field id="cm:title">
                  <control template="/org/alfresco/components/form/controls/textfield.ftl" />
               </field>
               <field id="cm:description">
                  <control>
                     <control-param name="activateLinks">true</control-param>
                  </control>
               </field>
               <field id="cm:taggable">
                  <control>
                     <control-param name="compactMode">true</control-param>
                     <control-param name="params">aspect=cm:taggable</control-param>
                     <control-param name="createNewItemUri">/api/tag/workspace/SpacesStore</control-param>
                     <control-param name="createNewItemIcon">tag</control-param>
                  </control>
               </field>
               <field id="cm:categories">
                  <control>
                     <control-param name="compactMode">true</control-param>
                  </control>
               </field>
            </appearance>
          </form>
      </forms>
   </config>

   <!– cm:content type (creating nodes) –>
   <config evaluator="model-type" condition="cm:content">
      <forms>
         <!– Default Create Content form –>
         <form>
            <field-visibility>
               <show id="cm:name" />
               <show id="cm:title" force="true" />
               <show id="cm:description" force="true" />
               <show id="cm:content" force="true" />
               <show id="mimetype" />
               <show id="app:editInline" force="true" />
            </field-visibility>
            <appearance>
               <field id="cm:title">
                  <control template="/org/alfresco/components/form/controls/textfield.ftl" />
               </field>
               <field id="cm:content">
                  <control>
                     <control-param name="editorAppearance">explorer</control-param>
                  </control>
               </field>
               <field id="mimetype">
                  <control template="/org/alfresco/components/form/controls/hidden.ftl">
                     <control-param name="contextProperty">mimeType</control-param>
                  </control>
               </field>
               <field id="app:editInline">
                  <control template="/org/alfresco/components/form/controls/hidden.ftl">
                     <control-param name="contextProperty">editInline</control-param>
                  </control>
               </field>
            </appearance>
         </form>
         <!– Document Library Create Google Doc form –>
         <form id="doclib-create-googledoc">
            <field-visibility>
               <show id="cm:name" />
               <show id="cm:title" force="true" />
               <show id="cm:description" force="true" />
               <show id="cm:content" force="true" />
               <show id="mimetype" />
               <show id="gd:googleEditable" force="true" />
            </field-visibility>
            <appearance>
               <field id="cm:title">
                  <control template="/org/alfresco/components/form/controls/textfield.ftl" />
               </field>
               <field id="cm:content">
                  <control>
                     <control-param name="editorAppearance">none</control-param>
                     <control-param name="forceContent">true</control-param>
                  </control>
               </field>
               <field id="mimetype">
                  <control template="/org/alfresco/components/form/controls/hidden.ftl">
                     <control-param name="contextProperty">mimeType</control-param>
                  </control>
               </field>
               <field id="gd:googleEditable">
                  <control template="/org/alfresco/components/form/controls/hidden.ftl">
                     <control-param name="contextProperty">googleEditable</control-param>
                  </control>
               </field>
            </appearance>
         </form>
         <!– Search form –>
         <form id="search">
            <field-visibility>
               <show id="cm:name" />
               <show id="cm:title" force="true" />
               <show id="cm:description" force="true" />
               <show id="mimetype" />
               <show id="cm:modified" />
               <show id="cm:modifier" />
            </field-visibility>
            <appearance>
               <field id="mimetype">
                  <control template="/org/alfresco/components/form/controls/mimetype.ftl" />
               </field>
               <field id="cm:modifier">
                  <control>
                     <control-param name="forceEditable">true</control-param>
                  </control>
               </field>
               <field id="cm:modified">
                  <control template="/org/alfresco/components/form/controls/daterange.ftl" />
               </field>
            </appearance>
         </form>
      </forms>
   </config>

   <!– cm:folder type (creating nodes) –>
   <config evaluator="model-type" condition="cm:folder">
      <forms>
         <!– Document Library Common form –>
         <form id="doclib-common">
            <field-visibility>
               <show id="cm:name" />
               <show id="cm:title" force="true" />
               <show id="cm:description" force="true" />
            </field-visibility>
            <create-form template="../documentlibrary/forms/doclib-common.ftl" />
            <appearance>
               <field id="cm:title">
                  <control template="/org/alfresco/components/form/controls/textfield.ftl" />
               </field>
            </appearance>
         </form>
         <!– Search form –>
         <form id="search">
            <field-visibility>
               <show id="cm:name" />
               <show id="cm:title" force="true" />
               <show id="cm:description" force="true" />
            </field-visibility>
         </form>
      </forms>
   </config>

   <!– trx:transferTarget content type (editing) –>
   <config evaluator="node-type" condition="trx:transferTarget">
      <forms>
         <form>
              <field-visibility>
               <show id="cm:name" />
               <show id="cm:title" force="true" />
               <show id="cm:description" force="true" />
               <show id="trx:endpointhost" />
               <show id="trx:endpointport" />
               <show id="trx:endpointpath" />
               <show id="trx:endpointprotocol" />
               <show id="trx:username" for-mode="edit"/>
               <show id="trx:password" for-mode="edit"/>
               <show id="trx:enabled" force="true" />
            </field-visibility>
            <edit-form template="../documentlibrary/forms/doclib-simple-metadata.ftl" />
            <appearance>
               <field id="cm:title">
                  <control template="/org/alfresco/components/form/controls/textfield.ftl" />
               </field>
               <field id="trx:password">
                  <control template="/org/alfresco/components/form/controls/textfield.ftl">
                     <control-param name="password">true</control-param>
                  </control>
               </field>
               <field id="trx:enabled" label="Transfer Target is enabled" />
            </appearance>
         </form>
      </forms>
   </config>

    <!– ct:doc type (existing nodes) –>
    <config evaluator="node-type" condition="ct:doc">
      <forms>
         <!– Default form configuration for the ct:doc type –>
         <form>
            <field-visibility>
               <show id="cm:name" />
               <show id="cm:title" force="true" />
               <show id="cm:description" force="true" />
               <show id="mimetype" />
               <show id="cm:author" force="true" />
               <show id="size" for-mode="view" />
               <show id="cm:creator" for-mode="view" />
               <show id="cm:created" for-mode="view" />
               <show id="cm:modifier" for-mode="view" />
               <show id="cm:modified" for-mode="view" />
              
               <!– Mes metadonnees cotrans–>
               <show id="ct:doctype" />

               <!– tags and categories –>
               <show id="cm:taggable" for-mode="edit" force="true" />
               <show id="cm:categories" />
              
               <!– cm:dublincore aspect –>
               <show id="cm:publisher"/>
               <show id="cm:contributor"/>
               <show id="cm:type"/>
               <show id="cm:identifier"/>
               <show id="cm:dcsource"/>
               <show id="cm:coverage"/>
               <show id="cm:rights"/>
               <show id="cm:subject"/>
            </field-visibility>
            <appearance>
               <field id="cm:title">
                  <control template="/org/alfresco/components/form/controls/textfield.ftl" />
               </field>
               <field id="cm:description">
                  <control>
                     <control-param name="activateLinks">true</control-param>
                  </control>
               </field>
               <field id="mimetype">
                  <control template="/org/alfresco/components/form/controls/mimetype.ftl" />
               </field>
               <field id="size">
                  <control template="/org/alfresco/components/form/controls/size.ftl" />
               </field>
               <field id="cm:taggable">
                  <control>
                     <control-param name="compactMode">true</control-param>
                     <control-param name="params">aspect=cm:taggable</control-param>
                     <control-param name="createNewItemUri">/api/tag/workspace/SpacesStore</control-param>
                     <control-param name="createNewItemIcon">tag</control-param>
                  </control>
               </field>
               <field id="cm:categories">
                  <control>
                     <control-param name="compactMode">true</control-param>
                  </control>
               </field>
               <field id="cm:originator" read-only="true" />
               <field id="cm:addressee" read-only="true" />
               <field id="cm:addressees" read-only="true" />
               <field id="cm:sentdate" read-only="true" />
               <field id="cm:subjectline" read-only="true" />
            </appearance>
         </form>

         <!– Document Library pop-up Edit Metadata form –>
         <form id="doclib-simple-metadata">
            <field-visibility>
               <show id="cm:name" />
               <show id="cm:title" force="true" />
               <show id="cm:description" force="true" />

               <!– Mes metadonnees cotrans–>
               <show id="ct:doctype" />

               <!– tags and categories –>
               <show id="cm:taggable" for-mode="edit" force="true" />
               <show id="cm:categories" />
            </field-visibility>
            <edit-form template="../documentlibrary/forms/doclib-simple-metadata.ftl" />
            <appearance>
               <field id="cm:title">
                  <control template="/org/alfresco/components/form/controls/textfield.ftl" />
               </field>
               <field id="cm:description">
                  <control>
                     <control-param name="activateLinks">true</control-param>
                  </control>
               </field>
               <field id="cm:taggable">
                  <control>
                     <control-param name="compactMode">true</control-param>
                     <control-param name="params">aspect=cm:taggable</control-param>
                     <control-param name="createNewItemUri">/api/tag/workspace/SpacesStore</control-param>
                     <control-param name="createNewItemIcon">tag</control-param>
                  </control>
               </field>
               <field id="cm:categories">
                  <control>
                     <control-param name="compactMode">true</control-param>
                  </control>
               </field>
            </appearance>
         </form>
        
         <!– Document Library Inline Edit form –>
         <form id="doclib-inline-edit">
            <field-visibility>
               <show id="cm:name" />
               <show id="cm:title" force="true" />
               <show id="cm:description" force="true" />
               <show id="cm:content" force="true" />
            </field-visibility>
            <appearance>
               <field id="cm:title">
                  <control template="/org/alfresco/components/form/controls/textfield.ftl" />
               </field>
               <field id="cm:content">
                  <control>
                     <control-param name="editorAppearance">explorer</control-param>
                     <control-param name="forceEditor">true</control-param>
                  </control>
               </field>
            </appearance>
         </form>
      </forms>
    </config>

   <!–<config evaluator="node-type" condition="sig:doc">
         <forms>
           <form>
             <field-visibility>
               <show id="cm:name" />
               <show id="cm:title" force="true" />
               <show id="cm:description" force="true" />
               <show id="mimetype" />
               <show id="cm:author" force="true" />
               <show id="size" for-mode="view" />
               <show id="cm:creator" for-mode="view" />
               <show id="cm:created" for-mode="view" />
               <show id="cm:modifier" for-mode="view" />
               <show id="cm:modified" for-mode="view" />
              
               <!– Mes metadonnees Sighma–>
                <show id="sig:Service"  />
                <show id="sig:Reference" force="true" />
                <show id="sig:Objet"  />
                <show id="sig:Projet"  />
                <show id="sig:Statut"  />

               <!– tags and categories –>
               <show id="cm:taggable" for-mode="edit" force="true" />
               <show id="cm:categories" />
              
               <!– cm:dublincore aspect –>
               <show id="cm:publisher"/>
               <show id="cm:contributor"/>
               <show id="cm:type"/>
               <show id="cm:identifier"/>
               <show id="cm:dcsource"/>
               <show id="cm:coverage"/>
               <show id="cm:rights"/>
               <show id="cm:subject"/>

             </field-visibility>
             <appearance>
          <!–<field id="sig:Service" label="Service" label-id="label.sig_Service"/>
          <field id="sig:Reference" label="Reference" label-id="label.sig_Reference"/>
          <field id="sig_Objet" label="objet" label-id="label.sig_Objet"/>–>
             </appearance>
          </form>
          <form></form>
         </forms>
       </config>–>

   <!– sig:doc type (existing nodes)–>
    <config evaluator="node-type" condition="sig:doc">
      <forms>
         <!– Default form configuration for the sig:doc type –>
         <form>
            <field-visibility>

               <show id="cm:name" />
               <show id="cm:title" force="true" />
               <show id="cm:description" force="true" />
               <show id="mimetype" />
               <show id="cm:author" force="true" />
               <show id="size" for-mode="view" />
               <show id="cm:creator" for-mode="view" />
               <show id="cm:created" for-mode="view" />
               <show id="cm:modifier" for-mode="view" />
               <show id="cm:modified" for-mode="view" />

         <!– Aspect SIGHMA –>


      <show id="sig:Service" force="true" />
      <show id="sig:Reference" for-mode="view" />
      <show id="sig:Objet" force="true" />
      <show id="sig:Projet" force="true" />
      <show id="sig:Statut" force="true" />

               <!– tags and categories –>
               <show id="cm:taggable" for-mode="edit" force="true" />
               <show id="cm:categories" />
              
               <!– cm:dublincore aspect –>
               <show id="cm:publisher"/>
               <show id="cm:contributor"/>
               <show id="cm:type"/>
               <show id="cm:identifier"/>
               <show id="cm:dcsource"/>
               <show id="cm:coverage"/>
               <show id="cm:rights"/>
               <show id="cm:subject"/>
            </field-visibility>
            <appearance>
               <field id="cm:title">
                  <control template="/org/alfresco/components/form/controls/textfield.ftl" />
               </field>
               <field id="cm:description">
                  <control>
                     <control-param name="activateLinks">true</control-param>
                  </control>
               </field>
               <field id="mimetype">
                  <control template="/org/alfresco/components/form/controls/mimetype.ftl" />
               </field>
               <field id="size">
                  <control template="/org/alfresco/components/form/controls/size.ftl" />
               </field>
               <field id="cm:taggable">
                  <control>
                     <control-param name="compactMode">true</control-param>
                     <control-param name="params">aspect=cm:taggable</control-param>
                     <control-param name="createNewItemUri">/api/tag/workspace/SpacesStore</control-param>
                     <control-param name="createNewItemIcon">tag</control-param>
                  </control>
               </field>
               <field id="cm:categories">
                  <control>
                     <control-param name="compactMode">true</control-param>
                  </control>
               </field>
               <field id="cm:originator" read-only="true" />
               <field id="cm:addressee" read-only="true" />
               <field id="cm:addressees" read-only="true" />
               <field id="cm:sentdate" read-only="true" />
               <field id="cm:subjectline" read-only="true" />
            </appearance>
         </form>

  <!– sig:doc type (creating nodes) Sighma–>
   <config evaluator="model-type" condition="sig:doc">
      <forms>
         <!– Create Sighma form –>
         <form>
            <field-visibility>

               <show id="cm:name" />
      <show id="sig:date" force="true" />
               <show id="cm:title" force="true" />
               <show id="cm:description" force="true" />
      <show id="sig:service" />
      <show id="sig:reference" />
      <show id="sig:objet" />
      <show id="sig:projet" />
      <show id="sig:statut" />
               <show id="cm:content" force="true" />
               <show id="mimetype" />
               <show id="app:editInline" force="true" />
            </field-visibility>
            <appearance>
               <field id="cm:title">
                  <control template="/org/alfresco/components/form/controls/textfield.ftl" />
               </field>
               <field id="cm:content">
                  <control>
                     <control-param name="editorAppearance">explorer</control-param>
                  </control>
               </field>
               <field id="mimetype">
                  <control template="/org/alfresco/components/form/controls/hidden.ftl">
                     <control-param name="contextProperty">mimeType</control-param>
                  </control>
               </field>
               <field id="app:editInline">
                  <control template="/org/alfresco/components/form/controls/hidden.ftl">
                     <control-param name="contextProperty">editInline</control-param>
                  </control>
               </field>
            </appearance>
         </form>
         <!– Document Library Create Google Doc form –>
         <form id="doclib-create-googledoc">
            <field-visibility>
               <show id="cm:name" />
               <show id="cm:title" force="true" />
               <show id="cm:description" force="true" />
               <show id="cm:content" force="true" />
               <show id="mimetype" />
               <show id="gd:googleEditable" force="true" />
            </field-visibility>
            <appearance>
               <field id="cm:title">
                  <control template="/org/alfresco/components/form/controls/textfield.ftl" />
               </field>
               <field id="cm:content">
                  <control>
                     <control-param name="editorAppearance">none</control-param>
                     <control-param name="forceContent">true</control-param>
                  </control>
               </field>
               <field id="mimetype">
                  <control template="/org/alfresco/components/form/controls/hidden.ftl">
                     <control-param name="contextProperty">mimeType</control-param>
                  </control>
               </field>
               <field id="gd:googleEditable">
                  <control template="/org/alfresco/components/form/controls/hidden.ftl">
                     <control-param name="contextProperty">googleEditable</control-param>
                  </control>
               </field>
            </appearance>
         </form>
         <!– Search form –>
         <form id="search">
            <field-visibility>
               <show id="cm:name" />
               <show id="cm:title" force="true" />
               <show id="cm:description" force="true" />
               <show id="mimetype" />
               <show id="cm:modified" />
               <show id="cm:modifier" />
            </field-visibility>
            <appearance>
               <field id="mimetype">
                  <control template="/org/alfresco/components/form/controls/mimetype.ftl" />
               </field>
               <field id="cm:modifier">
                  <control>
                     <control-param name="forceEditable">true</control-param>
                  </control>
               </field>
               <field id="cm:modified">
                  <control template="/org/alfresco/components/form/controls/daterange.ftl" />
               </field>
            </appearance>
         </form>
      </forms>
   </config>


         <!– Document Library pop-up Edit Metadata form –>
         <form id="doclib-simple-metadata">
            <field-visibility>

               <show id="cm:name" />
               <show id="cm:title" force="true" />
               <show id="cm:description" force="true" />

               <!– tags and categories –>
               <show id="cm:taggable" for-mode="edit" force="true" />
               <show id="cm:categories" />
            </field-visibility>
            <edit-form template="../documentlibrary/forms/doclib-simple-metadata.ftl" />
            <appearance>
               <field id="cm:title">
                  <control template="/org/alfresco/components/form/controls/textfield.ftl" />
               </field>
               <field id="cm:description">
                  <control>
                     <control-param name="activateLinks">true</control-param>
                  </control>
               </field>
               <field id="cm:taggable">
                  <control>
                     <control-param name="compactMode">true</control-param>
                     <control-param name="params">aspect=cm:taggable</control-param>
                     <control-param name="createNewItemUri">/api/tag/workspace/SpacesStore</control-param>
                     <control-param name="createNewItemIcon">tag</control-param>
                  </control>
               </field>
               <field id="cm:categories">
                  <control>
                     <control-param name="compactMode">true</control-param>
                  </control>
               </field>
            </appearance>
         </form>
        
         <!– Document Library Inline Edit form –>
         <form id="doclib-inline-edit">
            <field-visibility>

               <show id="cm:name" />
               <show id="cm:title" force="true" />
               <show id="cm:description" force="true" />
               <show id="cm:content" force="true" />

            </field-visibility>
            <appearance>
               <field id="cm:title">
                  <control template="/org/alfresco/components/form/controls/textfield.ftl" />
               </field>
               <field id="cm:content">
                  <control>
                     <control-param name="editorAppearance">explorer</control-param>
                     <control-param name="forceEditor">true</control-param>
                  </control>
               </field>
            </appearance>
         </form>
      </forms>
    </config>

</alfresco-config>

J'ai pu voir mon aspect (plus maintenant d'ailleurs) mais après chargement lorsque je retournais dans la gestion des aspects il n'etait plus dans la colonne de droite (actif)????

Pour la recherche avancé j'ai pu voir aussi mon SIGHMA mais lors du chargement je n'avais que "mots clef" et de plus le bouton recherche etait innoperant je veux dire par la que rien ne se lancait.

Comme me la suggerer Bertrand il me semble qu'il est plus logique de pouvoir appliquer mon aspect comme je le souhaite sur les espaces voulu, mais encore faut il que j'y arrive …

Encore merci a tous de votre aide et surtout a BertrandF.

Pascal
pascal_sighma
Member II

Re: visibilté sous share d'un type fermé trop vite...

Bonjour,

Je n'ai pas eu de réponse donc j'ai continué tout seul mais je suis vraiment une bille j'ai l'impression. Comme a chaque fois cela doit etre un petit truc de rien mais pour l'instant je me casse la tête dessus.

Donc je résume à nouveau :

Je veux créer un aspect et le faire s'afficher dans share. (Je suis passé sur les aspects sur les conseil de BertrandF merci à lui) mais du coup le titre est faux mais bon …

J'ai donc créer un model sighma car je veux tester la validité du truc avant de faire ma demo client … tant qu'a faire autant que cela tourne…

Et pour l'instant je ne vois pas mon aspect dans mes choix dispo… je ne peux donc pas aller plus loin et pourtant aucune erreur de log au demarrage.

J'ai egalement essayé d'afficher comme vous le verrez plus bas un type de recherche avancé et la non plus rien …..

Et j'avoue que je sais plus quoi faire

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

<model name="sig:sighmamodel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
    <description> Aspect modele de base d'enregistrement des documents </description>
    <author></author>
    <version> 1.0 </version>

   <imports>
      <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>

   <namespaces>
      <namespace uri="http://www.sighma.nc/model/content/1.0" prefix="sig"/>
   </namespaces>

<constraints>
      <constraint name="sig:liststatus" type="LIST">
         <parameter name="allowedValues">
            <list>
                  <value> Vide </value>
                  <value> Valide </value>
                  <value> Verif </value>
                  <value> Accepte </value>
            </list>
         </parameter>
      </constraint>  
</constraints>
<types>
</types>
    <aspects>
   <aspect name="sig:doc">
         <title>Documents Sighma</title>
        <properties>
           <property name="sig:date">
        <title>Date</title>
              <type>d:datetime</type>
           </property>
           <property name="sig:service">
        <title>Service</title>
               <type>d:text</type>
      <multiple>true</multiple>
           </property>
           <property name="sig:reference">
        <title>Ref</title>
               <type>d:content</type>
           </property>
           <property name="sig:objet">
        <title>Objet</title>
               <type>d:text</type>
           </property>
           <property name="sig:projet">
        <title>Projet</title>
               <type>d:text</type>
           </property>
           <property name="sig:statut">
        <title>Statut</title>
               <type>d:text</type>
         <constraints>
            <constraint ref="sig:liststatus"/>
         </constraints>
           </property>
        </properties>
        </aspect>
   </aspects>

</model>

sighma-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>

    <!– enregistremnts du model Sighma –>   
    <bean id="sighma.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
        <property name="models">
            <list>
                <value>alfresco/extension/sighmaModel.xml</value>
            </list>
        </property>
    </bean>
         
</beans>

share-config-custom.xml
<alfresco-config>
   <config replace="true">
<config evaluator="string-compare" condition="AdvancedSearch" replace="true">
<advanced-search>
   <forms>
            <form labelId="search.form.label.cm_content" descriptionId="search.form.desc.cm_content">cm:content</form>
            <form labelId="search.form.label.cm_folder" descriptionId="search.form.desc.cm_folder">cm:folder</form>
        <form label="COTRANS" description="Documents Cotrans">ct:doc</form>

   </forms>
</advanced-search>
</config>
  
   <!– Document Library config section –>
   <config evaluator="string-compare" condition="DocumentLibrary" replace="true">

      <!–
         Used by the "Manage Aspects" action

         For custom aspects, remember to also add the relevant i18n string(s)
            cm_myaspect=My Aspect
      –>
      <aspects>
         <!– Aspects that a user can see –>
         <visible>
            <aspect name="sig:doc" />
            <aspect name="cm:generalclassifiable" />
            <aspect name="cm:complianceable" />
            <aspect name="cm:dublincore" />
            <aspect name="cm:effectivity" />
            <aspect name="cm:summarizable" />
            <aspect name="cm:versionable" />
            <aspect name="cm:templatable" />
            <aspect name="cm:emailed" />
            <aspect name="emailserver:aliasable" />
            <aspect name="cm:taggable" />
            <aspect name="app:inlineeditable" />
            <aspect name="gd:googleEditable" />
            <aspect name="cm:geographic" />
            <aspect name="exif:exif" />

         </visible>

         <!– Aspects that a user can add. Same as "visible" if left empty –>
         <addable>
         </addable>

         <!– Aspects that a user can remove. Same as "visible" if left empty –>
         <removeable>
         </removeable>
      </aspects>

      <!–
         Used by the "Change Type" action

         Define valid subtypes using the following example:
            <type name="cm:content">
               <subtype name="cm:mysubtype" />
            </type>

         Remember to also add the relevant i18n string(s):
            cm_mysubtype=My SubType
      –>
      <types>

     <type name="cm:content">
         </type>

      <!–cotrans–>
         <type name="cm:content">
        <subtype name="ct:doc" />
         </type>

     <type name="cm:folder">
         </type>
      </types>

    
   </config>

       <!– cm:content type (existing nodes) –>
       <config evaluator="node-type" condition="cm:content">
          <forms>
             <!– Default form configuration for the cm:content type –>
             <form>
                <field-visibility>
                   <show id="cm:name" />
                   <show id="cm:title" force="true" />
                   <show id="cm:description" force="true" />
                   <show id="mimetype" />
                   <show id="cm:author" force="true" />
                   <show id="size" for-mode="view" />
                   <show id="cm:creator" for-mode="view" />
                   <show id="cm:created" for-mode="view" />
                   <show id="cm:modifier" for-mode="view" />
                   <show id="cm:modified" for-mode="view" />
                  
         <!– sighma –>
                   <show id="sig:service" force="true" />
                   <show id="sig:reference" />
                   <show id="sig:objet" />
                   <show id="sig:projet" />
                   <show id="sig:statut" />

                   <!– tags and categories –>
                   <show id="cm:taggable" for-mode="edit" force="true" />
                   <show id="cm:categories" />
                  
                   <!– cm:dublincore aspect –>
                   <show id="cm:publisher"/>
                   <show id="cm:contributor"/>
                   <show id="cm:type"/>
                   <show id="cm:identifier"/>
                   <show id="cm:dcsource"/>
                   <show id="cm:coverage"/>
                   <show id="cm:rights"/>
                   <show id="cm:subject"/>
                  
                   <!– cm:complianceable aspect –>
                   <show id="cm:removeAfter" />
                  
                   <!– cm:effectivity aspect –>
                   <show id="cm:from"/>
                   <show id="cm:to"/>
                  
                   <!–  cm:summarizable aspect –>
                   <show id="cm:summary" />
                  
                   <!– cm:translatable aspect –>
                   <show id="cm:translations" />
                  
                   <!– cm:localizable aspect –>
                   <show id="cm:locale" />
                  
                   <!– cm:ownable aspect –>
                   <show id="cm:owner" />
                  
                   <!– cm:attachable aspect –>
                   <show id="cm:attachments" />
                  
                   <!– cm:emailed aspect –>
                   <show id="cm:originator" />
                   <show id="cm:addressee" />
                   <show id="cm:addressees" />
                   <show id="cm:sentdate" />
                   <show id="cm:subjectline" />
                  
                   <!– exif:exif aspect –>
                   <show id="exif:dateTimeOriginal" />
                   <show id="exif:pixelXDimension" />
                   <show id="exif:pixelYDimension" />
                   <show id="exif:exposureTime" />
                   <show id="exif:fNumber" />
                   <show id="exif:flash" />
                   <show id="exif:focalLength" />
                   <show id="exif:isoSpeedRatings" />
                   <show id="exif:manufacturer" />
                   <show id="exif:model" />
                   <show id="exif:software" />
                   <show id="exif:orientation" />
                   <show id="exif:xResolution" />
                   <show id="exif:yResolution" />
                   <show id="exif:resolutionUnit" />
                  
                   <!– cm:geographic aspect –>
                   <show id="cm:latitude" />
                   <show id="cm:longitude" />
                </field-visibility>
                <appearance>
                   <field id="cm:title">
                      <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                   </field>
                   <field id="cm:description">
                      <control>
                         <control-param name="activateLinks">true</control-param>
                      </control>
                   </field>
                   <field id="mimetype">
                      <control template="/org/alfresco/components/form/controls/mimetype.ftl" />
                   </field>
                   <field id="size">
                      <control template="/org/alfresco/components/form/controls/size.ftl" />
                   </field>
                   <field id="cm:taggable">
                      <control>
                         <control-param name="compactMode">true</control-param>
                         <control-param name="params">aspect=cm:taggable</control-param>
                         <control-param name="createNewItemUri">/api/tag/workspace/SpacesStore</control-param>
                         <control-param name="createNewItemIcon">tag</control-param>
                      </control>
                   </field>
                   <field id="cm:categories">
                      <control>
                         <control-param name="compactMode">true</control-param>
                      </control>
                   </field>
                   <field id="cm:originator" read-only="true" />
                   <field id="cm:addressee" read-only="true" />
                   <field id="cm:addressees" read-only="true" />
                   <field id="cm:sentdate" read-only="true" />
                   <field id="cm:subjectline" read-only="true" />
                </appearance>
             </form>

             <!– Document Library pop-up Edit Metadata form –>
             <form id="doclib-simple-metadata">
                <field-visibility>
                   <show id="cm:name" />
                   <show id="cm:title" force="true" />
                   <show id="cm:description" force="true" />
                   <!– tags and categories –>
                   <show id="cm:taggable" for-mode="edit" force="true" />
                   <show id="cm:categories" />
                </field-visibility>
                <edit-form template="../documentlibrary/forms/doclib-simple-metadata.ftl" />
                <appearance>
                   <field id="cm:title">
                      <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                   </field>
                   <field id="cm:description">
                      <control>
                         <control-param name="activateLinks">true</control-param>
                      </control>
                   </field>
                   <field id="cm:taggable">
                      <control>
                         <control-param name="compactMode">true</control-param>
                         <control-param name="params">aspect=cm:taggable</control-param>
                         <control-param name="createNewItemUri">/api/tag/workspace/SpacesStore</control-param>
                         <control-param name="createNewItemIcon">tag</control-param>
                      </control>
                   </field>
                   <field id="cm:categories">
                      <control>
                         <control-param name="compactMode">true</control-param>
                      </control>
                   </field>
                </appearance>
             </form>
            
             <!– Document Library Inline Edit form –>
             <form id="doclib-inline-edit">
                <field-visibility>
                   <show id="cm:name" />
                   <show id="cm:title" force="true" />
                   <show id="cm:description" force="true" />
                   <show id="cm:content" force="true" />
                </field-visibility>
                <appearance>
                   <field id="cm:title">
                      <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                   </field>
                   <field id="cm:content">
                      <control>
                         <control-param name="editorAppearance">explorer</control-param>
                         <control-param name="forceEditor">true</control-param>
                      </control>
                   </field>
                </appearance>
             </form>
          </forms>
       </config>

      <!– sig:doc type (existing nodes) –>
    <config evaluator="node-type" condition="sig:doc">
      <forms>
         <!– Default form configuration for the sig:doc type –>
         <form>
            <field-visibility>
               <show id="cm:name" />
               <show id="cm:title" force="true" />
               <show id="cm:description" force="true" />
               <show id="mimetype" />
               <show id="cm:author" force="true" />
               <show id="size" for-mode="view" />
               <show id="cm:creator" for-mode="view" />
               <show id="cm:created" for-mode="view" />
               <show id="cm:modifier" for-mode="view" />
               <show id="cm:modified" for-mode="view" />
              
         <!– sighma –>
                   <show id="sig:service" force="true" />
                   <show id="sig:reference" />
                   <show id="sig:objet" />
                   <show id="sig:projet" />
                   <show id="sig:statut" />

               <!– tags and categories –>
               <show id="cm:taggable" for-mode="edit" force="true" />
               <show id="cm:categories" />
              
               <!– cm:dublincore aspect –>
               <show id="cm:publisher"/>
               <show id="cm:contributor"/>
               <show id="cm:type"/>
               <show id="cm:identifier"/>
               <show id="cm:dcsource"/>
               <show id="cm:coverage"/>
               <show id="cm:rights"/>
               <show id="cm:subject"/>
            </field-visibility>
            <appearance>
               <field id="cm:title">
                  <control template="/org/alfresco/components/form/controls/textfield.ftl" />
               </field>
               <field id="cm:description">
                  <control>
                     <control-param name="activateLinks">true</control-param>
                  </control>
               </field>
               <field id="mimetype">
                  <control template="/org/alfresco/components/form/controls/mimetype.ftl" />
               </field>
               <field id="size">
                  <control template="/org/alfresco/components/form/controls/size.ftl" />
               </field>
               <field id="cm:taggable">
                  <control>
                     <control-param name="compactMode">true</control-param>
                     <control-param name="params">aspect=cm:taggable</control-param>
                     <control-param name="createNewItemUri">/api/tag/workspace/SpacesStore</control-param>
                     <control-param name="createNewItemIcon">tag</control-param>
                  </control>
               </field>
               <field id="cm:categories">
                  <control>
                     <control-param name="compactMode">true</control-param>
                  </control>
               </field>
               <field id="cm:originator" read-only="true" />
               <field id="cm:addressee" read-only="true" />
               <field id="cm:addressees" read-only="true" />
               <field id="cm:sentdate" read-only="true" />
               <field id="cm:subjectline" read-only="true" />
            </appearance>
         </form>


         <!– Document Library pop-up Edit Metadata form –>
         <form id="doclib-simple-metadata">
            <field-visibility>
               <show id="cm:name" />
               <show id="cm:title" force="true" />
               <show id="cm:description" force="true" />

         <!– sighma –>
                   <show id="sig:service" force="true" />
                   <show id="sig:reference" />
                   <show id="sig:objet" />
                   <show id="sig:projet" />
                   <show id="sig:statut" />


               <!– tags and categories –>
               <show id="cm:taggable" for-mode="edit" force="true" />
               <show id="cm:categories" />
            </field-visibility>
            <edit-form template="../documentlibrary/forms/doclib-simple-metadata.ftl" />
            <appearance>
               <field id="cm:title">
                  <control template="/org/alfresco/components/form/controls/textfield.ftl" />
               </field>
               <field id="cm:description">
                  <control>
                     <control-param name="activateLinks">true</control-param>
                  </control>
               </field>
               <field id="cm:taggable">
                  <control>
                     <control-param name="compactMode">true</control-param>
                     <control-param name="params">aspect=cm:taggable</control-param>
                     <control-param name="createNewItemUri">/api/tag/workspace/SpacesStore</control-param>
                     <control-param name="createNewItemIcon">tag</control-param>
                  </control>
               </field>
               <field id="cm:categories">
                  <control>
                     <control-param name="compactMode">true</control-param>
                  </control>
               </field>
            </appearance>
         </form>
        
         <!– Document Library Inline Edit form –>
         <form id="doclib-inline-edit">
            <field-visibility>
               <show id="cm:name" />
               <show id="cm:title" force="true" />
               <show id="cm:description" force="true" />
               <show id="cm:content" force="true" />
            </field-visibility>
            <appearance>
               <field id="cm:title">
                  <control template="/org/alfresco/components/form/controls/textfield.ftl" />
               </field>
               <field id="cm:content">
                  <control>
                     <control-param name="editorAppearance">explorer</control-param>
                     <control-param name="forceEditor">true</control-param>
                  </control>
               </field>
            </appearance>
         </form>
      </forms>
    </config>

   <config evaluator="string-compare" condition="Remote">
      <remote>
         <endpoint>
            <id>alfresco-noauth</id>
            <name>Alfresco - unauthenticated access</name>
            <description>Access to Alfresco Repository WebScripts that do not require authentication</description>
            <connector-id>alfresco</connector-id>
            <endpoint-url>http://localhost:8080/alfresco/s</endpoint-url>
            <identity>none</identity>
         </endpoint>

         <endpoint>
            <id>alfresco</id>
            <name>Alfresco - user access</name>
            <description>Access to Alfresco Repository WebScripts that require user authentication</description>
            <connector-id>alfresco</connector-id>
            <endpoint-url>http://localhost:8080/alfresco/s</endpoint-url>
            <identity>user</identity>
         </endpoint>

         <endpoint>
            <id>alfresco-feed</id>
            <name>Alfresco Feed</name>
            <description>Alfresco Feed - supports basic HTTP authentication via the EndPointProxyServlet</description>
            <connector-id>http</connector-id>
            <endpoint-url>http://localhost:8080/alfresco/s</endpoint-url>
            <basic-auth>true</basic-auth>
            <identity>user</identity>
         </endpoint>
      </remote>
   </config>

</alfresco-config>

share-form-config.xml
<alfresco-config>

   <!– cm:content type (existing nodes) –>
   <config evaluator="node-type" condition="cm:content">
      <forms>
         <!– Default form configuration for the cm:content type –>
         <form>
            <field-visibility>
               <show id="cm:name" />
               <show id="cm:title" force="true" />
               <show id="cm:description" force="true" />
               <show id="mimetype" />
               <show id="cm:author" force="true" />
               <show id="size" for-mode="view" />
               <show id="cm:creator" for-mode="view" />
               <show id="cm:created" for-mode="view" />
               <show id="cm:modifier" for-mode="view" />
               <show id="cm:modified" for-mode="view" />
              
               <!– tags and categories –>
               <show id="cm:taggable" for-mode="edit" force="true" />
               <show id="cm:categories" />
              
               <!– cm:dublincore aspect –>
               <show id="cm:publisher"/>
               <show id="cm:contributor"/>
               <show id="cm:type"/>
               <show id="cm:identifier"/>
               <show id="cm:dcsource"/>
               <show id="cm:coverage"/>
               <show id="cm:rights"/>
               <show id="cm:subject"/>

      <!– Mes metadonnees cotrans–>
      <show id="ct:doctype" />

         <!– sighma –>
                   <show id="sig:service" force="true" />
                   <show id="sig:reference" />
                   <show id="sig:objet" />
                   <show id="sig:projet" />
                   <show id="sig:statut" />

              
               <!– cm:complianceable aspect –>
               <show id="cm:removeAfter" />
              
               <!– cm:effectivity aspect –>
               <show id="cm:from"/>
               <show id="cm:to"/>
              
               <!–  cm:summarizable aspect –>
               <show id="cm:summary" />
              
               <!– cm:translatable aspect –>
               <show id="cm:translations" />
              
               <!– cm:localizable aspect –>
               <show id="cm:locale" />
              
               <!– cm:ownable aspect –>
               <show id="cm:owner" />
              
               <!– cm:attachable aspect –>
               <show id="cm:attachments" />
              
               <!– cm:emailed aspect –>
               <show id="cm:originator" />
               <show id="cm:addressee" />
               <show id="cm:addressees" />
               <show id="cm:sentdate" />
               <show id="cm:subjectline" />
              
               <!– exif:exif aspect –>
               <show id="exif:dateTimeOriginal" />
               <show id="exif:pixelXDimension" />
               <show id="exif:pixelYDimension" />
               <show id="exif:exposureTime" />
               <show id="exif:fNumber" />
               <show id="exif:flash" />
               <show id="exif:focalLength" />
               <show id="exif:isoSpeedRatings" />
               <show id="exif:manufacturer" />
               <show id="exif:model" />
               <show id="exif:software" />
               <show id="exif:orientation" />
               <show id="exif:xResolution" />
               <show id="exif:yResolution" />
               <show id="exif:resolutionUnit" />
              
               <!– cm:geographic aspect –>
               <show id="cm:latitude" />
               <show id="cm:longitude" />
            </field-visibility>
            <appearance>
               <field id="cm:title">
                  <control template="/org/alfresco/components/form/controls/textfield.ftl" />
               </field>
               <field id="cm:description">
                  <control>
                     <control-param name="activateLinks">true</control-param>
                  </control>
               </field>
               <field id="mimetype">
                  <control template="/org/alfresco/components/form/controls/mimetype.ftl" />
               </field>
               <field id="size">
                  <control template="/org/alfresco/components/form/controls/size.ftl" />
               </field>
               <field id="cm:taggable">
                  <control>
                     <control-param name="compactMode">true</control-param>
                     <control-param name="params">aspect=cm:taggable</control-param>
                     <control-param name="createNewItemUri">/api/tag/workspace/SpacesStore</control-param>
                     <control-param name="createNewItemIcon">tag</control-param>
                  </control>
               </field>
               <field id="cm:categories">
                  <control>
                     <control-param name="compactMode">true</control-param>
                  </control>
               </field>
               <field id="cm:originator" read-only="true" />
               <field id="cm:addressee" read-only="true" />
               <field id="cm:addressees" read-only="true" />
               <field id="cm:sentdate" read-only="true" />
               <field id="cm:subjectline" read-only="true" />
            </appearance>
         </form>

         <!– Document Library pop-up Edit Metadata form –>
         <form id="doclib-simple-metadata">
            <field-visibility>
               <show id="cm:name" />
               <show id="cm:title" force="true" />
               <show id="cm:description" force="true" />
               <!– tags and categories –>
               <show id="cm:taggable" for-mode="edit" force="true" />
               <show id="cm:categories" />

            </field-visibility>
            <edit-form template="../documentlibrary/forms/doclib-simple-metadata.ftl" />
            <appearance>
               <field id="cm:title">
                  <control template="/org/alfresco/components/form/controls/textfield.ftl" />
               </field>
               <field id="cm:description">
                  <control>
                     <control-param name="activateLinks">true</control-param>
                  </control>
               </field>
               <field id="cm:taggable">
                  <control>
                     <control-param name="compactMode">true</control-param>
                     <control-param name="params">aspect=cm:taggable</control-param>
                     <control-param name="createNewItemUri">/api/tag/workspace/SpacesStore</control-param>
                     <control-param name="createNewItemIcon">tag</control-param>
                  </control>
               </field>
               <field id="cm:categories">
                  <control>
                     <control-param name="compactMode">true</control-param>
                  </control>
               </field>
            </appearance>
         </form>
        
         <!– Document Library Inline Edit form –>
         <form id="doclib-inline-edit">
            <field-visibility>
               <show id="cm:name" />
               <show id="cm:title" force="true" />
               <show id="cm:description" force="true" />
               <show id="cm:content" force="true" />

            </field-visibility>
            <appearance>
               <field id="cm:title">
                  <control template="/org/alfresco/components/form/controls/textfield.ftl" />
               </field>
               <field id="cm:content">
                  <control>
                     <control-param name="editorAppearance">explorer</control-param>
                     <control-param name="forceEditor">true</control-param>
                  </control>
               </field>
            </appearance>
         </form>
      </forms>
   </config>
  
   <!– cm:folder type (existing nodes) –>
   <config evaluator="node-type" condition="cm:folder">
      <forms>
         <!– Default form configuration for the cm:folder type –>
         <form>
            <field-visibility>
               <show id="cm:name" />
               <show id="cm:title" force="true" />
               <show id="cm:description" force="true" />

               <!– tags and categories –>
               <show id="cm:taggable" for-mode="edit" force="true" />
               <show id="cm:categories" />
            </field-visibility>
            <appearance>
               <field id="cm:title">
                  <control template="/org/alfresco/components/form/controls/textfield.ftl" />
               </field>
               <field id="cm:description">
                  <control>
                     <control-param name="activateLinks">true</control-param>
                  </control>
               </field>
               <field id="cm:taggable">
                  <control>
                     <control-param name="compactMode">true</control-param>
                     <control-param name="params">aspect=cm:taggable</control-param>
                     <control-param name="createNewItemUri">/api/tag/workspace/SpacesStore</control-param>
                     <control-param name="createNewItemIcon">tag</control-param>
                  </control>
               </field>
               <field id="cm:categories">
                  <control>
                     <control-param name="compactMode">true</control-param>
                  </control>
               </field>
            </appearance>
          </form>

          <!– Document Library pop-up Edit Metadata form –>
         <form id="doclib-simple-metadata">
            <field-visibility>
               <show id="cm:name" />
               <show id="cm:title" force="true" />
               <show id="cm:description" force="true" />
               <!– tags and categories –>
               <show id="cm:taggable" for-mode="edit" force="true" />
               <show id="cm:categories" />
            </field-visibility>
            <edit-form template="../documentlibrary/forms/doclib-simple-metadata.ftl" />
            <appearance>
               <field id="cm:title">
                  <control template="/org/alfresco/components/form/controls/textfield.ftl" />
               </field>
               <field id="cm:description">
                  <control>
                     <control-param name="activateLinks">true</control-param>
                  </control>
               </field>
               <field id="cm:taggable">
                  <control>
                     <control-param name="compactMode">true</control-param>
                     <control-param name="params">aspect=cm:taggable</control-param>
                     <control-param name="createNewItemUri">/api/tag/workspace/SpacesStore</control-param>
                     <control-param name="createNewItemIcon">tag</control-param>
                  </control>
               </field>
               <field id="cm:categories">
                  <control>
                     <control-param name="compactMode">true</control-param>
                  </control>
               </field>
            </appearance>
          </form>
      </forms>
   </config>

   <!– cm:content type (creating nodes) –>
   <config evaluator="model-type" condition="cm:content">
      <forms>
         <!– Default Create Content form –>
         <form>
            <field-visibility>
               <show id="cm:name" />
               <show id="cm:title" force="true" />
               <show id="cm:description" force="true" />
               <show id="cm:content" force="true" />
               <show id="mimetype" />
               <show id="app:editInline" force="true" />

            </field-visibility>
            <appearance>
               <field id="cm:title">
                  <control template="/org/alfresco/components/form/controls/textfield.ftl" />
               </field>
               <field id="cm:content">
                  <control>
                     <control-param name="editorAppearance">explorer</control-param>
                  </control>
               </field>
               <field id="mimetype">
                  <control template="/org/alfresco/components/form/controls/hidden.ftl">
                     <control-param name="contextProperty">mimeType</control-param>
                  </control>
               </field>
               <field id="app:editInline">
                  <control template="/org/alfresco/components/form/controls/hidden.ftl">
                     <control-param name="contextProperty">editInline</control-param>
                  </control>
               </field>
            </appearance>
         </form>
         <!– Document Library Create Google Doc form –>
         <form id="doclib-create-googledoc">
            <field-visibility>
               <show id="cm:name" />
               <show id="cm:title" force="true" />
               <show id="cm:description" force="true" />
               <show id="cm:content" force="true" />
               <show id="mimetype" />
               <show id="gd:googleEditable" force="true" />

            </field-visibility>
            <appearance>
               <field id="cm:title">
                  <control template="/org/alfresco/components/form/controls/textfield.ftl" />
               </field>
               <field id="cm:content">
                  <control>
                     <control-param name="editorAppearance">none</control-param>
                     <control-param name="forceContent">true</control-param>
                  </control>
               </field>
               <field id="mimetype">
                  <control template="/org/alfresco/components/form/controls/hidden.ftl">
                     <control-param name="contextProperty">mimeType</control-param>
                  </control>
               </field>
               <field id="gd:googleEditable">
                  <control template="/org/alfresco/components/form/controls/hidden.ftl">
                     <control-param name="contextProperty">googleEditable</control-param>
                  </control>
               </field>
            </appearance>
         </form>
         <!– Search form –>
         <form id="search">
            <field-visibility>
               <show id="cm:name" />
               <show id="cm:title" force="true" />
               <show id="cm:description" force="true" />
               <show id="mimetype" />
               <show id="cm:modified" />
               <show id="cm:modifier" />

            </field-visibility>
            <appearance>
               <field id="mimetype">
                  <control template="/org/alfresco/components/form/controls/mimetype.ftl" />
               </field>
               <field id="cm:modifier">
                  <control>
                     <control-param name="forceEditable">true</control-param>
                  </control>
               </field>
               <field id="cm:modified">
                  <control template="/org/alfresco/components/form/controls/daterange.ftl" />
               </field>
            </appearance>
         </form>
      </forms>
   </config>

   <!– cm:folder type (creating nodes) –>
   <config evaluator="model-type" condition="cm:folder">
      <forms>
         <!– Document Library Common form –>
         <form id="doclib-common">
            <field-visibility>
               <show id="cm:name" />
               <show id="cm:title" force="true" />
               <show id="cm:description" force="true" />
            </field-visibility>
            <create-form template="../documentlibrary/forms/doclib-common.ftl" />
            <appearance>
               <field id="cm:title">
                  <control template="/org/alfresco/components/form/controls/textfield.ftl" />
               </field>
            </appearance>
         </form>
         <!– Search form –>
         <form id="search">
            <field-visibility>
               <show id="cm:name" />
               <show id="cm:title" force="true" />
               <show id="cm:description" force="true" />
            </field-visibility>
         </form>
      </forms>
   </config>

         <!– sighma –>
                   <show id="sig:service" force="true" />
                   <show id="sig:reference" />
                   <show id="sig:objet" />
                   <show id="sig:projet" />
                   <show id="sig:statut" />


               <!– tags and categories –>
               <show id="cm:taggable" for-mode="edit" force="true" />
               <show id="cm:categories" />
            </field-visibility>
            <edit-form template="../documentlibrary/forms/doclib-simple-metadata.ftl" />
            <appearance>
               <field id="cm:title">
                  <control template="/org/alfresco/components/form/controls/textfield.ftl" />
               </field>
               <field id="cm:description">
                  <control>
                     <control-param name="activateLinks">true</control-param>
                  </control>
               </field>
               <field id="cm:taggable">
                  <control>
                     <control-param name="compactMode">true</control-param>
                     <control-param name="params">aspect=cm:taggable</control-param>
                     <control-param name="createNewItemUri">/api/tag/workspace/SpacesStore</control-param>
                     <control-param name="createNewItemIcon">tag</control-param>
                  </control>
               </field>
               <field id="cm:categories">
                  <control>
                     <control-param name="compactMode">true</control-param>
                  </control>
               </field>
            </appearance>
         </form>
        
         <!– Document Library Inline Edit form –>
         <form id="doclib-inline-edit">
            <field-visibility>
               <show id="cm:name" />
               <show id="cm:title" force="true" />
               <show id="cm:description" force="true" />
               <show id="cm:content" force="true" />
            </field-visibility>
            <appearance>
               <field id="cm:title">
                  <control template="/org/alfresco/components/form/controls/textfield.ftl" />
               </field>
               <field id="cm:content">
                  <control>
                     <control-param name="editorAppearance">explorer</control-param>
                     <control-param name="forceEditor">true</control-param>
                  </control>
               </field>
            </appearance>
         </form>
      </forms>
    </config>

   <!– trx:transferTarget content type (editing) –>
   <config evaluator="node-type" condition="trx:transferTarget">
      <forms>
         <form>
              <field-visibility>
               <show id="cm:name" />
               <show id="cm:title" force="true" />
               <show id="cm:description" force="true" />
               <show id="trx:endpointhost" />
               <show id="trx:endpointport" />
               <show id="trx:endpointpath" />
               <show id="trx:endpointprotocol" />
               <show id="trx:username" for-mode="edit"/>
               <show id="trx:password" for-mode="edit"/>
               <show id="trx:enabled" force="true" />
            </field-visibility>
            <edit-form template="../documentlibrary/forms/doclib-simple-metadata.ftl" />
            <appearance>
               <field id="cm:title">
                  <control template="/org/alfresco/components/form/controls/textfield.ftl" />
               </field>
               <field id="trx:password">
                  <control template="/org/alfresco/components/form/controls/textfield.ftl">
                     <control-param name="password">true</control-param>
                  </control>
               </field>
               <field id="trx:enabled" label="Transfer Target is enabled" />
            </appearance>
         </form>
      </forms>
   </config>

</alfresco-config>

J'avance un peu en aveugle n'ayant jamais eu de formation ni en XML ni sur Alfresco en general..

HELP ME

Pascal
pascal_sighma
Member II

Re: visibilté sous share d'un type fermé trop vite...

Bonjour a tous,

J'ai avancé durant le WE.  Smiley Tongue

Donc mon aspect fonctionne et apparait etc…

je veux donc maintenant passer aux "type", logique…  Smiley Happy

J'ai donc creer un nouveau model avec son context associé a priori jusque la pas de souci.
Le souci est que je ne veux pas lui mettre cm:content en parent, car je veux un type complétement indépendant, et dans ma logique si je lui fait une parentalité avec content il en sera grandement dépendant.

Mon souci :

Mon "type" n'apparait pas dans la liste de share pour modification du type. Pourtant j'ia déclaré mon type dasn share config????  Smiley Sad

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


<!– The important part here is the name - Note: the use of the my: namespace
     which is defined further on in the document –>
<model name="mod:docmodel" xmlns="http://www.alfresco.org/model/dictionary/1.0">

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

   <!– Imports are required to allow references to definitions in other models –>  
    <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 my.new.model should be changed to reflect your own namespace –>
    <namespaces>
        <namespace uri="mod.sighma.model" prefix="mod"/>
    </namespaces>
  
    <types>
  
      <!– Definition of new Content Type: documents types alfresco –>
        <type name="mod:dta">
            <title>Documents type Alfresco</title>
            <properties>
                <property name="mod:name">
                    <title>Nom</title>
                    <type>d:text</type>
                </property>
                <property name="mod:date">
                    <title>Date</title>
                    <type>d:datetime</type>
                </property>
                <property name="mod:service">
                    <title>Service</title>
                    <type>d:text</type>
                    <multiple>true</multiple>
                </property>
                <property name="mod:reference">
                    <title>Ref</title>
                    <type>d:content</type>
                </property>
                <property name="mod:objet">
                    <title>Objet</title>
                    <type>d:text</type>
                </property>
                <property name="mod:projet">
                    <title>Projet</title>
                    <type>d:text</type>
                </property>
            </properties>
        </type>
    </types>
   
    <aspects>     
    </aspects>
  
</model>

Et mon share-config-custom.xml

<alfresco-config>
    <config evaluator="string-compare" condition="AdvancedSearch" replace="true">
        <advanced-search>
            <forms>
                <form labelId="search.form.label.cm_content" descriptionId="search.form.desc.cm_content">cm:content</form>
                <form labelId="search.form.label.cm_folder" descriptionId="search.form.desc.cm_folder">cm:folder</form>
                <form label="COTRANS" description="Documents Cotrans">ct:doc</form>
                <form label="SIGHMA" description="Documents type Sighma">dm:dta</form>

            </forms>
        </advanced-search>
    </config>

   <!– Document Library config section –>
    <config evaluator="string-compare" condition="DocumentLibrary" replace="true">

      <!–
         Used by the "Manage Aspects" action

         For custom aspects, remember to also add the relevant i18n string(s)
            cm_myaspect=My Aspect
      –>
        <aspects>
         <!– Aspects that a user can see –>
            <visible>
                <aspect name="cm:generalclassifiable" />
                <aspect name="cm:complianceable" />
                <aspect name="cm:dublincore" />
                <aspect name="cm:effectivity" />
                <aspect name="cm:summarizable" />
                <aspect name="cm:versionable" />
                <aspect name="cm:templatable" />
                <aspect name="cm:emailed" />
                <aspect name="emailserver:aliasable" />
                <aspect name="cm:taggable" />
                <aspect name="app:inlineeditable" />
                <aspect name="gd:googleEditable" />
                <aspect name="cm:geographic" />
                <aspect name="exif:exif" />
                <aspect name="sig:doc" />
            </visible>

         <!– Aspects that a user can add. Same as "visible" if left empty –>
            <addable>
            </addable>

         <!– Aspects that a user can remove. Same as "visible" if left empty –>
            <removeable>
            </removeable>
        </aspects>

      <!–
         Used by the "Change Type" action

         Define valid subtypes using the following example:
            <type name="cm:content">
               <subtype name="cm:mysubtype" />
            </type>

         Remember to also add the relevant i18n string(s):
            cm_mysubtype=My SubType
      –>
        <types>

            <type name="cm:content">
                <subtype name="ct:doc" />
            </type>
            <type name="cm:content">
                <subtype name="mod:dta" />
            </type>
            <type name="cm:folder">
            </type>
        </types>


    </config>

       <!– cm:content type (existing nodes) –>
    <config evaluator="node-type" condition="cm:content">
        <forms>
             <!– Default form configuration for the cm:content type –>
            <form>
                <field-visibility>
                    <show id="cm:name" />
                    <show id="cm:title" force="true" />
                    <show id="cm:description" force="true" />
                    <show id="mimetype" />
                    <show id="cm:author" force="true" />
                    <show id="size" for-mode="view" />
                    <show id="cm:creator" for-mode="view" />
                    <show id="cm:created" for-mode="view" />
                    <show id="cm:modifier" for-mode="view" />
                    <show id="cm:modified" for-mode="view" />

                   <!– tags and categories –>
                    <show id="cm:taggable" for-mode="edit" force="true" />
                    <show id="cm:categories" />

                   <!– cm:dublincore aspect –>
                    <show id="cm:publisher"/>
                    <show id="cm:contributor"/>
                    <show id="cm:type"/>
                    <show id="cm:identifier"/>
                    <show id="cm:dcsource"/>
                    <show id="cm:coverage"/>
                    <show id="cm:rights"/>
                    <show id="cm:subject"/>

                   <!– cm:complianceable aspect –>
                    <show id="cm:removeAfter" />

                   <!– cm:effectivity aspect –>
                    <show id="cm:from"/>
                    <show id="cm:to"/>

                   <!–  cm:summarizable aspect –>
                    <show id="cm:summary" />

                   <!– cm:translatable aspect –>
                    <show id="cm:translations" />

                   <!– cm:localizable aspect –>
                    <show id="cm:locale" />

                   <!– cm:ownable aspect –>
                    <show id="cm:owner" />

                   <!– cm:attachable aspect –>
                    <show id="cm:attachments" />

                   <!– cm:emailed aspect –>
                    <show id="cm:originator" />
                    <show id="cm:addressee" />
                    <show id="cm:addressees" />
                    <show id="cm:sentdate" />
                    <show id="cm:subjectline" />

                   <!– exif:exif aspect –>
                    <show id="exif:dateTimeOriginal" />
                    <show id="exif:pixelXDimension" />
                    <show id="exif:pixelYDimension" />
                    <show id="exif:exposureTime" />
                    <show id="exif:fNumber" />
                    <show id="exif:flash" />
                    <show id="exif:focalLength" />
                    <show id="exif:isoSpeedRatings" />
                    <show id="exif:manufacturer" />
                    <show id="exif:model" />
                    <show id="exif:software" />
                    <show id="exif:orientation" />
                    <show id="exif:xResolution" />
                    <show id="exif:yResolution" />
                    <show id="exif:resolutionUnit" />

                   <!– cm:geographic aspect –>
                    <show id="cm:latitude" />
                    <show id="cm:longitude" />

                   <!– sighma –>
                    <show id="sig:service" />         
                    <show id="sig:reference" />
                    <show id="sig:objet" />
                    <show id="sig:projet" />
                    <show id="sig:statut" />

                </field-visibility>
                <appearance>
                    <field id="cm:title">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="cm:description">
                        <control>
                            <control-param name="activateLinks">true</control-param>
                        </control>
                    </field>
                    <field id="mimetype">
                        <control template="/org/alfresco/components/form/controls/mimetype.ftl" />
                    </field>
                    <field id="size">
                        <control template="/org/alfresco/components/form/controls/size.ftl" />
                    </field>
                    <field id="cm:taggable">
                        <control>
                            <control-param name="compactMode">true</control-param>
                            <control-param name="params">aspect=cm:taggable</control-param>
                            <control-param name="createNewItemUri">/api/tag/workspace/SpacesStore</control-param>
                            <control-param name="createNewItemIcon">tag</control-param>
                        </control>
                    </field>
                    <field id="cm:categories">
                        <control>
                            <control-param name="compactMode">true</control-param>
                        </control>
                    </field>
                    <field id="cm:originator" read-only="true" />
                    <field id="cm:addressee" read-only="true" />
                    <field id="cm:addressees" read-only="true" />
                    <field id="cm:sentdate" read-only="true" />
                    <field id="cm:subjectline" read-only="true" />
                </appearance>
            </form>

             <!– Document Library pop-up Edit Metadata form –>
            <form id="doclib-simple-metadata">
                <field-visibility>
                    <show id="cm:name" />
                    <show id="cm:title" force="true" />
                    <show id="cm:description" force="true" />
                   <!– tags and categories –>
                    <show id="cm:taggable" for-mode="edit" force="true" />
                    <show id="cm:categories" />
                   
                    <!– sighma –>
                    <show id="sig:service" />
                   
                </field-visibility>
                <edit-form template="../documentlibrary/forms/doclib-simple-metadata.ftl" />
                <appearance>
                    <field id="cm:title">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="cm:description">
                        <control>
                            <control-param name="activateLinks">true</control-param>
                        </control>
                    </field>
                    <field id="cm:taggable">
                        <control>
                            <control-param name="compactMode">true</control-param>
                            <control-param name="params">aspect=cm:taggable</control-param>
                            <control-param name="createNewItemUri">/api/tag/workspace/SpacesStore</control-param>
                            <control-param name="createNewItemIcon">tag</control-param>
                        </control>
                    </field>
                    <field id="cm:categories">
                        <control>
                            <control-param name="compactMode">true</control-param>
                        </control>
                    </field>
                </appearance>
            </form>

             <!– Document Library Inline Edit form –>
            <form id="doclib-inline-edit">
                <field-visibility>
                    <show id="cm:name" />
                    <show id="cm:title" force="true" />
                    <show id="cm:description" force="true" />
                    <show id="cm:content" force="true" />
                   
                    <!– sighma –>
                    <show id="sig:service" />
                   
                </field-visibility>
                <appearance>
                    <field id="cm:title">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="cm:content">
                        <control>
                            <control-param name="editorAppearance">explorer</control-param>
                            <control-param name="forceEditor">true</control-param>
                        </control>
                    </field>
                </appearance>
            </form>
        </forms>
    </config>

    <config evaluator="node-type" condition="mod:dta">
        <forms>
            <form>
                <field-visibility>
                    <show id="mod:name"  />
                    <show id="mod:date"  />
                    <show id="mod:service"  />
                    <show id="mod:reference"  />
                    <show id="mod:objet"  />
                    <show id="mod:projet"  />
                </field-visibility>
                <appearance>
                    <field id="mod:date">
                        <control template="/org/alfresco/components/form/controls/daterange.ftl" />
                    </field>
                </appearance>
                <form id="search">
                    <field-visibility>
                        <show id="mod:name" />
                        <show id="mod:date" force="true" />
                        <show id="mod:service"  />
                        <show id="mod:reference"  />
                        <show id="mod:objet"  />
                        <show id="mod:projet"  />
                    </field-visibility>
                </form>
            </form>
            <form>
             
            </form>
        </forms>
    </config>


    <config evaluator="string-compare" condition="Remote">
        <remote>
            <endpoint>
                <id>alfresco-noauth</id>
                <name>Alfresco - unauthenticated access</name>
                <description>Access to Alfresco Repository WebScripts that do not require authentication</description>
                <connector-id>alfresco</connector-id>
                <endpoint-url>http://localhost:8080/alfresco/s</endpoint-url>
                <identity>none</identity>
            </endpoint>

            <endpoint>
                <id>alfresco</id>
                <name>Alfresco - user access</name>
                <description>Access to Alfresco Repository WebScripts that require user authentication</description>
                <connector-id>alfresco</connector-id>
                <endpoint-url>http://localhost:8080/alfresco/s</endpoint-url>
                <identity>user</identity>
            </endpoint>

            <endpoint>
                <id>alfresco-feed</id>
                <name>Alfresco Feed</name>
                <description>Alfresco Feed - supports basic HTTP authentication via the EndPointProxyServlet</description>
                <connector-id>http</connector-id>
                <endpoint-url>http://localhost:8080/alfresco/s</endpoint-url>
                <basic-auth>true</basic-auth>
                <identity>user</identity>
            </endpoint>
        </remote>
    </config>

    <config evaluator="string-compare" condition="Action Wizards">
        <aspects>
            <aspect name="sig:doc"/>
        </aspects>
      <content-types>
   <type name="mod:dta"/>
      </content-types>
    </config>

</alfresco-config>

Je n'ai pas eu bcp de rep sur les precedents post j'espere que vous pourrez m'aider sur celui la…

Bonne semaine a tous

Pascal
bertrandf
Active Member

Re: visibilté sous share d'un type fermé trop vite...

Bonjour,

Etant donné que votre type n'hérite pas du type cm:content, il ne faut pas le déclarer comme sous-type dans le fichier share-config-custom.xml

Vous faites ceci :
        <types>
            <type name="cm:content">
                <subtype name="mod:dta" />
            </type>
        </types>

Alors qu'il faut faire :
        <types>
            <type name="mod:dta" />
        </types>
pascal_sighma
Member II

Re: visibilté sous share d'un type fermé trop vite...

Bonjour Bertrand,

Merci pour l'info. Malheureusement cela ne change pas mon affichage, …, il doit donc y avoir autre chose  :?:

Je continue à chercher et avec mon décalage horaire j'aurais fait ma journée de recherche, avant que vous ne voyez ce post.
Mais c pas dit que je trouve  :!:

Merci encore Bertrand

Pascal
pascal_sighma
Member II

Re: visibilté sous share d'un type fermé trop vite...

Fin de journée,

Je confirme que cela n'a pas changer l'apparition de mon "type".

je remet mon share-config-custom ainsi que le share-form, je suis persuadé que le pb vient de la mais je ne sais pas l'identifier ce fameux pb donc pour le résoudre c galère.


<alfresco-config>
    <config evaluator="string-compare" condition="AdvancedSearch" replace="true">
        <advanced-search>
            <forms>
                <form labelId="search.form.label.cm_content" descriptionId="search.form.desc.cm_content">cm:content</form>
                <form labelId="search.form.label.cm_folder" descriptionId="search.form.desc.cm_folder">cm:folder</form>
                <form label="COTRANS" description="Documents Cotrans">ct:doc</form>
                <form label="SIGHMA" description="Documents types">mod:dta</form>

            </forms>
        </advanced-search>
    </config>

   <!– Document Library config section –>
    <config evaluator="string-compare" condition="DocumentLibrary" replace="true">

      <!–
         Used by the "Manage Aspects" action

         For custom aspects, remember to also add the relevant i18n string(s)
            cm_myaspect=My Aspect
      –>
        <aspects>
         <!– Aspects that a user can see –>
            <visible>
                <aspect name="cm:generalclassifiable" />
                <aspect name="cm:complianceable" />
                <aspect name="cm:dublincore" />
                <aspect name="cm:effectivity" />
                <aspect name="cm:summarizable" />
                <aspect name="cm:versionable" />
                <aspect name="cm:templatable" />
                <aspect name="cm:emailed" />
                <aspect name="emailserver:aliasable" />
                <aspect name="cm:taggable" />
                <aspect name="app:inlineeditable" />
                <aspect name="gd:googleEditable" />
                <aspect name="cm:geographic" />
                <aspect name="exif:exif" />
                <aspect name="sig:doc" />
            </visible>

         <!– Aspects that a user can add. Same as "visible" if left empty –>
            <addable>
            </addable>

         <!– Aspects that a user can remove. Same as "visible" if left empty –>
            <removeable>
            </removeable>
        </aspects>

      <!–
         Used by the "Change Type" action

         Define valid subtypes using the following example:
            <type name="cm:content">
               <subtype name="cm:mysubtype" />
            </type>

         Remember to also add the relevant i18n string(s):
            cm_mysubtype=My SubType
      –>
        <types>

      <!– sighma–>
            <type name="mod:dta" />

      <!–cotrans–>
            <type name="cm:content">
                <subtype name="ct:doc" />
            </type>

            <type name="cm:folder">
            </type>
        </types>


    </config>

       <!– cm:content type (existing nodes) –>
    <config evaluator="node-type" condition="cm:content">
        <forms>
             <!– Default form configuration for the cm:content type –>
            <form>
                <field-visibility>
                    <show id="cm:name" />
                    <show id="cm:title" force="true" />
                    <show id="cm:description" force="true" />
                    <show id="mimetype" />
                    <show id="cm:author" force="true" />
                    <show id="size" for-mode="view" />
                    <show id="cm:creator" for-mode="view" />
                    <show id="cm:created" for-mode="view" />
                    <show id="cm:modifier" for-mode="view" />
                    <show id="cm:modified" for-mode="view" />

                   <!– tags and categories –>
                    <show id="cm:taggable" for-mode="edit" force="true" />
                    <show id="cm:categories" />

                   <!– cm:dublincore aspect –>
                    <show id="cm:publisher"/>
                    <show id="cm:contributor"/>
                    <show id="cm:type"/>
                    <show id="cm:identifier"/>
                    <show id="cm:dcsource"/>
                    <show id="cm:coverage"/>
                    <show id="cm:rights"/>
                    <show id="cm:subject"/>

                   <!– cm:complianceable aspect –>
                    <show id="cm:removeAfter" />

                   <!– cm:effectivity aspect –>
                    <show id="cm:from"/>
                    <show id="cm:to"/>

                   <!–  cm:summarizable aspect –>
                    <show id="cm:summary" />

                   <!– cm:translatable aspect –>
                    <show id="cm:translations" />

                   <!– cm:localizable aspect –>
                    <show id="cm:locale" />

                   <!– cm:ownable aspect –>
                    <show id="cm:owner" />

                   <!– cm:attachable aspect –>
                    <show id="cm:attachments" />

                   <!– cm:emailed aspect –>
                    <show id="cm:originator" />
                    <show id="cm:addressee" />
                    <show id="cm:addressees" />
                    <show id="cm:sentdate" />
                    <show id="cm:subjectline" />

                   <!– exif:exif aspect –>
                    <show id="exif:dateTimeOriginal" />
                    <show id="exif:pixelXDimension" />
                    <show id="exif:pixelYDimension" />
                    <show id="exif:exposureTime" />
                    <show id="exif:fNumber" />
                    <show id="exif:flash" />
                    <show id="exif:focalLength" />
                    <show id="exif:isoSpeedRatings" />
                    <show id="exif:manufacturer" />
                    <show id="exif:model" />
                    <show id="exif:software" />
                    <show id="exif:orientation" />
                    <show id="exif:xResolution" />
                    <show id="exif:yResolution" />
                    <show id="exif:resolutionUnit" />

                   <!– cm:geographic aspect –>
                    <show id="cm:latitude" />
                    <show id="cm:longitude" />

                   <!– sighma aspect–>
                    <show id="sig:service" />           
                    <show id="sig:reference" />
                    <show id="sig:objet" />
                    <show id="sig:projet" />

                </field-visibility>
                <appearance>
                    <field id="cm:title">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="cm:description">
                        <control>
                            <control-param name="activateLinks">true</control-param>
                        </control>
                    </field>
                    <field id="mimetype">
                        <control template="/org/alfresco/components/form/controls/mimetype.ftl" />
                    </field>
                    <field id="size">
                        <control template="/org/alfresco/components/form/controls/size.ftl" />
                    </field>
                    <field id="cm:taggable">
                        <control>
                            <control-param name="compactMode">true</control-param>
                            <control-param name="params">aspect=cm:taggable</control-param>
                            <control-param name="createNewItemUri">/api/tag/workspace/SpacesStore</control-param>
                            <control-param name="createNewItemIcon">tag</control-param>
                        </control>
                    </field>
                    <field id="cm:categories">
                        <control>
                            <control-param name="compactMode">true</control-param>
                        </control>
                    </field>
                    <field id="cm:originator" read-only="true" />
                    <field id="cm:addressee" read-only="true" />
                    <field id="cm:addressees" read-only="true" />
                    <field id="cm:sentdate" read-only="true" />
                    <field id="cm:subjectline" read-only="true" />
                </appearance>
            </form>

             <!– Document Library pop-up Edit Metadata form –>
            <form id="doclib-simple-metadata">
                <field-visibility>
                    <show id="cm:name" />
                    <show id="cm:title" force="true" />
                    <show id="cm:description" force="true" />
                   <!– tags and categories –>
                    <show id="cm:taggable" for-mode="edit" force="true" />
                    <show id="cm:categories" />
                   
                    <!– sighma –>
                    <show id="sig:service" />
                   
                </field-visibility>
                <edit-form template="../documentlibrary/forms/doclib-simple-metadata.ftl" />
                <appearance>
                    <field id="cm:title">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="cm:description">
                        <control>
                            <control-param name="activateLinks">true</control-param>
                        </control>
                    </field>
                    <field id="cm:taggable">
                        <control>
                            <control-param name="compactMode">true</control-param>
                            <control-param name="params">aspect=cm:taggable</control-param>
                            <control-param name="createNewItemUri">/api/tag/workspace/SpacesStore</control-param>
                            <control-param name="createNewItemIcon">tag</control-param>
                        </control>
                    </field>
                    <field id="cm:categories">
                        <control>
                            <control-param name="compactMode">true</control-param>
                        </control>
                    </field>
                </appearance>
            </form>

             <!– Document Library Inline Edit form –>
            <form id="doclib-inline-edit">
                <field-visibility>
                    <show id="cm:name" />
                    <show id="cm:title" force="true" />
                    <show id="cm:description" force="true" />
                    <show id="cm:content" force="true" />
                   
                    <!– sighma –>
                    <show id="sig:service" />
                   
                </field-visibility>
                <appearance>
                    <field id="cm:title">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="cm:content">
                        <control>
                            <control-param name="editorAppearance">explorer</control-param>
                            <control-param name="forceEditor">true</control-param>
                        </control>
                    </field>
                </appearance>
            </form>
        </forms>
    </config>

    <config evaluator="string-compare" condition="Remote">
        <remote>
            <endpoint>
                <id>alfresco-noauth</id>
                <name>Alfresco - unauthenticated access</name>
                <description>Access to Alfresco Repository WebScripts that do not require authentication</description>
                <connector-id>alfresco</connector-id>
                <endpoint-url>http://localhost:8080/alfresco/s</endpoint-url>
                <identity>none</identity>
            </endpoint>

            <endpoint>
                <id>alfresco</id>
                <name>Alfresco - user access</name>
                <description>Access to Alfresco Repository WebScripts that require user authentication</description>
                <connector-id>alfresco</connector-id>
                <endpoint-url>http://localhost:8080/alfresco/s</endpoint-url>
                <identity>user</identity>
            </endpoint>

            <endpoint>
                <id>alfresco-feed</id>
                <name>Alfresco Feed</name>
                <description>Alfresco Feed - supports basic HTTP authentication via the EndPointProxyServlet</description>
                <connector-id>http</connector-id>
                <endpoint-url>http://localhost:8080/alfresco/s</endpoint-url>
                <basic-auth>true</basic-auth>
                <identity>user</identity>
            </endpoint>
        </remote>
    </config>

    <config evaluator="string-compare" condition="Action Wizards">
        <aspects>
            <aspect name="sig:doc"/>
        </aspects>
    </config>

</alfresco-config>

el le share-form

<alfresco-config>

   <!– cm:content type (existing nodes) –>
   <config evaluator="node-type" condition="cm:content">
      <forms>
         <!– Default form configuration for the cm:content type –>
         <form>
            <field-visibility>
               <show id="cm:name" />
               <show id="cm:title" force="true" />
               <show id="cm:description" force="true" />
               <show id="mimetype" />
               <show id="cm:author" force="true" />
               <show id="size" for-mode="view" />
               <show id="cm:creator" for-mode="view" />
               <show id="cm:created" for-mode="view" />
               <show id="cm:modifier" for-mode="view" />
               <show id="cm:modified" for-mode="view" />

               <!– tags and categories –>
               <show id="cm:taggable" for-mode="edit" force="true" />
               <show id="cm:categories" />

               <!– cm:dublincore aspect –>
               <show id="cm:publisher"/>
               <show id="cm:contributor"/>
               <show id="cm:type"/>
               <show id="cm:identifier"/>
               <show id="cm:dcsource"/>
               <show id="cm:coverage"/>
               <show id="cm:rights"/>
               <show id="cm:subject"/>

               <!– cm:complianceable aspect –>
               <show id="cm:removeAfter" />

               <!– cm:effectivity aspect –>
               <show id="cm:from"/>
               <show id="cm:to"/>

               <!–  cm:summarizable aspect –>
               <show id="cm:summary" />

               <!– cm:translatable aspect –>
               <show id="cm:translations" />

               <!– cm:localizable aspect –>
               <show id="cm:locale" />

               <!– cm:ownable aspect –>
               <show id="cm:owner" />

               <!– cm:attachable aspect –>
               <show id="cm:attachments" />

               <!– cm:emailed aspect –>
               <show id="cm:originator" />
               <show id="cm:addressee" />
               <show id="cm:addressees" />
               <show id="cm:sentdate" />
               <show id="cm:subjectline" />

               <!– exif:exif aspect –>
               <show id="exif:dateTimeOriginal" />
               <show id="exif:pixelXDimension" />
               <show id="exif:pixelYDimension" />
               <show id="exif:exposureTime" />
               <show id="exif:fNumber" />
               <show id="exif:flash" />
               <show id="exif:focalLength" />
               <show id="exif:isoSpeedRatings" />
               <show id="exif:manufacturer" />
               <show id="exif:model" />
               <show id="exif:software" />
               <show id="exif:orientation" />
               <show id="exif:xResolution" />
               <show id="exif:yResolution" />
               <show id="exif:resolutionUnit" />

               <!– cm:geographic aspect –>
               <show id="cm:latitude" />
               <show id="cm:longitude" />
            </field-visibility>
            <appearance>
               <field id="cm:title">
                  <control template="/org/alfresco/components/form/controls/textfield.ftl" />
               </field>
               <field id="cm:description">
                  <control>
                     <control-param name="activateLinks">true</control-param>
                  </control>
               </field>
               <field id="mimetype">
                  <control template="/org/alfresco/components/form/controls/mimetype.ftl" />
               </field>
               <field id="size">
                  <control template="/org/alfresco/components/form/controls/size.ftl" />
               </field>
               <field id="cm:taggable">
                  <control>
                     <control-param name="compactMode">true</control-param>
                     <control-param name="params">aspect=cm:taggable</control-param>
                     <control-param name="createNewItemUri">/api/tag/workspace/SpacesStore</control-param>
                     <control-param name="createNewItemIcon">tag</control-param>
                  </control>
               </field>
               <field id="cm:categories">
                  <control>
                     <control-param name="compactMode">true</control-param>
                  </control>
               </field>
               <field id="cm:originator" read-only="true" />
               <field id="cm:addressee" read-only="true" />
               <field id="cm:addressees" read-only="true" />
               <field id="cm:sentdate" read-only="true" />
               <field id="cm:subjectline" read-only="true" />
            </appearance>
         </form>

         <!– Document Library pop-up Edit Metadata form –>
         <form id="doclib-simple-metadata">
            <field-visibility>
               <show id="cm:name" />
               <show id="cm:title" force="true" />
               <show id="cm:description" force="true" />
               <!– tags and categories –>
               <show id="cm:taggable" for-mode="edit" force="true" />
               <show id="cm:categories" />
            </field-visibility>
            <edit-form template="../documentlibrary/forms/doclib-simple-metadata.ftl" />
            <appearance>
               <field id="cm:title">
                  <control template="/org/alfresco/components/form/controls/textfield.ftl" />
               </field>
               <field id="cm:description">
                  <control>
                     <control-param name="activateLinks">true</control-param>
                  </control>
               </field>
               <field id="cm:taggable">
                  <control>
                     <control-param name="compactMode">true</control-param>
                     <control-param name="params">aspect=cm:taggable</control-param>
                     <control-param name="createNewItemUri">/api/tag/workspace/SpacesStore</control-param>
                     <control-param name="createNewItemIcon">tag</control-param>
                  </control>
               </field>
               <field id="cm:categories">
                  <control>
                     <control-param name="compactMode">true</control-param>
                  </control>
               </field>
            </appearance>
         </form>

         <!– Document Library Inline Edit form –>
         <form id="doclib-inline-edit">
            <field-visibility>
               <show id="cm:name" />
               <show id="cm:title" force="true" />
               <show id="cm:description" force="true" />
               <show id="cm:content" force="true" />
            </field-visibility>
            <appearance>
               <field id="cm:title">
                  <control template="/org/alfresco/components/form/controls/textfield.ftl" />
               </field>
               <field id="cm:content">
                  <control>
                     <control-param name="editorAppearance">explorer</control-param>
                     <control-param name="forceEditor">true</control-param>
                  </control>
               </field>
            </appearance>
         </form>
      </forms>
   </config>

   <!– cm:folder type (existing nodes) –>
   <config evaluator="node-type" condition="cm:folder">
      <forms>
         <!– Default form configuration for the cm:folder type –>
         <form>
            <field-visibility>
               <show id="cm:name" />
               <show id="cm:title" force="true" />
               <show id="cm:description" force="true" />

               <!– tags and categories –>
               <show id="cm:taggable" for-mode="edit" force="true" />
               <show id="cm:categories" />
            </field-visibility>
            <appearance>
               <field id="cm:title">
                  <control template="/org/alfresco/components/form/controls/textfield.ftl" />
               </field>
               <field id="cm:description">
                  <control>
                     <control-param name="activateLinks">true</control-param>
                  </control>
               </field>
               <field id="cm:taggable">
                  <control>
                     <control-param name="compactMode">true</control-param>
                     <control-param name="params">aspect=cm:taggable</control-param>
                     <control-param name="createNewItemUri">/api/tag/workspace/SpacesStore</control-param>
                     <control-param name="createNewItemIcon">tag</control-param>
                  </control>
               </field>
               <field id="cm:categories">
                  <control>
                     <control-param name="compactMode">true</control-param>
                  </control>
               </field>
            </appearance>
          </form>

          <!– Document Library pop-up Edit Metadata form –>
         <form id="doclib-simple-metadata">
            <field-visibility>
               <show id="cm:name" />
               <show id="cm:title" force="true" />
               <show id="cm:description" force="true" />
               <!– tags and categories –>
               <show id="cm:taggable" for-mode="edit" force="true" />
               <show id="cm:categories" />
            </field-visibility>
            <edit-form template="../documentlibrary/forms/doclib-simple-metadata.ftl" />
            <appearance>
               <field id="cm:title">
                  <control template="/org/alfresco/components/form/controls/textfield.ftl" />
               </field>
               <field id="cm:description">
                  <control>
                     <control-param name="activateLinks">true</control-param>
                  </control>
               </field>
               <field id="cm:taggable">
                  <control>
                     <control-param name="compactMode">true</control-param>
                     <control-param name="params">aspect=cm:taggable</control-param>
                     <control-param name="createNewItemUri">/api/tag/workspace/SpacesStore</control-param>
                     <control-param name="createNewItemIcon">tag</control-param>
                  </control>
               </field>
               <field id="cm:categories">
                  <control>
                     <control-param name="compactMode">true</control-param>
                  </control>
               </field>
            </appearance>
          </form>
      </forms>
   </config>

   <!– cm:content type (creating nodes) –>
   <config evaluator="model-type" condition="cm:content">
      <forms>
         <!– Default Create Content form –>
         <form>
            <field-visibility>
               <show id="cm:name" />
               <show id="cm:title" force="true" />
               <show id="cm:description" force="true" />
               <show id="cm:content" force="true" />
               <show id="mimetype" />
               <show id="app:editInline" force="true" />
            </field-visibility>
            <appearance>
               <field id="cm:title">
                  <control template="/org/alfresco/components/form/controls/textfield.ftl" />
               </field>
               <field id="cm:content">
                  <control>
                     <control-param name="editorAppearance">explorer</control-param>
                  </control>
               </field>
               <field id="mimetype">
                  <control template="/org/alfresco/components/form/controls/hidden.ftl">
                     <control-param name="contextProperty">mimeType</control-param>
                  </control>
               </field>
               <field id="app:editInline">
                  <control template="/org/alfresco/components/form/controls/hidden.ftl">
                     <control-param name="contextProperty">editInline</control-param>
                  </control>
               </field>
            </appearance>
         </form>
         <!– Document Library Create Google Doc form –>
         <form id="doclib-create-googledoc">
            <field-visibility>
               <show id="cm:name" />
               <show id="cm:title" force="true" />
               <show id="cm:description" force="true" />
               <show id="cm:content" force="true" />
               <show id="mimetype" />
               <show id="gd:googleEditable" force="true" />
            </field-visibility>
            <appearance>
               <field id="cm:title">
                  <control template="/org/alfresco/components/form/controls/textfield.ftl" />
               </field>
               <field id="cm:content">
                  <control>
                     <control-param name="editorAppearance">none</control-param>
                     <control-param name="forceContent">true</control-param>
                  </control>
               </field>
               <field id="mimetype">
                  <control template="/org/alfresco/components/form/controls/hidden.ftl">
                     <control-param name="contextProperty">mimeType</control-param>
                  </control>
               </field>
               <field id="gd:googleEditable">
                  <control template="/org/alfresco/components/form/controls/hidden.ftl">
                     <control-param name="contextProperty">googleEditable</control-param>
                  </control>
               </field>
            </appearance>
         </form>
         <!– Search form –>
         <form id="search">
            <field-visibility>
               <show id="cm:name" />
               <show id="cm:title" force="true" />
               <show id="cm:description" force="true" />
               <show id="mimetype" />
               <show id="cm:modified" />
               <show id="cm:modifier" />
            </field-visibility>
            <appearance>
               <field id="mimetype">
                  <control template="/org/alfresco/components/form/controls/mimetype.ftl" />
               </field>
               <field id="cm:modifier">
                  <control>
                     <control-param name="forceEditable">true</control-param>
                  </control>
               </field>
               <field id="cm:modified">
                  <control template="/org/alfresco/components/form/controls/daterange.ftl" />
               </field>
            </appearance>
         </form>
      </forms>
   </config>

   <!– cm:folder type (creating nodes) –>
   <config evaluator="model-type" condition="cm:folder">
      <forms>
         <!– Document Library Common form –>
         <form id="doclib-common">
            <field-visibility>
               <show id="cm:name" />
               <show id="cm:title" force="true" />
               <show id="cm:description" force="true" />
            </field-visibility>
            <create-form template="../documentlibrary/forms/doclib-common.ftl" />
            <appearance>
               <field id="cm:title">
                  <control template="/org/alfresco/components/form/controls/textfield.ftl" />
               </field>
            </appearance>
         </form>
         <!– Search form –>
         <form id="search">
            <field-visibility>
               <show id="cm:name" />
               <show id="cm:title" force="true" />
               <show id="cm:description" force="true" />
            </field-visibility>
         </form>
      </forms>
   </config>

   <!– trx:transferTarget content type (editing) –>
   <config evaluator="node-type" condition="trx:transferTarget">
      <forms>
         <form>
              <field-visibility>
               <show id="cm:name" />
               <show id="cm:title" force="true" />
               <show id="cm:description" force="true" />
               <show id="trx:endpointhost" />
               <show id="trx:endpointport" />
               <show id="trx:endpointpath" />
               <show id="trx:endpointprotocol" />
               <show id="trx:username" for-mode="edit"/>
               <show id="trx:password" for-mode="edit"/>
               <show id="trx:enabled" force="true" />
            </field-visibility>
            <edit-form template="../documentlibrary/forms/doclib-simple-metadata.ftl" />
            <appearance>
               <field id="cm:title">
                  <control template="/org/alfresco/components/form/controls/textfield.ftl" />
               </field>
               <field id="trx:password">
                  <control template="/org/alfresco/components/form/controls/textfield.ftl">
                     <control-param name="password">true</control-param>
                  </control>
               </field>
               <field id="trx:enabled" label="Transfer Target is enabled" />
            </appearance>
         </form>
      </forms>
   </config>

Voila en esperant que l'un d'entre vous et je pense surtout a Bertrand qui m'a deja bcp aidé, pourra a nouveau m'orienter.

Pascal
pascal_sighma
Member II

Re: visibilté sous share d'un type fermé trop vite...

Bonjour a tous,

Je n'ai pas eu trop de succès avec mon post mais tans pis …

Le problème est résolu, en faite tout venait du shar config custom et de la façon de le traiter.

Pascal