Hi,
You can create a component that provides an extension to SQLDirectoryFactory, where you define your new vocabulary. The extension point is called "directories".

Or you can add it to an existing one. Take a look at:
http://svn.nuxeo.org/nuxeo/org.nuxeo.ecm.platform/trunk/nuxeo-platform-webapp-core/src/main/resources/OSGI-INF/nxdirectories-contrib.xml.

You should use schema 'vocabulary' for a directory without a 'parent' column and xvocabulary (extended vocabulary) otherwise, e.g. for hierarchical vocabularies (all levels except the first, which does not have parents).

If you define your directories in a new file, you have to add it to 
META-INF/MANIFEST.MF in order to be loaded.



[EMAIL PROTECTED] wrote:

Hello,

I found the way to add some nxdir:selectOneListbox in a new document type.
The widget has to be defined like this :

<widget jsfcomponent="nxdir:selectOneListbox" schemaname="profil"
          fieldname="continent" directory="continent" />

Note : I added in the profil.xsd schema a string type named "continent" just for
the exemple...
Note 2 : the directory name I chose was "continent" because it already exists.

But I realy want to create new directory type (more than country and continent
:) )
I heard that I have to define the directory and I have to create a SQL script to
fill a database.
To create the SQL script I think that I can use the file nxsqldirectory.script
and add inside a new TABLE and some data in the table.
But how to activate this new directory to be available in Nuxeo 5?

Thak you.

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


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

Reply via email to