Hi S�bastien,
S�bastien LANDEAU wrote:
Hello,
I'd like to know how to write a Java Module to process batch insert of data in a container.
For example, I have a page based on the "Directory People" template. For a specific context, I have to import data in the directory people container from an external database... Any advice or "cookbook" for that task ?
Thank's a lot ;-)
It is possible to import content the way you want to do it, but it is not easy. You will have to implement code that will input the content into Jahia Containers, and this requires some knowledge of the content API.
One starting point is to look at the following code :
org.jahia.taglibs.form.FormContentMapperHandlerTag : inputs content coming from a POST into a container list
org.jahia.layout.PortletsJahiaContentSerializer : declares and inserts containers based on event listeners
org.jahia.engines : the actual code used in the popups, but complicated for a newcomer.
Regards, Serge Huber.
