Hi Bart, Thanks for the help. I can now see my document indexed and assigned the correct workflow after set the type. However, it seems that I have to make changes to the directory (eg, add a document) to refresh the directory view before my document is visible in the CMS. I thought it was an index problem with the directory, so I've ran the repairindex script. It doesn't seem to do the charm though. Any suggestions?
Also, is there any property I can set so that my document can have a workflow status and shows up in the CMS TODO automatically? Thanks a lot! June -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bart van der Schans Sent: Friday, June 13, 2008 1:26 AM To: Hippo CMS development public mailinglist Subject: Re: [HippoCMS-dev] import document files [EMAIL PROTECTED] wrote: > Hi, Hi Jun, Welcome to the list ;) > > I am a newbie here. I am wondering if there is a way to import files > into hippo repository as documents? What I am trying to achieve is to > pre-populate the repository with some documents for the editors to > review. > > I've tried to use filesync tool, which gets my file up to the > repository. But they don't show up in the hippo cms as the filetype > wasn't set right. > > So I used the setproperty tool to set the type, it now shows up as a > document but with no workflow associated with it, nor a UID. The UID should be autocreated by the repository, but you have to set the type yourself. The workflow is started when the document is frist selected/opened in the CMS. > > I suppose that I could manually set all the hippo-specific properties > except UID and index. But I am not comfortable of doing so, especially > that I need to find a way to trigger the index too. The index is usually set by the CMS when you create a document. It doesn't get set by the repository. We have a tool that creates/repairs the index on documents and folders [1]. > Have anyone encountered the same problem before? What is your solution? Yes, it's quite common to do imports from other sources into the repository. The best way to go is to write your own import tool, because it's almost impossible to write a generic tool that takes care of all the specific situations. We have several tools that do most of the things you need like the filesync, dav2disk and repairindex tools. Most of them are pretty straight forward. If you're not sure about what properties to set feel free to ask here on the list. > > Ps. Anyone can tell me how to do a search on the maillist archives?? > That will be very helpful!! You can try google[2] ;) [1] http://svn.hippocms.org/viewvc/hippo-tools/hippo-wdbp-plugin-indexrepair / [2] http://www.google.nl/search?hl=nl&q=site%3Alists.hippo.nl+%2B"[HippoCMS- dev]" Regards, Bart > > Thanks a lot! > > Jun > > ******************************************** > Hippocms-dev: Hippo CMS development public mailinglist > -- Hippo B.V. - Amsterdam Oosteinde 11, 1017 WT, Amsterdam, +31(0)20-5224466 Hippo USA Inc. - San Francisco 101 H Street, Suite Q, Petaluma CA, 94952-3329, +1 (707) 773-4646 ----------------------------------------------------------------- http://www.onehippo.com - [EMAIL PROTECTED] ----------------------------------------------------------------- ******************************************** Hippocms-dev: Hippo CMS development public mailinglist ******************************************** Hippocms-dev: Hippo CMS development public mailinglist
