cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Type that extends cm:folder

rascio
Champ in-the-making
Champ in-the-making
hi,
How can I create from the Alfresco Web Client a node that extends the cm:folder?
I made this:

<type name="ca:customFolder>
         <title>Custom Folder</title>
         <parent>cm:folder</parent>
         <properties>
            <property name="ca:customProp1">
               <type>d:text</type>
               <mandatory>true</mandatory>
            </property>
            <property name="ca:customProp2">
               <type>d:boolean</type>
               <mandatory>false</mandatory>
               <default>false</default>
            </property>
         </properties>
      </type>
and this:

<config evaluator="string-compare" condition="Content Wizards">
      <content-types>
         <type name="ca:customContent" />
         <type name="ca:customFolder" />
      </content-types>
   </config>

I've tried to insert that type in the web-client-config-custom.xml in the Content Wizard…but without results… Smiley Sad
Can someone help me?  :cry:
4 REPLIES 4

invictus9
Champ in-the-making
Champ in-the-making
In web-client-config-custom.xml, you don't use <content-types>, you use <folder-types>. This problem caught me too, but I found a forum posting that cleared it up. I haven't found any documentation on it either.

rascio
Champ in-the-making
Champ in-the-making
thanks,
i made this and alfresco started without problem…but now how can i create a folder of that type using the web client???

invictus9
Champ in-the-making
Champ in-the-making
thanks,
i made this and alfresco started without problem…but now how can i create a folder of that type using the web client???

I'm … I'm not sure. I've been creating these customized folders using a script, so I always create them behind the scenes.

In theory, you should be able to add them to the Space Wizards and Action Wizards in the web-client-config-custom.xml. Does that work for you?

sujaypillai
Confirmed Champ
Confirmed Champ
To create a folder of your Custom Type, navigate to Create >> Advance Space Wizard.

Under "Create Space Wizard" you will find 3 options:
1. From scratch
2. Based on an existing space
3. Using a template

Select "From scratch" and you may find your custom folder type defined here for selection along with Folder Space and Forum Space.