AnsweredAssumed Answered

problem in accessing cuctom content model in template

Question asked by lmanoh on Dec 3, 2008
Latest reply on Dec 17, 2008 by lmanoh
i Created custom content model. access the same in template, i added the customcontent.xml and template.ftl file below the same post. i got an error like this in console.
Caused by: freemarker.core.ParseException: Encountered "&" at line 1, column 533 in workspace://SpacesStore/b4f4ad64-ac57-425c-950f-823177b4e6fc.
Was expecting one of:
    <RAW_STRING> …
    "false" …
    "true" …
    <INTEGER> …
    <DECIMAL> …
    "." …
    "+" …
    "-" …
    "!" …
    "[" …
    "(" …
    "{" …
    <ID> …

        at freemarker.core.FMParser.generateParseException(
        at freemarker.core.FMParser.jj_consume_token(
        at freemarker.core.FMParser.UnaryExpression(
        at freemarker.core.FMParser.MultiplicativeExpression(
        at freemarker.core.FMParser.AdditiveExpression(
        at freemarker.core.FMParser.RangeExpression(
        at freemarker.core.FMParser.RelationalExpression(
        at freemarker.core.FMParser.EqualityExpression(

my custom content.xml file would be,
<model name="my:mynewmodel" xmlns="">

   <!– Optional meta-data about the model –>
   <description>Example custom Model</description>

   <!– Imports are required to allow references to definitions in other models –>
          <!– 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 should be changed to reflect your own namespace –>
      <namespace uri="" prefix="my"/>


      <!– Definition of new Content Type: Standard Operating Procedure –>
      <type name="my:BookSKU">
         <title>BooK SKU</title>
            <property name="my:fifDate">

            <property name="my:publishedDate">
            <property name="my:authorisedBy">
          <association name="my:signOff">
            <child-association name="my:processSteps">



      <!– Definition of new Content Aspect: Image Classification –>
      <aspect name="my:imageClassification">
         <title>Image Classfication</title>
            <property name="my:width">
            <property name="my:height">
            <property name="my:resolution">



accessing code in template file (.ftl)

<table width="100%"  border="0" cellpadding="1" cellspacing="1">

<#list space.children as child>
      <#if child.isDocument>





please help me in this regards.