AnsweredAssumed Answered

Custom Content & Property Sheets

Question asked by timsiddle on Jun 13, 2008
Latest reply on Jun 17, 2008 by timsiddle
Hi all,

I have a custom content model which contains both a type and a mandatory aspect - defined as so:

<types>
      <type name="ym:e2">
         <title>E2 ENROLMENT FORM</title>
         <parent>cm:content</parent>
         <properties>
            <property name="ym:docId">
               <type>d:text</type>
               <mandatory>true</mandatory>
            </property>
            <property name="ym:docType">
               <type>d:text</type>
               <mandatory>true</mandatory>
            </property>
            <property name="ym:SurnameFirstLetter">
               <type>d:text</type>
               <mandatory>true</mandatory>
            </property>            
         </properties>
         <mandatory-aspects>
            <aspect>ym:StudentDetail</aspect>
         </mandatory-aspects>

      </type>
</types>

   <aspects>
      <aspect name="ym:StudentDetail">
         <title>Student Details</title>
         <properties>
            <property name="ym:PERSONCODE">
               <type>d:text</type>
               <mandatory>true</mandatory>
            </property>
            <property name="ym:FORENAME">
               <type>d:text</type>
               <mandatory>true</mandatory>
            </property>
            <property name="ym:MIDDLENAMES">
               <type>d:text</type>
               <mandatory>false</mandatory>
            </property>
            <property name="ym:SURNAME">
               <type>d:text</type>
               <mandatory>true</mandatory>
            </property>
            <property name="ym:DOB">
               <type>d:text</type>
               <mandatory>false</mandatory>
            </property>

         </properties>
      </aspect>
   </aspects>

in my web-client-config-custom.xml I have then exposed by custom content model to the web UI.  That is I have added a Property Sheet, Action Wizard, Advanced Search and Content Wizard.

What I want to achieve is the fields associated with a particular content type. Therefore, with my ym:e2 type, I also want to retrieve the fields associated with the mandatory aspect ym:StudentDetail.

Using webservices, is this possible? I have managed to retrieve details of both the individual type "ym:e2" and of the aspect "ym:studentDetails" individually using dictionaryService.getClasses(). This only exposes the properties of ym:e2 though and not the properties of ym:studentDetails.

How would I go about this? I did look at NodeDefinition, but I don't think I was looking at the correct thing. Does anyone have any pointers?

Alternatively, I would settle for retrieving the fields defined in the property sheet in web-client-config-custom.xml if someone could point out how to do that?



Thanks in advance!

Outcomes