Is there any way

Is there any way to “batch add” file and/or image resources to a database?

To explain: I’ve got a directory tree full of files (in my case, this is FCKEditor, a JavaScript HTML-Editor).

To get this thing into my Database I have to insert all Files of a directory and rename them to mimic the folder structure. But the more files and folders there are, the more “monotone” this work gets.

I tried to create a DXL-File containing all these Files, but failed at an undocumented header. Now I’m trying to do this using the C++ API, but I can’t see any way to get this handled…

Is there anything you can do about inserting a whole tree als file resources?

Subject: Is there any way…

You could attach all the resources ( files, css, images) etc in a NotesDocument and use that as a resource.

So to use a css file you can

var:=@DbLookup(“”;“”;“Config”;“Config”;2);

var1:=@If((@IsError(var) | var=“”);@Return(“”);var);

“<LINK REL=stylesheet TYPE=text/css HREF =http://” + Server_Name + “:” + Server_Port + “/” + hs_DbPath + “/(Config)/” + var1+ “/$File/Styles.css>”

where the config view contains a single document which has all the resources attached

hope this helps !!

Ashish

Subject: RE: Is there any way…

Your’re right, that’s beyond all question, but as you typed, there is that “/$File/” in my Path which means, I had to rewrite the FCKEditor (which has a fixed structure) AND to do quite the same steps I had to do by adding them as Resources.

I considered this alternative, but there would be even more problems to mimic a folder structure.

Subject: There is certainly a way (it would cost you, but there is a resource ready)

Our Midas Rich Text LSX does this easily, but if you want the FCKEditor images already included in a database, we have a sample database with them in it that you have have without the bother of adding them. We use it for our new CoexEdit product, which allows seamless editing between the web and Notes client (OK, you are getting a free resource, so I’ll give you the one sentence advertisement ).

To read about the process of importing all the resources, see my weblog post, Mimic a directory structure in Domino, which describes how it inserts all the image resources, style sheets and file resources. To just get the database (which does not include the style sheets and .JS files in this case), go to CoexEdit downloads and get the FCKEditor with CoexEdit sample database. You can also get an eval license and try out CoexEdit if you like, but if you don’t feel free to take the db with all the image resources already included. If you need any help or have any questions, drop me a line (see out Contact Us page, as I don’t need more spam mail). I hope that helps.

Subject: RE: There is certainly a way (it would cost you, but there is a resource ready)

Sure… I’ve heard about your product and I’m quite sure that it would help, but:

First: The money. My company won’t spend those 1000$.

Second: The challenge. I’m quite sure that I can manage that, it’s only a question of time.

Third: I have got already a database containig this editor (didn’t you read your commments? I asked for the FCK-Editor there…).

But thanks, anyways. Just a question: Did you use the C++ or the C Api programming MidasLSX? g

Subject: RE: There is certainly a way (it would cost you, but there is a resource ready)

I am a bit confused. In your main post you say "To get this thing into my Database I have to insert all Files of a directory and rename them to mimic the folder structure. ", and I am saying that the database has them (without having to spend any dollars at all). I am just offering to let you use it.

As for what I used, it is basically C, with a bare minimum of C++ where needed to interact with the LSX Toolkit, but it only uses the C API.

Subject: RE: There is certainly a way (it would cost you, but there is a resource ready)

What’s confusing about my post?

I have already made up a database containing the editor, but for the next time (probably an update of the editor) I want to do this automatically.

This is not meant as an offense, but I got neither interest nor the money to buy your software, even if it does exactly what I want to do.

Subject: It just wasn’t clear you already had the database.

As you have it already, there is nothing more to add. I was just confused about what you needed now.