Hi Jun,

I use a Cocoon pipeline to do this  sort of thing :-

    <map:match pattern="writeMRW">
        <map:generate type="directory" src="{request-param:dir}">
         <map:parameter name="depth" value="2"/>
          </map:generate>
        <map:transform type="saxon" src="transformers/dir2doc.xsl"/>
        <map:transform src="transformers/doc2webdav.xsl">
          <map:parameter name="webdav"
value="{global:liveRepositoryRoot}/default/files/default.preview/content/"/>
          <map:parameter name="dir" value="{request-param:dir}"/>
        </map:transform>
        <map:transform type="cinclude"/>
        <map:transform label="xml" src="transformers/adapt.xsl"/>
        <map:transform type="webdav"/>
        <map:serialize type="xml"/>
    </map:match>

It means you can do the whole lot in XML and adapt the document on the way
in. It doesn't do the workflow but is quite straightforward.

Regards

Warrell


2008/6/12 <[EMAIL PROTECTED]>:

> Hi,
>
> 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.
>
> 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.
>
> Have anyone encountered the same problem before? What is your solution?
>
> Ps. Anyone can tell me how to do a search on the maillist archives??
> That will be very helpful!!
>
> Thanks a lot!
>
> Jun
>
> ********************************************
> Hippocms-dev: Hippo CMS development public mailinglist
>
********************************************
Hippocms-dev: Hippo CMS development public mailinglist

Searchable archives can be found at:
<a href="http://hippocms-dev.markmail.org/";>MarkMail</a> and <a 
href="http://www.nabble.com/Hippo-CMS-f26633.html";>Nable</a>.

Reply via email to