Ajout d'un aspect

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

Ajout d'un aspect

Bonjour tout le monde,
J'ai voulu essayé un exemple d'ajout d'un aspect alors j'ai utilisé l'exemple de Will Abson
http://blogs.alfresco.com/wp/wabson/2010/02/25/adding-custom-aspect-support-in-alfresco-share/
J'ai changé le nom de fichier properties knowledgebase_fr.properties et je l'ai ajouté au custom-slingshot-application-context.xml.
J'ai fais ces changements car j'ai eu une erreur 
locale fr_FR    at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1427)
Maintenant j'ai plus cette erreur.
Aussi, j'ai changé aussi au niveau share-config-custom.xml :
   <alfresco-config>

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

        <!–
          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="kb:referencable" />
          </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>

      </config>

      <!– Custom Forms Extension –>
      <config evaluator="node-type" condition="cm:content">
         <forms>
            <!– Default form configuration used on the document details and edit metadata pages –>
            <form>
               <field-visibility>
                     <show id="kb:documentRef" />   
               </field-visibility>
               <appearance>
                     <field id="kb:documentRef" label="Reference document" />    
               </appearance>
            </form>

            <!– Document Library pop-up Edit Metadata form –>
            <form id="doclib-simple-metadata">
           <field-visibility>
                     <show id="kb:documentRef" />
               </field-visibility>
               <appearance>
                     <field id="kb:documentRef" label="Reference document" />
                     
               </appearance>

            </form>

            <!– Document Library Inline Edit form –>
            <form id="doclib-inline-edit">
             <field-visibility>
                     <show id="kb:documentRef" />   
               </field-visibility>
               <appearance>
                     <field id="kb:documentRef" label="Reference document" />
                     
               </appearance>
            </form>
         </forms>
      </config>

   </alfresco-config>
Mais l'aspect ajouté ne s'affiche pas dans la liste des aspects de "Gérer les aspects".Que faire?
J'utilise alfresco 4.0.d.
Merci d'avance pour votre aide.
9 Replies
cleseach
Active Member II

Re: Ajout d'un aspect

Bonjour,

Depuis quel contexte essayez-vous de "gérer les aspects" : site ou entrepôt ?

Cordialement,
Charles Le Seac'h
dorra87
Member II

Re: Ajout d'un aspect

Je veux gérer les aspects du côté entrepot.
cleseach
Active Member II

Re: Ajout d'un aspect

Bonjour,

C'est donc là la cause de votre "problème" !

Votre configuration indique :
<config evaluator="string-compare" condition="DocumentLibrary">
Ce qui signifie que vous configurez le composant "documentlibrary" des sites.

Pour configurer le repository, il faut utiliser la section :
<config evaluator="string-compare" condition="RepositoryLibrary">

Cordialement,
Charles Le Seac'h
dorra87
Member II

Re: Ajout d'un aspect

Je pense avec la configuration que j'ai fais au niveau du site ça devait afficher au niveau de la gestion des aspects des dossier sous documentLibrary cet aspect mais il ne s'affiche pas.
J'ai testé maintenant avec cette configuration
<alfresco-config>
<!– Apply custom theme –>
<config evaluator="string-compare" condition="WebFramework">
 
  <web-framework>
    <application-defaults>
      <theme>MPTheme</theme>
    </application-defaults>
  </web-framework>
 
</config>

   <config evaluator="string-compare" condition="RepositoryLibrary">
   <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="kb:referencable" />
       </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>
   </config>
</alfresco-config>
même résultat il ne s'affiche pas je verrai peut être il faut configurer d'autres fichiers pour qu'il  s' affiche.
cleseach
Active Member II

Re: Ajout d'un aspect

Bonjour,

Puisque "ça ne marche pas", il va falloir nous donner plus d'informations : log alfresco, emplacement et nom des fichiers de configuration, etc.

Cordialement,
Charles Le Seac'h
dorra87
Member II

Re: Ajout d'un aspect

