cancel
Showing results for 
Search instead for 
Did you mean: 

Howto Apply a custom type to all files on a folder

coffman
Champ in-the-making
Champ in-the-making
Hello …
I am defining a custom type Invoice like this one:

   <types>
      <type name="custom:invoice">
         <title>Invoice</title>
         <parent>cm:content</parent>
         <properties>
            <property name="custom:invoiceDate">
               <type>d:datetime</type>
            </property>
            <property name="custom:invoiceId">
               <title>Id of the Invoice</title>
               <type>d:text</type>
            </property>
         </properties>
      </type>
    </types>

I am uploading all invoices automatically with a scanner to a directory, so i would like to Convert all documents incoming into a directory throught CIFS to a type INVOICE.

Is this possible ??
I can't see a rule to apply a custom type to all incoming objects.

Thanks in advice
1 REPLY 1

rhofkens
Champ in-the-making
Champ in-the-making
Hi,

use the "Specialise type" action in a content rule.

You also have to change the web-client-config-custom.xml file to enable your custom type in the list:


   <config evaluator="string-compare" condition="Action Wizards">
      <!– The list of content and/or folder types shown in the specialise-type action –>
      <specialise-types>
         <type name="your type comes here"/>
      </specialise-types>
   </config>
Cheers,
Roeland