AnsweredAssumed Answered

Customize association in share?

Question asked by dynamolalit on Dec 10, 2012
Latest reply on Dec 12, 2012 by lementree
Hi,

I have below model in which ucsmusic:song is associated with multiple ucsmusic:record & ucsmusic:record can have multiple ucsmusic:song attached to it.


<types>  
      <!– Definition of new Content Type: UCS Music Object Type  –>
      <type name="ucsmusic:record">
         <title>UCS Music Record</title>
         <parent>cm:content</parent>
         <properties>
         <property name="ucsmusic:singer">
            <description>UCS Record Singer</description>
               <type>d:text</type>
            <mandatory>true</mandatory>
            </property>
         <property name="ucsmusic:album">
            <description>UCS Record Album</description>
               <type>d:text</type>
            <mandatory>true</mandatory>
            </property>
         <property name="ucsmusic:label">
            <description>UCS Record label</description>
               <type>d:text</type>
            <mandatory>true</mandatory>
            </property>
         <property name="ucsmusic:awards">
            <description>UCS Music Awards</description>
               <type>d:text</type>
            <mandatory>true</mandatory>
            <multiple>true</multiple>
            </property>
         </properties>      
       <associations>
            <child-association name="ucsmusic:association">
            <source>
                  <mandatory>true</mandatory>
                  <many>true</many>
            </source>
            <target>
                  <class>ucsmusic:song</class>
                  <mandatory>true</mandatory>
                  <many>true</many>
            </target>
            </child-association>
                 </associations>
      </type> 
    
     <type name="ucsmusic:song">
         <title>Song Object</title>
         <parent>cm:content</parent>
         <properties>
         <property name="ucsmusic:id">
            <description>Song Id</description>
               <type>d:int</type>
            <mandatory>true</mandatory>
            </property>
         <property name="ucsmusic:title">
            <description>Song Title</description>
               <type>d:text</type>
            <mandatory>true</mandatory>
            </property>
         <property name="ucsmusic:duration">
            <description> Song Duration</description>
               <type>d:int</type>
            <mandatory>true</mandatory>
            </property>
         </properties>             
      </type> 
   </types>

Now i want to render it on share in a way that when i click to create a ucsmusic:record type content, i can add n number of ucsmusic:song to it on share.

How can i do it?

Regards.

Outcomes