Hi Eric,

Jahia uses a lot of cache systems to reduce load on the database, so accessing directly the database functions will not work as the caches will not be updated. Also, the subject of content creation has been covered multiple times in this mailing list, try doing a search for saveContainer in this mailing list.

Regards,
 Serge Huber.

eric petit wrote:

Hello everybody,

I have a question about the way to insert new ContainerList , new Container and Fields inside the Jahia DB.
My problem is that I use some servlet to do some calcul and I need to insert the result of this calcul inside Jahia fields,container and ContainerList.


I managed to find the right method to do it but I'm a little bit lost with the jahia API I can use to do it.
I try to use those API : ServicesRegistry.getInstance().getJahiaFieldService().createJahiaField(...)
db_create_container(...)
db_create_container_list(...)


But I does not work very well.

I just want to know if someone (maybe Serge Huber)could give me the right way to create and to insert fields , containers and containerlist into the Jahia DB without using Admin interface.

Thanks a lot.

Eric.







Reply via email to