cancel
Showing results for 
Search instead for 
Did you mean: 

Add additional table in nuxeo database

gaosh
Champ on-the-rise
Champ on-the-rise

In the custom addons ,  i want to record some info in the db and read them later。 i want to add new table (in vcs)  or new collection (in  dbs)。 How can i achieve this?

Are there any references or demos? Or a thought or a step?

1 REPLY 1

Josh-F-Hyland
Employee
Employee

This isn't really how you're meant to use Nuxeo. VCS and DBS are abstraction layers. You shouldn't need to mess with them directly and, in this way, the backend database is fully pluggable. It's certainly *possible* for you to customize the platform and do whatever you want, but not recommended 🙂 I suppose you'd like to have some kind of simple key-value store? I would say there are a couple of options:

  • Create a "settings" Document Type. You can simply store your "settings" using the data model. You can store each setting as a separate document or even using a single document (with a complex multi-valued field).
  • Store "settings" in nuxeo.conf; you can retrieve them in Automation, for example, using the Env[] object, e.g. Env["my.cool.setting"]

 

--
Hyland Sales Solution Engineer
Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.