Bonjour,
Les fichiers sous C:\Alfresco\tomcat\shared\classes\alfresco\web-extension :
awe-config-custom.xml
<alfresco-config>
   <config evaluator="model-type" condition="ws:indexPage">
      <forms>
         <!– Default form configuration for the ws:indexPage type –>
         <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="ws:templateName" force="true" />
            </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:content">
                  <control template="/org/alfresco/components/form/controls/content.ftl">
                     <control-param name="forceEditor">true
                     </control-param>
                     <control-param name="editorHeight">400</control-param>
                     <control-param name="editorWidth">600</control-param>
                     <control-param name="richMimeTypes">text/html,text/xhtml</control-param>
                     <control-param name="editorAppearance">custom</control-param>
                     <control-param name="editorParameters">
                        plugins: "fullscreen,paste",
                        file_browser_callback :
                        'shareFileBrowser',
                        paste_create_paragraphs : false,
                        paste_create_linebreaks : false,
                        paste_use_dialog : true,
                        paste_auto_cleanup_on_paste : true,
                        paste_convert_middot_lists : false,
                        paste_unindented_list_class : "unindentedList",
                        paste_convert_headers_to_strong : true,
                        theme_advanced_buttons1:
                        "bold,italic,separator,formatselect,separator,justifyleft,justifycenter,justifyright,justifyfull,separator,bullist,numlist,separator,link,unlink,separator,image,separator,undo,redo,separator,cut,copy,paste,pastetext,pasteword,image,help,code,fullscreen",
                        theme_advanced_buttons2: "",
                        theme_advanced_buttons3: "",
                        theme_advanced_resizing: true
                         </control-param>
                  </control>
               </field>
            </appearance>
         </form>
      </forms>
   </config>

   <config evaluator="model-type" condition="ws:article">
      <forms>
         <!– Default form configuration for the ws:article type –>
         <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="ws:templateName" force="true" />
            </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:content">
                  <control template="/org/alfresco/components/form/controls/content.ftl">
                     <control-param name="forceEditor">true
                     </control-param>
                     <control-param name="editorHeight">400</control-param>
                     <control-param name="editorWidth">600</control-param>
                     <control-param name="richMimeTypes">text/html,text/xhtml</control-param>
                     <control-param name="editorAppearance">custom</control-param>
                     <control-param name="editorParameters">
                        plugins: "fullscreen,paste",
                        file_browser_callback :
                        'shareFileBrowser',
                        paste_create_paragraphs : false,
                        paste_create_linebreaks : false,
                        paste_use_dialog : true,
                        paste_auto_cleanup_on_paste : true,
                        paste_convert_middot_lists : false,
                        paste_unindented_list_class : "unindentedList",
                        paste_convert_headers_to_strong : true,
                        theme_advanced_buttons1:
                        "bold,italic,separator,formatselect,separator,justifyleft,justifycenter,justifyright,justifyfull,separator,bullist,numlist,separator,link,unlink,separator,image,separator,undo,redo,separator,cut,copy,paste,pastetext,pasteword,image,help,code,fullscreen",
                        theme_advanced_buttons2: "",
                        theme_advanced_buttons3: "",
                        theme_advanced_resizing: true
                     </control-param>
                  </control>
               </field>
            </appearance>
         </form>
      </forms>
   </config>
   <config evaluator="node-type" condition="ws:indexPage">
      <forms>
         <!– Default form configuration for the ws:indexPage type –>
         <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="ws:templateName" force="true" />
            </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:content">
                  <control template="/org/alfresco/components/form/controls/content.ftl">
                     <control-param name="forceEditor">true
                     </control-param>
                     <control-param name="editorHeight">400</control-param>
                     <control-param name="editorWidth">600</control-param>
                     <control-param name="richMimeTypes">text/html,text/xhtml</control-param>
                     <control-param name="editorAppearance">custom</control-param>
                     <control-param name="editorParameters">
                        plugins: "fullscreen,paste",
                        file_browser_callback :
                        'shareFileBrowser',
                        paste_create_paragraphs : false,
                        paste_create_linebreaks : false,
                        paste_use_dialog : true,
                        paste_auto_cleanup_on_paste : true,
                        paste_convert_middot_lists : false,
                        paste_unindented_list_class : "unindentedList",
                        paste_convert_headers_to_strong : true,
                        theme_advanced_buttons1:
                        "bold,italic,separator,formatselect,separator,justifyleft,justifycenter,justifyright,justifyfull,separator,bullist,numlist,separator,link,unlink,separator,image,separator,undo,redo,separator,cut,copy,paste,pastetext,pasteword,image,help,code,fullscreen",
                        theme_advanced_buttons2: "",
                        theme_advanced_buttons3: "",
                        theme_advanced_resizing: true
                     </control-param>
                  </control>
               </field>
            </appearance>
         </form>
      </forms>
   </config>

   <config evaluator="node-type" condition="ws:article">
      <forms>
         <!– Default form configuration for the ws:article type –>
         <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="ws:templateName" force="true" />
            </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:content">
                  <control template="/org/alfresco/components/form/controls/content.ftl">
                     <control-param name="forceEditor">true
                     </control-param>
                     <control-param name="editorHeight">400</control-param>
                     <control-param name="editorWidth">600</control-param>
                     <control-param name="richMimeTypes">text/html,text/xhtml</control-param>
                     <control-param name="editorAppearance">custom</control-param>
                     <control-param name="editorParameters">
                        plugins: "fullscreen,paste",
                        file_browser_callback :
                        'shareFileBrowser',
                        paste_create_paragraphs : false,
                        paste_create_linebreaks : false,
                        paste_use_dialog : true,
                        paste_auto_cleanup_on_paste : true,
                        paste_convert_middot_lists : false,
                        paste_unindented_list_class : "unindentedList",
                        paste_convert_headers_to_strong : true,
                        theme_advanced_buttons1:
                        "bold,italic,separator,formatselect,separator,justifyleft,justifycenter,justifyright,justifyfull,separator,bullist,numlist,separator,link,unlink,separator,image,separator,undo,redo,separator,cut,copy,paste,pastetext,pasteword,image,help,code,fullscreen",
                        theme_advanced_buttons2: "",
                        theme_advanced_buttons3: "",
                        theme_advanced_resizing: true
                         </control-param>
                  </control>
               </field>
            </appearance>
         </form>
      </forms>
   </config>

