AnsweredAssumed Answered

Acessing Custom Content model in template.

Question asked by lmanoh on Nov 21, 2008
hi, im newby to alfresco.
i created one custom content model named custommodel.xml, in that i mentioned some properties like first name, last name and number.after create content, i can able to edit and save the content through properties. now i need to access this stored data in template. for example if we need to access the user information by using ${person.properties.name}. 
im placing my xml here
<?xml version="1.0" encoding="UTF-8"?>
<!– Definition of new Model –>
<model name="ccs:somecomodel" xmlns="http://www.alfresco.org/model/dictionary/1.0">

   <!– Optional meta-data about the model –>
   <description>Someco Model</description>
   <author>Optaros</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.someco.com/model/content/1.0" prefix="ccs" />
   </namespaces>
   
   <types>
   <type name="ccs:license">
    <title>License</title>
    <!– <parent>cm:content</parent> –>
     <parent>cm:content</parent>
    <properties>
        <property name="ccs:fname">
           <title>First Name</title>
           <type>d:text</type>
        </property>
   <property name="ccs:lname">
       <title>Last Name</title>
        <type>d:text</type>
   </property>
   <property name="ccs:st">
        <title>State</title>
        <type>d:text</type>
   </property>
   <property name="ccs:info">
         <title>License Number</title>
        <type>d:text</type>
   </property>
   </properties>
   </type>
   </types>

</model>

can any one help me in this reards, highly appriciatable.
-Lenin.

Outcomes