Hello, thanks for your reply,

I think I can't use the content template manager because I must run a test
(if) before the automatic creation.

So I use the FileManager.createFolder Method and it works ! so thanks a
lot...

But now I have an error on a boolean value:

12:24:51,250 WARN  [CompassBackend] While building ResultItem, could not
handle contents of stored field et:federal. Check Search Service
configuration and Compass mappings.

et : federal is a boolean and the widget declared in the layout is a
checkbox.

Do you know how to fix this ?

Thank you.

On Fri, Feb 22, 2008 at 3:26 PM, Olivier Grisel <[EMAIL PROTECTED]> wrote:

> Romain FERE a écrit :
> > Hi everyone,
> >
> > I'm using a event listener on the event "documentCreated" to create
> > sub-folders when an user create a folder.
> [...]
> > I don't know how to create sub-folders and after many searches I'm still
> > at the same point.
> >
>
> I think you should use the content template manager for such use case.
> Please
> have a look at the default configuration in the webapp-core project to get
> an
> example:
>
>
>
> http://svn.nuxeo.org/nuxeo/org.nuxeo.ecm.platform/branches/5.1/nuxeo-platform-content-template-manager/src/main/resources/OSGI-INF/content-template-contrib.xml
>
> But to reply to your initial question you can have a look at the following
> method:
>
> FileManagerService.defaultCreateFolder(CoreSession documentManager,
>            String fullname, String path, String containerTypeName,
>            boolean checkAllowedSubTypes) throws ClientException;
>
> in:
>
>
> http://svn.nuxeo.org/nuxeo/org.nuxeo.ecm.platform/branches/5.1/nuxeo-platform-filemanager-core/src/main/java/org/nuxeo/ecm/platform/filemanager/service/FileManagerService.java
>
> --
> Olivier
>
> _______________________________________________
> ECM mailing list
> [email protected]
> http://lists.nuxeo.com/mailman/listinfo/ecm
>



-- 
Romain FERE
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm

Reply via email to