</alfresco-config>
custom-slingshot-application-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>

   <!– Add Knowledge Base messages –>
   <bean id="webscripts.kb.resources" class="org.springframework.extensions.surf.util.ResourceBundleBootstrapComponent">
      <property name="resourceBundles">
         <list>
            <value>alfresco.messages.knowledgebase</value>
         </list>
      </property>
   </bean>

</beans>
share-config-custom.xml
<alfresco-config>

   <!– Document Library config section –>
   <config evaluator="string-compare" condition="RepositoryLibrary">

      <!–
         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="kb:referencable" />
            <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" />
         </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>

   </config>
  
<!– Apply custom theme –>
<config evaluator="string-compare" condition="WebFramework">
 
  <web-framework>
    <application-defaults>
      <theme>MPTheme</theme>
    </application-defaults>
  </web-framework>
 
</config>
  
</alfresco-config>
sous le répertoire messages:
knowledgebase.properties
# Custom knowledge base messages
kb_knowledgebase.property.kb_documentRef.title=KB Reference
kb_knowledgebase.aspect.kb_referencable.title=Knowledge Base Referencable
aspect.kb_referencable=Knowledge Base Referencable
sous le répertoire extension :
kb-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>

    <!– Registration of new models –>
    <bean id="extension.kb.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
        <property name="models">
            <list>
                <value>alfresco/extension/kb-model.xml</value>
            </list>
        </property>
    </bean>

    <bean id="extension.kb.resourceBundle" class="org.alfresco.i18n.ResourceBundleBootstrapComponent">
      <property name="resourceBundles">
         <list>
            <value>alfresco.messages.knowledgebase</value>
         </list>
      </property>
   </bean>

