cancel
Showing results for 
Search instead for 
Did you mean: 

Aspect configuré qui n'apparait pas dans l'appli web

sebguillomon
Champ in-the-making
Champ in-the-making
Bonjour,

J'ai créé un aspect en suivant la documentation, j'ai trois fichiers dans le répertoire "conf\alfresco\extension" de mon serveur JBoss :

- kloeModel-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.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
        <property name="models">
            <list>
                <value>alfresco/extension/kloeModel.xml</value>
            </list>
        </property>
    </bean>
</beans>

- kloeModel.xml :


<?xml version="1.0" encoding="UTF-8"?>
<!– KLOE Model –>
<!– Note: This model is pre-configured to load at startup of the Repository.  So, all custom –>
<!–       types and aspects added here will automatically be registered –>
<model name="kloe:kloeModel" xmlns="http://www.alfresco.org/model/dictionary/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.alfresco.org/model/dictionary/1.0 D:\installs\Alfresco\ENTREP~1.0\Deploiement\WEB-INF\classes\alfresco\model\modelSchema.xsd">
   <!– Optional meta-data about the model –>
   <description>Kloe Model</description>
   <author>S. GUILLOMON</author>
   <version>1.0</version>
   <imports>
      <!– Import Alfresco Dictionary Definitions –>
      <import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d"/>
      <!– Import Alfresco Content Domain Model Definitions –>
      <import uri="http://www.alfresco.org/model/content/1.0" prefix="cm"/>
   </imports>
   <!– Introduction of new namespaces defined by this model –>
   <!– NOTE: The following namespace custom.model should be changed to reflect your own namespace –>
   <namespaces>
      <namespace uri="kloe.model" prefix="kloe"/>
   </namespaces>
   
   <aspects>
      <aspect name="kloe:news">
         <title>News KLOE</title>
         <properties>
            <property name="kloe:title">
               <title>News title</title>
               <type>d:text</type>
            </property>
            <property name="kloe:date">
               <title>News date</title>
               <type>d:date</type>
            </property>
            <property name="kloe:description">
               <title>News description</title>
               <type>d:text</type>
            </property>
            <property name="kloe:published">
               <title>Is news published</title>
               <type>d:boolean</type>
            </property>
         </properties>
      </aspect>
   </aspects>
   
</model>

- kloe-config-custom.xml :


<alfresco-config>

   <config evaluator="string-compare" condition="Action Wizards">
      <aspects>
         <aspect name="kloe:news"/>
      </aspects>
   </config>
  
   <config evaluator="aspect-name" condition="kloe:news">
      <property-sheet>
         <show-property name="kloe:title"/>
         <show-property name="kloe:date"/>
         <show-property name="kloe:description"/>
         <show-property name="kloe:published"/>
      </property-sheet>
   </config>

</alfresco-config>


Le serveur se lance correctement mais quand je vais dans le rule wizard, dans la liste "select required feature", je n'ai pas le nouvel aspect créé.

Une idée ?

Merci Bcp
Seb
2 REPLIES 2

rivarola
Champ on-the-rise
Champ on-the-rise
Bonjour,

Il ne faut pas appeler le dernier fichier "kloe-config-custom.xml" mais "web-client-config-custom.xml", sinon il n'est pas pris en compte.

sebguillomon
Champ in-the-making
Champ in-the-making
Ok merci, effectivement ça marche, je pensais que tous les fichiers terminant par "-custom.xml" étaient pris en compte  :wink: