AnsweredAssumed Answered

Can I define this in share-config-custom.xml

Question asked by bisana on Sep 9, 2012
Latest reply on Sep 10, 2012 by afaust
Hi All
  I am doing my R&D with custom type and Custom Aspects.
This is what I have to, I have One Custom Type and 2-3 Custom Aspects.
I have folders, in which I have applied rule, such as If I check document to 'FolderOne-withAspectOne' it will apply The defined Custom Type and Custom Aspect One, simillary when I check a document to 'FolderTwo-withAspectTwo' it should apply the The 'defined Custom Type' and 'Custom Aspect Two'. Same  for FolderTwo-withAspectThree' it should apply the The 'Defined Custom Type' and 'Custom Aspect Three'

Now I want to display the Custom Metada for the files which has Custom Aspects defined

If I do the follwoing code in 'share-config-custom.xml' will it work for me, guidance requested

<!– Is this a possiblilty, in which I can put my custom aspect and custom aspect properties
In  share-config-custom.xml , my intention is that I should have a system where there is One Custom Type, then 2 Custom Aspect with custom proerty
I want to display the aspect propery

–> 
<config evaluator="node-type" condition="sc:myaspect">
      <forms>
     <form>
         <field-visibility>    
           <show id="sc:myaspectpropertyOne"/>
      <show id="sc:myaspectpropertyTwo"/>      
         </field-visibility>
     </form>
    </forms>
   </config>
  

  <config evaluator="model-type" condition="sc:myaspect">
      <forms>
      <form id="search">
         <field-visibility>
       <show id="sc:myaspectpropertyOne"/>
           <show id="sc:myaspectpropertyTwo"/>
        </field-visibility>   
     </form>
      </forms>
   </config>


Outcomes