Hi,
We have two folder types say for example FolderA and FolderB. And a custom document type, Doc1.
While Importing any file under FolderA, the type should be set to Doc1 by default. On the other hand, inside FolderB, it should retain the out of box functionality of import i.e., to list all the types.
I extended the "import:webcomponent/config/library/contenttransfer/importcontent/import_component.xml" and scope it with the type name.
<scope type="FolderA">
<component id="import" extends="import:webcomponent/config/library/contenttransfer/importcontent/import_component.xml">
<document-docbase-base-type>Doc1</document-docbase-base-type>
<document-docbase-type>Doc1</document-docbase-type>
<folder-docbase-type>dm_folder</folder-docbase-type>
<document_filter>
<preset_item id="type_filter">
<selection>
<entries>
<entry>Doc1</entry>
</entries>
</selection>
</preset_item>
</document_filter>
</component>
</scope>
<scope type="FolderB">
<component id="import" extends="import:webcomponent/config/library/contenttransfer/importcontent/import_component.xml">
<document-docbase-base-type>dm_document</document-docbase-base-type>
<document-docbase-type>dm_document</document-docbase-type>
<folder-docbase-type>dm_folder</folder-docbase-type>
</component>
</scope>
But this is not working. As far as I found that type scoping would not work for import.
Please help me to figure out the solution for this.