AnsweredAssumed Answered

property inheritance in types

Question asked by robertmarkbram on Jun 4, 2010
Latest reply on Jul 3, 2010 by almer.bolatov
Hi All,

Going through Jeff Potts' SomeCo example from his Developer Guide, I have created (among others) these two types:

<type name="sc:marketingDoc">
   <title>Someco Marketing Document</title>
   <parent>sc:doc</parent>
   <properties>
      <property name="sc:campaign">
         <type>d:text</type>
         <multiple>true</multiple>
         <constraints>
            <constraint ref="sc:campaignList" />
         </constraints>
      </property>
   </properties>
</type>
<type name="sc:whitepaper">
   <title>Someco Whitepaper</title>
   <parent>sc:marketingDoc</parent>
</type>

And in my config-custom.xml file, a rule says display campain for marketingDocs:

<config evaluator="node-type" condition="sc:marketingDoc">
   <property-sheet>
      <show-property name="sc:campaign" display-label-id="campaign" />
   </property-sheet>
</config>


So…  a marketingDoc has a campaign property (list) and a whitepaper is a marketingDoc. Why then, when I create a whitepaper, don't I see campaign? I thought there was inheritance in effect here?

Thanks for any advice!

Rob
:)

Outcomes