AnsweredAssumed Answered

[SOLVED]Custom Model error

Question asked by monitloth on Oct 31, 2008
Latest reply on Nov 14, 2008 by monitloth
I followed the tutorial from the handbook to create a custom model (Customer Details). I get no errors, but the aspect is not shown, when at wizard.



<config evaluator="string-compare" condition="Action Wizards">
<aspect name="custom:CustomerDetails"/>
   <!– The config below shows how to incorporate the example model–>
   <!– into the web client, for this to work you will need to –>
   <!– rename example-model-context.xml.sample to example-model-context.xml –>
   <!– Displays the properties in view details page –>
<config evaluator="aspect-name" condition="custom:CustomerDetails">
<separator name="sepCust1" display-label="Customer Details" component-generator="HeaderSeparatorGenerator" />
<show-property name="custom:CustomerName"/>
<show-property name="custom:CustomerContactName"/>
<show-property name="custom:CustomerContactPhone"/>
<show-property name="custom:CustomerProjectID"/>
<show-property name="custom:NewCustomer"/>


<?xml version='1.0' encoding='UTF-8'?>
    <!– Registration of new models –>  
    <bean id="extension.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
        <property name="models">


<?xml version="1.0" encoding="UTF-8"?>
<!– Custom 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="custom:customModel" xmlns="">
   <!– Optional meta-data about the model –>  
   <description>Custom Model</description>
        <!– Import Alfresco Dictionary Definitions –>
      <import uri="" prefix="d"/>
      <!– Import Alfresco Content Domain Model Definitions –>
      <import uri="" prefix="cm"/>

   <!– Introduction of new namespaces defined by this model –>
   <!– NOTE: The following namespace custom.model should be changed to reflect your own namespace –>
      <namespace uri="custom.model" prefix="custom"/>
<!– Definition of new Content Aspect: Customer Details –>
<aspect name="custom:CustomerDetails">
<title>Customer Details</title>
<property name="custom:CustomerName">
<title>Customer Name</title>
<property name="custom:CustomerContactName">
<title>Customer Contact Name</title>
<property name="custom:CustomerContactPhone">
<title>Customer Contact Phone</title>
<property name="custom:CustomerProjectID">
<title>Customer Project ID</title>
<property name="custom:NewCustomer">
<title>New Customer</title>

I checked the forum.

Why don't I get the aspect?