AnsweredAssumed Answered

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

Question asked by sebguillomon on Jan 26, 2009
Latest reply on Jan 27, 2009 by sebguillomon
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

Outcomes