</beans>
kb-model.xml
<?xml version="1.0" encoding="UTF-8"?>

<!– Definition of Knowledge Base Model –>

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

   <!– Optional meta-data about the model –>
   <description>Knowledge Base Model</description>
   <author>Will Abson</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 –>
   <namespaces>
      <namespace uri="http://www.alfresco.com/model/knowledgebase/1.0" prefix="kb"/>
   </namespaces>

    <aspects>
      <!– Definition of new Content Aspect: Knowledge Base Document –>
      <aspect name="kb:referencable">
         <title>Knowledge Base Referencable</title>
         <properties>
            <property name="kb:documentRef">
               <type>d:text</type>
            </property>
         </properties>
      </aspect>
   </aspects>

</model>
le log
log4j:ERROR LogMananger.repositorySelector was null likely due to error in class reloading, using NOPLoggerRepository.
log4j:ERROR LogMananger.repositorySelector was null likely due to error in class reloading, using NOPLoggerRepository.
2012-03-05 10:07:53,613  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-1] Stopping 'Replication' subsystem, ID: [Replication, default]
2012-03-05 10:07:53,613  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-1] Stopped 'Replication' subsystem, ID: [Replication, default]
2012-03-05 10:07:53,653  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-1] Stopping 'Subscriptions' subsystem, ID: [Subscriptions, default]
2012-03-05 10:07:53,653  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-1] Stopped 'Subscriptions' subsystem, ID: [Subscriptions, default]
2012-03-05 10:07:53,653  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-1] Stopping 'googledocs' subsystem, ID: [googledocs, default]
2012-03-05 10:07:53,653  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-1] Stopped 'googledocs' subsystem, ID: [googledocs, default]
2012-03-05 10:07:53,653  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-1] Stopping 'email' subsystem, ID: [email, inbound]
2012-03-05 10:07:53,653  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-1] Stopped 'email' subsystem, ID: [email, inbound]
2012-03-05 10:07:53,653  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-1] Stopping 'fileServers' subsystem, ID: [fileServers, default]
2012-03-05 10:07:55,656  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-1] Stopped 'fileServers' subsystem, ID: [fileServers, default]
2012-03-05 10:07:55,661  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-1] Stopping 'ActivitiesFeed' subsystem, ID: [ActivitiesFeed, default]
2012-03-05 10:07:55,662  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-1] Stopped 'ActivitiesFeed' subsystem, ID: [ActivitiesFeed, default]
2012-03-05 10:07:55,673  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-1] Stopping 'OOoDirect' subsystem, ID: [OOoDirect, default]
2012-03-05 10:07:55,676  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-1] Stopped 'OOoDirect' subsystem, ID: [OOoDirect, default]
2012-03-05 10:07:55,679  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-1] Stopping 'Synchronization' subsystem, ID: [Synchronization, default]
2012-03-05 10:07:55,680  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-1] Stopped 'Synchronization' subsystem, ID: [Synchronization, default]
2012-03-05 10:07:55,683  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-1] Stopping 'email' subsystem, ID: [email, outbound]
2012-03-05 10:07:55,683  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-1] Stopped 'email' subsystem, ID: [email, outbound]
2012-03-05 10:07:55,685  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-1] Stopping 'imap' subsystem, ID: [imap, default]
2012-03-05 10:07:55,687  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-1] Stopped 'imap' subsystem, ID: [imap, default]
2012-03-05 10:07:56,075  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-1] Stopping 'Search' subsystem, ID: [Search, managed, solr]
2012-03-05 10:07:56,075  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-1] Stopped 'Search' subsystem, ID: [Search, managed, solr]
2012-03-05 10:07:56,105  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-1] Stopping 'thirdparty' subsystem, ID: [thirdparty, default]
2012-03-05 10:07:56,105  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-1] Stopped 'thirdparty' subsystem, ID: [thirdparty, default]
2012-03-05 10:07:56,105  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-1] Stopping 'Authentication' subsystem, ID: [Authentication, managed, alfrescoNtlm1]
2012-03-05 10:07:56,115  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-1] Stopped 'Authentication' subsystem, ID: [Authentication, managed, alfrescoNtlm1]
2012-03-05 10:07:56,125  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-1] Stopping 'sysAdmin' subsystem, ID: [sysAdmin, default]
2012-03-05 10:07:56,125  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-1] Stopped 'sysAdmin' subsystem, ID: [sysAdmin, default]
log4j:ERROR LogMananger.repositorySelector was null likely due to error in class reloading, using NOPLoggerRepository.
2012-03-05 10:08:16,204  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-1] Starting 'sysAdmin' subsystem, ID: [sysAdmin, default]
2012-03-05 10:08:16,273  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-1] Startup of 'sysAdmin' subsystem, ID: [sysAdmin, default] complete
2012-03-05 10:08:24,465  WARN  [alfresco.util.AbstractTriggerBean] [Thread-1] Job ehCacheTracerJob is not active/enabled
2012-03-05 10:08:27,859  INFO  [extensions.webscripts.TemplateProcessorRegistry] [Thread-1] Registered template processor Repository Template Processor for extension ftl
2012-03-05 10:08:27,862  INFO  [extensions.webscripts.ScriptProcessorRegistry] [Thread-1] Registered script processor Repository Script Processor for extension js
2012-03-05 10:08:33,538  INFO  [domain.schema.SchemaBootstrap] [Thread-1] Schema managed by database dialect org.hibernate.dialect.PostgreSQLDialect.
2012-03-05 10:08:36,000  INFO  [domain.schema.SchemaBootstrap] [Thread-1] No changes were made to the schema.
2012-03-05 10:08:36,311  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-1] Starting 'Search' subsystem, ID: [Search, managed, solr]
2012-03-05 10:08:36,417  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-1] Startup of 'Search' subsystem, ID: [Search, managed, solr] complete
2012-03-05 10:08:36,812  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-1] Starting 'thirdparty' subsystem, ID: [thirdparty, default]
2012-03-05 10:08:36,953  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-1] Startup of 'thirdparty' subsystem, ID: [thirdparty, default] complete
2012-03-05 10:08:36,953  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-1] Starting 'OOoDirect' subsystem, ID: [OOoDirect, default]
2012-03-05 10:08:38,448  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-1] Startup of 'OOoDirect' subsystem, ID: [OOoDirect, default] complete
2012-03-05 10:08:38,561  INFO  [repo.admin.ConfigurationChecker] [Thread-1] The Alfresco root data directory ('dir.root') is: C:\Alfresco\alf_data
2012-03-05 10:08:38,571  INFO  [admin.patch.PatchExecuter] [Thread-1] Checking for patches to apply …
2012-03-05 10:08:39,382  INFO  [admin.patch.PatchExecuter] [Thread-1] No patches were required.
2012-03-05 10:08:39,400  INFO  [repo.module.ModuleServiceImpl] [Thread-1] Found 2 module(s).
2012-03-05 10:08:39,492  INFO  [repo.module.ModuleServiceImpl] [Thread-1] Starting module 'org_alfresco_module_wcmquickstart' version 1.0.
2012-03-05 10:08:39,500  DEBUG [repo.module.ModuleComponentHelper] [Thread-1] Started module 'ModuleDetails[{module.version=1.0, module.description=Web Quick Start, module.id=org_alfresco_module_wcmquickstart, module.repo.version.max=999, module.title=Web Quick Start, module.repo.version.min=3.3, module.installState=INSTALLED, module.installDate=2012-02-23T16:01:30.724+01:00}]' including 0components.
2012-03-05 10:08:39,530  INFO  [repo.module.ModuleServiceImpl] [Thread-1] Starting module 'org.alfresco.module.vti' version 1.2.
2012-03-05 10:08:39,539  DEBUG [repo.module.ModuleComponentHelper] [Thread-1] Started module 'ModuleDetails[{module.version=1.2, module.description=Alfresco Vti Extension, module.id=org.alfresco.module.vti, module.repo.version.max=999, module.title=Vti, module.repo.version.min=0, module.installState=INSTALLED, module.installDate=2012-02-23T16:01:15.483+01:00}]' including 0components.
2012-03-05 10:08:39,549  DEBUG [repo.module.ModuleComponentHelper] [Thread-1] Installed module found in distribution: org_alfresco_module_wcmquickstart
2012-03-05 10:08:39,549  DEBUG [repo.module.ModuleComponentHelper] [Thread-1] Installed module found in distribution: org.alfresco.module.vti
2012-03-05 10:08:39,550  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-1] Starting 'fileServers' subsystem, ID: [fileServers, default]
2012-03-05 10:08:40,072  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-1] Starting 'Authentication' subsystem, ID: [Authentication, managed, alfrescoNtlm1]
2012-03-05 10:08:40,280  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-1] Startup of 'Authentication' subsystem, ID: [Authentication, managed, alfrescoNtlm1] complete
2012-03-05 10:08:40,351  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-1] Startup of 'fileServers' subsystem, ID: [fileServers, default] complete
2012-03-05 10:08:40,351  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-1] Starting 'imap' subsystem, ID: [imap, default]
2012-03-05 10:08:40,437  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-1] Startup of 'imap' subsystem, ID: [imap, default] complete
2012-03-05 10:08:40,437  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-1] Starting 'email' subsystem, ID: [email, outbound]
2012-03-05 10:08:40,486  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-1] Startup of 'email' subsystem, ID: [email, outbound] complete
2012-03-05 10:08:40,486  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-1] Starting 'email' subsystem, ID: [email, inbound]
2012-03-05 10:08:40,581  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-1] Startup of 'email' subsystem, ID: [email, inbound] complete
2012-03-05 10:08:40,582  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-1] Starting 'googledocs' subsystem, ID: [googledocs, default]
2012-03-05 10:08:40,673  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-1] Startup of 'googledocs' subsystem, ID: [googledocs, default] complete
2012-03-05 10:08:40,673  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-1] Starting 'Subscriptions' subsystem, ID: [Subscriptions, default]
2012-03-05 10:08:40,699  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-1] Startup of 'Subscriptions' subsystem, ID: [Subscriptions, default] complete
2012-03-05 10:08:40,704  INFO  [repo.usage.UserUsageTrackingComponent] [Thread-1] Disabled - clear non-missing user usages …
2012-03-05 10:08:40,750  INFO  [repo.usage.UserUsageTrackingComponent] [Thread-1] Found 0 users to clear
2012-03-05 10:08:40,750  INFO  [repo.usage.UserUsageTrackingComponent] [Thread-1] … cleared non-missing usages for 0 users
2012-03-05 10:08:40,751  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-1] Starting 'Synchronization' subsystem, ID: [Synchronization, default]
2012-03-05 10:08:40,915  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-1] Startup of 'Synchronization' subsystem, ID: [Synchronization, default] complete
2012-03-05 10:08:41,053  INFO  [service.descriptor.DescriptorService] [Thread-1] Alfresco JVM - v1.6.0_22-b04; maximum heap size 682,688MB
2012-03-05 10:08:41,054  INFO  [service.descriptor.DescriptorService] [Thread-1] Alfresco started (Community). Current version: 4.0.0 (4003) schema 5 025. Originally installed version: 4.0.0 (4003) schema 5 025.
2012-03-05 10:08:41,054  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-1] Starting 'ActivitiesFeed' subsystem, ID: [ActivitiesFeed, default]
2012-03-05 10:08:41,155  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-1] Startup of 'ActivitiesFeed' subsystem, ID: [ActivitiesFeed, default] complete
2012-03-05 10:08:41,155  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-1] Starting 'Replication' subsystem, ID: [Replication, default]
2012-03-05 10:08:41,185  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-1] Startup of 'Replication' subsystem, ID: [Replication, default] complete
2012-03-05 10:08:43,047  INFO  [module.vti.VtiServer] [Thread-1] Vti server started successfully on port: 7070
2012-03-05 10:08:43,052  INFO  [module.vti.VtiServer] [Thread-1] Vti server SessionIdManagerWorkerName: jetty1
2012-03-05 10:08:54,863  WARN  [extensions.webscripts.DeclarativeRegistry] [Thread-1] Unable to register script classpath:webscripts/org/springframework/extensions/cmis/content.get.desc.xml due to error: 02050000 Web Script document org/springframework/extensions/cmis/content.get.desc.xml is attempting to define the url '/cmis/content:GET' already defined by org/alfresco/cmis/client/content.get.desc.xml
2012-03-05 10:08:54,863  INFO  [extensions.webscripts.DeclarativeRegistry] [Thread-1] Registered 481 Web Scripts (+1 failed), 749 URLs
2012-03-05 10:08:54,864  INFO  [extensions.webscripts.DeclarativeRegistry] [Thread-1] Registered 2 Package Description Documents (+0 failed)
2012-03-05 10:08:54,864  INFO  [extensions.webscripts.DeclarativeRegistry] [Thread-1] Registered 1 Schema Description Documents (+0 failed)
2012-03-05 10:08:54,866  INFO  [extensions.webscripts.AbstractRuntimeContainer] [Thread-1] Initialised Repository Web Script Container (in 8915.97ms)
2012-03-05 10:08:54,881  INFO  [extensions.webscripts.TemplateProcessorRegistry] [Thread-1] Registered template processor freemarker for extension ftl
2012-03-05 10:08:54,882  INFO  [extensions.webscripts.ScriptProcessorRegistry] [Thread-1] Registered script processor javascript for extension js
2012-03-05 10:09:09,473  INFO  [extensions.webscripts.TemplateProcessorRegistry] [Thread-1] Registered template processor freemarker for extension ftl
2012-03-05 10:09:09,607  INFO  [extensions.webscripts.ScriptProcessorRegistry] [Thread-1] Registered script processor javascript for extension js
2012-03-05 10:09:09,608  INFO  [extensions.webscripts.TemplateProcessorRegistry] [Thread-1] Registered template processor freemarker for extension ftl
2012-03-05 10:09:09,614  INFO  [extensions.webscripts.ScriptProcessorRegistry] [Thread-1] Registered script processor javascript for extension js
2012-03-05 10:09:15,101  INFO  [extensions.webscripts.DeclarativeRegistry] [Thread-1] Registered 315 Web Scripts (+0 failed), 325 URLs
2012-03-05 10:09:15,101  INFO  [extensions.webscripts.DeclarativeRegistry] [Thread-1] Registered 8 Package Description Documents (+0 failed)
2012-03-05 10:09:15,101  INFO  [extensions.webscripts.DeclarativeRegistry] [Thread-1] Registered 0 Schema Description Documents (+0 failed)
2012-03-05 10:09:15,385  INFO  [extensions.webscripts.AbstractRuntimeContainer] [Thread-1] Initialised Spring Surf Container Web Script Container (in 5760.4707ms)
2012-03-05 10:09:15,393  INFO  [extensions.webscripts.TemplateProcessorRegistry] [Thread-1] Registered template processor freemarker for extension ftl
2012-03-05 10:09:15,400  INFO  [extensions.webscripts.ScriptProcessorRegistry] [Thread-1] Registered script processor javascript for extension js
2012-03-05 10:09:19,379  INFO  [extensions.webscripts.TemplateProcessorRegistry] [Thread-1] Registered template processor freemarker for extension ftl
2012-03-05 10:09:19,496  INFO  [extensions.webscripts.ScriptProcessorRegistry] [Thread-1] Registered script processor javascript for extension js
2012-03-05 10:09:19,497  INFO  [extensions.webscripts.TemplateProcessorRegistry] [Thread-1] Registered template processor freemarker for extension ftl
2012-03-05 10:09:19,503  INFO  [extensions.webscripts.ScriptProcessorRegistry] [Thread-1] Registered script processor javascript for extension js
2012-03-05 10:09:25,022  INFO  [extensions.webscripts.DeclarativeRegistry] [Thread-1] Registered 315 Web Scripts (+0 failed), 325 URLs
2012-03-05 10:09:25,022  INFO  [extensions.webscripts.DeclarativeRegistry] [Thread-1] Registered 8 Package Description Documents (+0 failed)
2012-03-05 10:09:25,023  INFO  [extensions.webscripts.DeclarativeRegistry] [Thread-1] Registered 0 Schema Description Documents (+0 failed)
2012-03-05 10:09:25,356  INFO  [extensions.webscripts.AbstractRuntimeContainer] [Thread-1] Initialised Spring Surf Container Web Script Container (in 5847.9487ms)
2012-03-05 10:09:25,364  INFO  [extensions.webscripts.TemplateProcessorRegistry] [Thread-1] Registered template processor freemarker for extension ftl
2012-03-05 10:09:25,370  INFO  [extensions.webscripts.ScriptProcessorRegistry] [Thread-1] Registered script processor javascript for extension js
10:09:26,093 WARN  [org.apache.myfaces.shared_impl.util.LocaleUtils] Locale name in faces-config.xml null or empty, setting locale to default locale : fr_FR
2012-03-05 10:09:30,924  INFO  [web.site.EditionInterceptor] [http-8080-3] Successfully retrieved license information from Alfresco.
2012-03-05 10:10:11,958  INFO  [web.scripts.DictionaryQuery] [http-8080-11] Successfully retrieved dictionary information from Alfresco.
L'aspect ne s'affiche pas encore
jayjayecl
Active Member II

