AnsweredAssumed Answered

Configure default icon for a custom type

Question asked by davidetaibi on Sep 6, 2006
Latest reply on Jun 20, 2007 by gavinc
I've defined a very simple custom type with cm:folder as parent:

  <types>
      <type name="pk:package">
         <parent>cm:folder</parent>
      </type>
   …
  </types>

I add the following code to my web-client-config-custom.xml


<config evaluator="string-compare" condition="Space Wizards">
   <folder-types>
      <type name="pk:package" icon="/images/icons/pack.gif" description="Package Space" />
   </folder-types>
</config>

   <config evaluator="string-compare" condition="pk:package icons">
      <icons>
         <icon name="pack" path="/images/icons/pack.gif" />
      </icons>
   </config>

So when I create a new space with the Advanced Space Wizard, I can choice the folder type and its icon. It works fine.

I would ask if there is a way to set the default icon for a specific type using a configuration file.
For example something like:

<config evaluator="node-type" condition="pk:package">
<properties>
<property><app:icon>pack</app:icon></property>
</properties>
</config>

Something that allows me to set a default value of a property through a configuration file.

Thanks!

Outcomes