Hi Wolfram,
Well 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.
At 12:50 11.08.2004, you wrote:
Hi Stephane,
unfortunately the requirement (which I didn't develop) says to use the internal Jahia functionality. Thus searching should be possible all the time using Lucene and the default search should return the people results as well.
I suggested to use a portlet, since this would allow maximum flexibility. But for now this does not seem like an option, so another solution is required.
The import should be initially, I would be good do have an export as well to be able to reinitialize from scratch (another clean import).
So if there is no easy way of doing this, we will have to rethink the options we have.
Maybe you have another idea?
Wolfram
________________________________
Von: St�phane Croisier [mailto:[EMAIL PROTECTED] Gesendet: Mi 11.08.2004 12:42 An: [EMAIL PROTECTED] Betreff: Re: AW: Import/Export of peoples database
Hi,
If you already have a database, why are you using a Jahia template instead of developing a new stand alone "portlet" (webapp) in order to deliver a view on your existing data (using the Portal layer and not CMS layer)?
If you want to use the CMS layer, what about synchronisation issue between the two systems? Is this a one shot import? Finally if you want to import an extract of your database into the Jahia DB, you will need to create a JSP with an adequate containerlist definition + then make an algorithm to automatically create all the sub-containers entries. This may be quite tricky to do if you are new to the Jahia object model.
Cheers St�phane
At 12:18 11/08/2004, you wrote: >Hi, > >thanks for your fast response. > >What I am looking for is an import/export functinality for the >people template. The tempalte has been customized to fit >our requirements and another (existing) database should be >loaded into Jahia now. > >If there is no import/export functionality, how do I have to >handle the import myself (e.g. id-ranges for the database, >etc.)? > >Wolfram > >________________________________ > >Von: St�phane Croisier [mailto:[EMAIL PROTECTED] >Gesendet: Mi 11.08.2004 12:05 >An: [EMAIL PROTECTED] >Betreff: Re: Import/Export of peoples database > > > > >Hello, > >What do you mean by "people database"? The address book webapp? The Jahia >template People? > >If you want to extract some content from Jahia you may use the XML export >engine. If it is related to a specific webapp and there is no export/import >feature yet, you will need to develop one. > >Regarding content import into Jahia, this is more complex, but if it is >just related to a page, you may make a specific "import JSP template" to >automatically populate some Jahia containers (for advanced Jahia developers >only!). > >Regards >St�phane > >At 11:26 11/08/2004, you wrote: > >Hi, > > > >does anybody know whether (and how) it is possible to import > >data into and/or export data from the Jahia build in people > >database? > > > > > >Wolfram > > > >
- -- --- -----=[ serge.huber at jahia dot com ]=---- --- -- -
Jahia : A collaborative source CMS and Portal Server
www.jahia.org Community and product web site
www.jahia.com Commercial services company