Re: Ajout d'un aspect

Bonjour,

au niveau du share-config-custom.xml, pouvez-vous remplacer votre ligne par celle-ci :

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

Cela devrait fonctionner …
dorra87
Member II

Re: Ajout d'un aspect

Bonjour,
j'ai essayé comme vous m'avez dis
<alfresco-config>
   <!– Document Library config section –>
   <config evaluator="string-compare" condition="DocumentLibrary" replace="true">
    
     <aspects>
       <!– Aspects that a user can see –>
       <visible>
              <aspect name="kb:referencable" />
         <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" />
       </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>
  </config>
<!– Apply custom theme –>
<config evaluator="string-compare" condition="WebFramework">
 
  <web-framework>
    <application-defaults>
      <theme>MPTheme</theme>
    </application-defaults>
  </web-framework>
 
</config>
  

</alfresco-config>
j'ai aussi testé ça:
<alfresco-config>

  
<!– Repository Library config section –>
   <config evaluator="string-compare" condition="RepositoryLibrary" replace="true">
      <!–
         Whether the link to the Repository Library appears in the header component or not.
      –>
      <visible>true</visible>
   </config>
   <!– Document Library config section –>
   <config evaluator="string-compare" condition="DocumentLibrary" replace="true">
    
     <aspects>
       <!– Aspects that a user can see –>
       <visible>
       <aspect name="kb:referencable" />
         <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" />
       </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>
  </config>
<!– Apply custom theme –>
<config evaluator="string-compare" condition="WebFramework">
 
  <web-framework>
    <application-defaults>
      <theme>MPTheme</theme>
    </application-defaults>
  </web-framework>
 
</config>
  

</alfresco-config>

toujours l'aspect ne s'affiche pas,une question avez vous testé avec la version 4.0.d?car j'utilise cette version
dorra87
Member II

Re: Ajout d'un aspect

Bonjour,j'ai testé cet exemple avec la version 4.0.c et il marche donc je continue avec cette version pour ne pas perdre du temps